warn users to switch to HTTPS if it's not enable, admins can opt out through a variable

This commit is contained in:
Antoine Beaupr�� 2014-06-17 20:57:26 +00:00
parent 42b8988022
commit dbd029d8cf
1 changed files with 2 additions and 5 deletions

View File

@ -74,12 +74,9 @@ if ( empty($logo) || ! $logo ) {
<br/> <br/>
<?php <?php
if (isset($_GET['authip_token'])) $authip_token=$_GET['authip_token']; 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 (!$_SERVER[HTTPS]) { echo __('<h4>WARNING: you are trying to access the control panel insecurely, click <a href="%s">here</a> to go to secure mode</h4>', $_SERVER["HTTP_HOST"]);
echo "<h4>ATTENTION : vous allez acc<63>der <20> votre panel en mode *non s<>curis<69>*<br/>
<a href=\"https://".$_SERVER["HTTP_HOST"]."/\">Cliquez ici pour passer en mode s<>curis<69></a></h4>";
} }
*/
?> ?>
<div style="margin: 0 auto 30px auto; width: 700px;"> <div style="margin: 0 auto 30px auto; width: 700px;">
<table width="100%"><tr><td> <table width="100%"><tr><td>