| | |
| | | */ |
| | | if ($app->dbmaster->connect_error == NULL) { |
| | | $server_db_record = $app->dbmaster->queryOneRecord("SELECT * FROM server WHERE server_id = " . $conf['server_id']); |
| | | |
| | | |
| | | if(!is_array($server_db_record)) die('Unable to load the server configuration from database.'); |
| | | |
| | | $conf['last_datalog_id'] = (int) $server_db_record['updated']; |
| | | $conf['mirror_server_id'] = (int) $server_db_record['mirror_server_id']; |
| | | |
| | |
| | | unset($tmp_rec); |
| | | |
| | | //** Load required base-classes |
| | | $app->uses('modules,plugins,file,services'); |
| | | $app->uses('modules,plugins,file,services,system'); |
| | | //** Load the modules that are in the mods-enabled folder |
| | | $app->modules->loadModules('all'); |
| | | //** Load the plugins that are in the plugins-enabled folder |