From: Roland Häder Date: Mon, 18 Feb 2008 22:32:23 +0000 (+0000) Subject: unneccessary globals removed X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=commitdiff_plain;h=5e5fba72f1686dc9ae819f545253f0d99b4ebcba unneccessary globals removed --- 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")); } //