blob: 8a75b58c66038cbba5376fd30ebe0e22ffd90641 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<?php
date_default_timezone_set('UTC');
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);
load_config();
?>
|