From 5e5fba72f1686dc9ae819f545253f0d99b4ebcba Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 18 Feb 2008 22:32:23 +0000 Subject: [PATCH] unneccessary globals removed --- inc/functions.php | 2 -- inc/libs/task_functions.php | 2 +- inc/mysql-manager.php | 6 ++---- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/inc/functions.php b/inc/functions.php index ec45fdca53..c32590a10f 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -640,8 +640,6 @@ function TRANSLATE_STATUS($status) // function GET_LANGUAGE() { - global $_SESSION, $_GET; - if (!empty($_GET['mx_lang'])) { // Accept only first 2 chars diff --git a/inc/libs/task_functions.php b/inc/libs/task_functions.php index 9e073455fc..53f8feb9a8 100644 --- a/inc/libs/task_functions.php +++ b/inc/libs/task_functions.php @@ -46,7 +46,7 @@ if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { // function OUTPUT_ADVANCED_OVERVIEW (&$result_main) { - global $_SESSION, $_CONFIG; + global $_CONFIG; // Init variables/arrays $EXTRAS = ""; $OUT = ""; $SQLs = array(); $WHATs = array(); $DESCRs = array(); $TITLEs = array(); diff --git a/inc/mysql-manager.php b/inc/mysql-manager.php index 34132e388b..da0aa71596 100644 --- a/inc/mysql-manager.php +++ b/inc/mysql-manager.php @@ -538,7 +538,7 @@ function WHAT_IS_VALID($act, $wht, $type="guest") // function IS_LOGGED_IN() { - global $_SESSION, $status, $LAST; + global $status, $LAST; if (!is_array($LAST)) $LAST = array(); $ret = false; @@ -1507,9 +1507,7 @@ function SUB_JACKPOT($points) } } // -function IS_DEMO() -{ - global $_SESSION; +function IS_DEMO() { return ((EXT_IS_ACTIVE("demo")) && ($_SESSION['admin_login'] == "demo")); } // -- 2.39.5