]> git.mxchange.org Git - mailer.git/blobdiff - inc/load_cache.php
Rewrites to use filters instead of mass if() blocks
[mailer.git] / inc / load_cache.php
index cb35e6adf9e9d2770e471b2fdd77e6bf21462058..a4099c3aafeadb388103c085fcb20d3f62f583a1 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
- * MXChange v0.2.1                                    Start: 11/28/2004 *
- * ===============                              Last change: 11/28/2004 *
+ * Mailer v0.2.1-FINAL                                Start: 11/28/2004 *
+ * ===================                          Last change: 11/28/2004 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : load_cache.php                                   *
  * $Date::                                                            $ *
  * $Tag:: 0.2.1-FINAL                                                 $ *
  * $Author::                                                          $ *
- * Needs to be in all Files and every File needs "svn propset           *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * For more information visit: http://www.mxchange.org                  *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
+ * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
  * it under the terms of the GNU General Public License as published by *
@@ -42,8 +41,7 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Init cache instance and array
-$GLOBALS['cache_instance'] = null;
-$GLOBALS['cache_array'] = array();
+$GLOBALS['cache_instance'] = NULL;
 
 // Init cache first
 initCacheInstance();
@@ -52,20 +50,29 @@ initCacheInstance();
 initExtensionCssFiles();
 
 // Initialize array for "always keep active extensions"
-$GLOBALS['cache_array']['active_extensions'] = array();
+$GLOBALS['cache_array']['always_active'] = array();
 
 // Init & set the INC_POOL
 initIncludePool('cache');
-setIncludePool('cache', getArrayFromDirectory('inc/loader/', 'load_cache-'));
+setIncludePool('cache', getArrayFromDirectory('inc/loader/', 'load-'));
 
 // Pre-load filter cacher
-loadIncludeOnce('inc/loader/load_cache-filter.php');
+loadIncludeOnce('inc/loader/load-filter.php');
 
 // Pre-load extensions cacher
-loadIncludeOnce('inc/loader/load_cache-extension.php');
+loadIncludeOnce('inc/loader/load-extension.php');
 
 // Load all includes
 loadIncludePool('cache');
 
+// Init filter system
+initFilterSystem();
+
+// Init system here
+runFilterChain('init');
+
+// Run post-initialization (e.g. determining username)
+runFilterChain('post_init');
+
 // [EOF]
 ?>