cleanup
[xendri.git] / index.php
blob6344ac1e29b7a3026acac73d32ca3452b554a88d
1 <?
3 function iop () {
4 echo 'xxx';
7 rename_function('iop', 'piop');
8 piop();
9 die('iop called');
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) {
30 continue;
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.');