{
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'))) {
$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))) {
}
// Return result of comparision
- //* DEBUG: */ if (!$ret) echo __LINE__."OK!<br>";
+ /* DEBUG: */ if (!$ret) echo __LINE__."OK!<br>";
return $ret;
}
//
// 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
} 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 {