summaryrefslogtreecommitdiff
blob: 13940493f192cae8f37b34bfd0b62f44901f8b44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php
date_default_timezone_set('UTC');
require_once(dirname(__FILE__).'/paths.php'); // USE __dir__ in 5.3.0
require_once(SHARED.'/include/definitions.php');
// 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();
?>