// Load configuration stuff
$_CONFIG = merge_array($_CONFIG, LOAD_CONFIG());
- // Initialize include-file-pool
- $INC_POOL = array();
-
// Load "databases" aka static arrays
require_once(PATH."inc/databases.php");
// Loading patching system is required here...
require_once(PATH."inc/patch-system.php"); // Initialize patch system
- // Create missing configuration file
- if (!function_exists('GET_CURR_THEME')) {
- // Load dummy theme functions
- require_once(PATH."inc/theme-dummy.php");
- } // END - if
-
// Session management
require_once(PATH."inc/session.php");
// Run daily reset
require_once(PATH."inc/check-reset.php");
+ // Create missing configuration file
+ if (!function_exists('GET_CURR_THEME')) {
+ // Load dummy theme functions
+ require_once(PATH."inc/theme-dummy.php");
+ } // END - if
+
// Load admin include file if he is admin
if (IS_ADMIN()) {
// Administrative functions
$GLOBALS['what'] = "";
}
- // Secure and validate user ID from cookie
- UPDATE_LOGIN_DATA();
-
- // Update online list
- UPDATE_ONLINE_LIST($PHPSESSID, $GLOBALS['module'], $GLOBALS['action'], $GLOBALS['what']);
+ // Run the init filter chain
+ RUN_FILTER('init');
// Set default 'what' value
//* DEBUG: */ echo "-".$GLOBALS['module']."/".$GLOBALS['what']."-<br />\n";
} // END - if
}
-// Init filter system
-INIT_FILTER_SYSTEM();
-
// Any fatal messages?
if (!is_array($FATAL)) $FATAL = array();
if (((sizeof($FATAL) > 0) || (!empty($FATAL[0]))) && (isBooleanConstantAndTrue('mxchange_installed')) && (!defined('mxchange_installing')) && ($CSS != "1")) {