$path = str_replace(chr(92), '/', substr(dirname(__FILE__), 0, -3));
// Some very important function includes
-foreach (array('config', 'wrapper', 'template', 'module', 'inc', 'stats', 'http', 'xml', 'callback', 'referral', 'email') as $inc) {
+foreach (array('config', 'wrapper', 'template', 'module', 'inc', 'http') as $inc) {
include($path . 'inc/' . $inc . '-functions.php');
} // END - foreach
die();
} // END - if
+// Init include file array as it follows same naming scheme
+foreach ( array(
+ 'stats',
+ 'xml',
+ 'callback',
+ 'referral',
+ 'email',
+ 'request',
+ 'session',
+ 'code',
+ 'language',
+ 'sql',
+ 'expression',
+ 'filter',
+ 'revision',
+ 'extensions') as $lib) {
+ // Load special functions
+ loadIncludeOnce('inc/' . $lib . '-functions.php');
+} // END - foreach
+
// Load more function libraries or includes
-foreach (array('request-functions', 'session-functions', 'code-functions', 'language-functions', 'sql-functions', 'expression-functions', 'filter-functions', 'revision-functions', 'filters', 'mysql-manager', 'extensions-functions', 'email-functions', 'handler') as $lib) {
+foreach (array('filters', 'mysql-manager', 'handler') as $lib) {
// Load special functions
loadIncludeOnce('inc/' . $lib . '.php');
} // END - foreach