| | |
| | | while (($file = readdir($dh)) !== false) { |
| | | if($file != '.' && $file != '..' && substr($file,-8,8) == '.inc.php') { |
| | | $module_name = substr($file,0,-8); |
| | | include_once($modules_dir.$file); |
| | | include_once $modules_dir.$file; |
| | | if($this->debug) $app->log('Loading Module: '.$module_name,LOGLEVEL_DEBUG); |
| | | $app->loaded_modules[$module_name] = new $module_name; |
| | | $app->loaded_modules[$module_name]->onLoad(); |
| | |
| | | //* get the server_id of the local server |
| | | $server_id = intval($conf["server_id"]); |
| | | |
| | | include_once (SCRIPT_PATH."/lib/remote_action.inc.php"); |
| | | include_once SCRIPT_PATH."/lib/remote_action.inc.php"; |
| | | |
| | | //* SQL query to get all pending actions |
| | | $sql = "SELECT action_id, action_type, action_param " . |