no function... die. if(!$monitord_ini = @parse_ini_file('./monitord_config.ini', true)) { die('monitord_config.ini not found, aborting.'); } // loading the main modules from directory $monitord_webfrontend_modules = array(); $exceptions = array(); $ext="/^.*\.module\.php$/i"; $files = array(); $handle = opendir('.'); while ($file = readdir ($handle)) { if (is_file($file) && preg_match($ext,$file)) { array_push($files, $file); } } closedir($handle); sort($files); // loading and instantiating our modules, saving exceptions in an array to be handled later on... foreach($files AS $val) { require_once($val); $val = strstr($val, '.', true); $classname = 'monitord_' . $val . '_manager'; try { $monitord_webfrontend_modules[$val] = new $classname(); } catch(exception $exception) { $exceptions[] = $exception; } } foreach($monitord_webfrontend_modules AS $val) { $val->send_http_headers($monitord_webfrontend_modules); } ?>
![]() |