blob: c7491ae83983c1639aa38e936d0ceb5fb5cb8f2f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<?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();
define('TMPDIR', $S['conf']['tmpdir']);
if (!is_dir(TMPDIR))
mkdir(TMPDIR, 0700);
?>
|