add variable to disable https warning - it's up to the admin after all to configure their stuff
This commit is contained in:
parent
4ccc9c6a91
commit
7885d2e39b
|
@ -74,7 +74,7 @@ if ( empty($logo) || ! $logo ) {
|
|||
<br/>
|
||||
<?php
|
||||
if (isset($_GET['authip_token'])) $authip_token=$_GET['authip_token'];
|
||||
if (variable_get('https_warning', true, 'warn users to switch to HTTPS') && !isset($_SERVER['HTTPS'])) {
|
||||
if (!isset($_SERVER['HTTPS'])) {
|
||||
echo '<h4>' . sprintf(_('WARNING: you are trying to access the control panel insecurely, click <a href="https://%s">here</a> to go to secure mode'), $_SERVER["HTTP_HOST"]) . '</h4>';
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue