7 rename_function('iop', 'piop');
11 // Default library directory with end slash!!!
12 $GLOBALS['libdir'] = 'lib/';
13 // Default config directory with end slash!!!
14 $GLOBALS['cfgdir'] = 'etc/';
16 error_reporting(E_ERROR
);
17 //ini_set('display_errors', '1');
19 // processing `/inc` directory
20 if (($incdir = opendir('inc')) != false)
22 while (false !== ($files[] = readdir($incdir))){}
27 sort($files, SORT_ASC
);
28 foreach ($files as $file) {
29 if (strpos($file, '.') == 0) {
32 // echo $file.'<br/>';
34 if (strstr($file, 'php'))
36 if (class_exists('Log')) {
37 if (Log
::targeted()) Log
::put('Including file: '.$file);
39 include ('inc/'.$file);
43 Log
::put('System halted.');