// Init filters
REGISTER_FILTER('init', 'UPDATE_LOGIN_DATA');
REGISTER_FILTER('init', 'INIT_RANDOMIZER');
- REGISTER_FILTER('init', 'INIT_MEM_CACHE');
// Login failures handler
REGISTER_FILTER('post_youhere_line', 'CALL_HANDLER_LOGIN_FAILTURES');
mt_srand(generateSeed() + constant('_ADD'));
}
-// Filter for initializing misc mem-cache arrays (NOT memcache!)
-function FILTER_INIT_MEM_CACHE () {
- // For LOAD_INC_ONCE()
- $GLOBALS['cache_array']['load_once'] = array();
-}
-
//
?>
// Loads an include file once
function LOAD_INC_ONCE ($INC) {
// Is it not loaded?
- if (!isset($GLOBALS['cache_array']['load_once'][$INC])) {
+ if (!isset($GLOBALS['load_once'][$INC])) {
// Then try to load it
LOAD_INC($INC);
// And mark it as loaded
- $GLOBALS['cache_array']['load_once'][$INC] = "loaded";
+ $GLOBALS['load_once'][$INC] = "loaded";
} // END - if
}
require($INC);
}
+// Load sql_patches here
+LOAD_EXTENSION("sql_patches");
+
// Init variables
$mysql = "";
if ((REQUEST_ISSET_POST(('mysql'))) && (is_array(REQUEST_POST('mysql')))) $mysql = REQUEST_POST('mysql');
} // END - if
// Load language file
-LOAD_INC($INC);
+LOAD_INC_ONCE($INC);
// Check for installation mode
if (isInstalling()) {
addFatalMessage(getMessage('SECRET_IS_WRITE_PROTECTED'));
} // END - if
} // END - if
+
+ // Run the init filter chain
+ RUN_FILTER('init');
}
if ((getTotalFatalErrors() > 0) && (isInstalled()) && (!defined('mxchange_installing')) && ($GLOBALS['output_mode'] != "1")) {