From d8532a93fdb93214034c67ea066a99bd8f8160f8 Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 21 Apr 2006 06:37:53 +0000 Subject: [PATCH] Moved to _SERVER instead of the deprecated long version git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3078 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/index.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/html/index.php b/html/index.php index 774043404..ac88c7992 100644 --- a/html/index.php +++ b/html/index.php @@ -103,15 +103,15 @@ if ($_SERVER["REQUEST_METHOD"] != "POST"){ /* Check for SSL connection */ $ssl= ""; -if (!isset($HTTP_SERVER_VARS['HTTPS']) || - !stristr($HTTP_SERVER_VARS['HTTPS'], "on")) { +if (!isset($_SERVER['HTTPS']) || + !stristr($_SERVER['HTTPS'], "on")) { - if (empty($HTTP_SERVER_VARS['REQUEST_URI'])) { - $ssl= "https://".$HTTP_SERVER_VARS['HTTP_HOST']. - $HTTP_SERVER_VARS['PATH_INFO']; + if (empty($_SERVER['REQUEST_URI'])) { + $ssl= "https://".$_SERVER['HTTP_HOST']. + $_SERVER['PATH_INFO']; } else { - $ssl= "https://".$HTTP_SERVER_VARS['HTTP_HOST']. - $HTTP_SERVER_VARS['REQUEST_URI']; + $ssl= "https://".$_SERVER['HTTP_HOST']. + $_SERVER['REQUEST_URI']; } } -- 2.30.2