Loading of extensions is now done after session has started and before referal id...
authorRoland Häder <roland@mxchange.org>
Thu, 28 Aug 2008 15:27:42 +0000 (15:27 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 28 Aug 2008 15:27:42 +0000 (15:27 +0000)
inc/mysql-manager.php
inc/session.php

index 637424ef9dcd6b05d1ae0d09ca2f1b4fbd6fb10f..7d31c307dc4fb3dab415f48ff8eafbe40c85d916 100644 (file)
@@ -395,7 +395,7 @@ function IS_ADMIN($admin="")
 {
        global $cacheArray, $_CONFIG;
        $ret = false; $passCookie = ""; $valPass = "";
-       //* DEBUG: */ echo __LINE__."ADMIN:".$admin."<br />";
+       /* DEBUG: */ echo __LINE__."ADMIN:".$admin."<br />";
 
        // If admin login is not given take current from cookies...
        if ((empty($admin)) && (isSessionVariableSet('admin_login')) && (isSessionVariableSet('admin_md5'))) {
@@ -403,7 +403,7 @@ function IS_ADMIN($admin="")
                $admin = SQL_ESCAPE(get_session('admin_login'));
                $passCookie = SQL_ESCAPE(get_session('admin_md5'));
        }
-       //* DEBUG: */ echo __LINE__."ADMIN:".$admin."/".$passCookie."<br />";
+       /* DEBUG: */ echo __LINE__."ADMIN:".$admin."/".$passCookie."<br />";
 
        // Search in array for entry
        if ((!empty($passCookie)) && (isset($cacheArray['admins']['password'][$admin])) && (!empty($admin))) {
@@ -438,7 +438,7 @@ function IS_ADMIN($admin="")
        }
 
        // Return result of comparision
-       //* DEBUG: */ if (!$ret) echo __LINE__."OK!<br>";
+       /* DEBUG: */ if (!$ret) echo __LINE__."OK!<br>";
        return $ret;
 }
 //
index f3b02711625248d411212863a9e373eda9a167b8..6999d8c9d7aeadd313ee27ef07adb8430fa6e2f8 100644 (file)
@@ -52,6 +52,9 @@ $PHPSESSID = @session_id();
 // Store language code in cookie
 set_session("mx_lang", $mx_lang);
 
+// Load extensions here
+require_once(PATH."inc/load_extensions.php");
+
 // Check if refid is set
 if ((!empty($_GET['user'])) && ($CLICK == 1) && ($_SERVER['PHP_SELF'] == "click.php")) {
        // The variable user comes from the click-counter script click.php and we only accept this here
@@ -68,7 +71,7 @@ if ((!empty($_GET['user'])) && ($CLICK == 1) && ($_SERVER['PHP_SELF'] == "click.
 } elseif (isSessionVariableSet('refid')) {
        // Set session refid als global
        $GLOBALS['refid'] = bigintval(get_session('refid'));
-} elseif (GET_EXT_VERSION("sql_patches") != '') {
+} elseif (GET_EXT_VERSION("sql_patches") != "") {
        // Set default refid as refid in URL
        $GLOBALS['refid'] = bigintval($_CONFIG['def_refid']);
 } else {