From a472c5d389171e761373614c5c8db9167e0c1cfb Mon Sep 17 00:00:00 2001 From: slerena Date: Mon, 19 Nov 2007 19:51:46 +0000 Subject: [PATCH] 2007-11-19 Sancho Lerena * 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 --- pandora_console/ChangeLog | 4 ++++ pandora_console/index.php | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 5181951e7f..0dadb06868 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2007-11-19 Sancho Lerena + + * index.php: Included patch summited by Guru Evi (guruevi) for HTTPS support. THanks evi ! :) + 2007-10-14 Raul Mateos * godmode/modules/manage_network_components.php: Added deleted table row. diff --git a/pandora_console/index.php b/pandora_console/index.php index dfadcd15ed..b658f4526a 100644 --- a/pandora_console/index.php +++ b/pandora_console/index.php @@ -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'];