]> git.mxchange.org Git - mailer.git/blobdiff - inc/session.php
wernis extension is now alpha code (only listing in admin area is missing), naming...
[mailer.git] / inc / session.php
index 1d5a04c60b7839f2dcd2527aef3be31b6547e3fd..49d7c986255fde34b279fb48507d0d7072aa0afc 100644 (file)
@@ -58,10 +58,10 @@ if (empty($PHPSESSID)) {
 }
 
 // Store PHPSESSID
-@setcookie("PHPSESSID", $PHPSESSID, (time() + $CONFIG['online_timeout']), COOKIE_PATH);
+@setcookie("PHPSESSID", $PHPSESSID, (time() + $_CONFIG['online_timeout']), COOKIE_PATH);
 
 // Store language code in cookie
-@setcookie("mx_lang", $mx_lang, (time() + $CONFIG['online_timeout']), COOKIE_PATH);
+@setcookie("mx_lang", $mx_lang, (time() + $_CONFIG['online_timeout']), COOKIE_PATH);
 
 // Check if refid is set
 if ((!empty($_GET['user'])) && ($CLICK == 1) && ($_SERVER['PHP_SELF'] == "click.php")) {
@@ -83,16 +83,16 @@ if (!empty($_POST['refid'])) {
        $GLOBALS['refid'] = bigintval($_COOKIE['refid']);
 } elseif (GET_EXT_VERSION("sql_patches") != "") {
        // Set default refid as refid in URL
-       $GLOBALS['refid'] = $CONFIG['def_refid'];
+       $GLOBALS['refid'] = $_CONFIG['def_refid'];
 } else {
        // No default ID when sql_patches is not installed
        $GLOBALS['refid'] = 0;
 }
 
 // Set cookie when default refid > 0
-if (empty($_COOKIE['refid']) || (!empty($GLOBALS['refid'])) || (($_COOKIE['refid'] == "0") && ($CONFIG['def_refid'] > 0))) {
+if (empty($_COOKIE['refid']) || (!empty($GLOBALS['refid'])) || (($_COOKIE['refid'] == "0") && ($_CONFIG['def_refid'] > 0))) {
        // Set cookie
-       @setcookie("refid", $GLOBALS['refid'], (time() + $CONFIG['online_timeout']), COOKIE_PATH);
+       @setcookie("refid", $GLOBALS['refid'], (time() + $_CONFIG['online_timeout']), COOKIE_PATH);
 }
 
 // Test cookies if index.php or modules.php is loaded