add variable to disable https warning - it's up to the admin after all to configure their stuff

This commit is contained in:
Antoine Beaupr�� 2014-11-21 17:33:18 +00:00
parent 4ccc9c6a91
commit 7885d2e39b
1 changed files with 1 additions and 1 deletions

View File

@ -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>';
}
?>