blob: ae12d8128326b78ff8acb53bdda820f80124a745 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
<?php
require_once(dirname(__FILE__).'/paths.php'); // USE __dir__ in 5.3.0
// Load functions and classes from the shared directory and either foreground or background
foreach (array('functions', 'classes') as $type) {
foreach (array(SHARED, ($_SERVER['DOCUMENT_ROOT']?FRONTEND:BACKEND)) as $dir) {
foreach (glob("$dir/$type/*.php") as $file) {
require_once($file);
}
}
}
unset($dir, $file, $type);
require_once(SHARED.'/config.php');
?>
|