- $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
- require($INC);
-}
+ die();
+} // END - if
+
+// Init cache instance and array
+$GLOBALS['cache_instance'] = NULL;
+
+// Init cache first
+initCacheInstance();
+
+// Init variables
+initExtensionCssFiles();
+
+// Initialize array for "always keep active extensions"
+$GLOBALS['cache_array']['always_active'] = array();
+
+// Init & set the INC_POOL
+initIncludePool('cache');
+setIncludePool('cache', getArrayFromDirectory('inc/loader/', 'load-'));
+
+// Pre-load filter cacher
+loadIncludeOnce('inc/loader/load-filter.php');
+
+// Pre-load extensions cacher
+loadIncludeOnce('inc/loader/load-extension.php');
+
+// Load all includes
+loadIncludePool('cache');
+
+// Init filter system
+initFilterSystem();
+
+// Init system here
+runFilterChain('init');