2007-11-19 Sancho Lerena <slerena@gmail.com>

* index.php: Included patch summited by Guru Evi (guruevi) for HTTPS support. THanks evi ! :)



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@678 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
slerena 2007-11-19 19:51:46 +00:00
parent 503e2694d6
commit a27a7a4384
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2007-11-19 Sancho Lerena <slerena@gmail.com>
* index.php: Included patch summited by Guru Evi (guruevi) for HTTPS support. THanks evi ! :)
2007-10-14 Raul Mateos <raulofpandora@gmail.com>
* godmode/modules/manage_network_components.php: Added deleted table row.

View File

@ -83,8 +83,7 @@ if ( (isset ($_GET["refr"])) || (isset($_POST["refr"])) ){
$intervalo = entrada_limpia ($_POST["refr"]);
if ($intervalo > 0){
// Agent selection filters and refresh
$query = 'http://' . $_SERVER['SERVER_NAME']; // TODO: Check for https
$query = 'http' . (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == TRUE ? 's': '') . '://' . $_SERVER['SERVER_NAME'];
if ($_SERVER['SERVER_PORT'] != 80)
$query .= ":" . $_SERVER['SERVER_PORT'];