tbrehm
2009-02-23 d2d3b93d4df1d48f64797a9bbce95be18f1916bc
Added code to prevent the excution of server scripts when the connect to the master db server fails.
1 files modified
5 ■■■■■ changed files
server/server.php 5 ●●●●● patch | view | raw | blame | history
server/server.php
@@ -66,6 +66,8 @@
$app->log("Set Lock: ".$conf["temppath"].$conf["fs_div"].".ispconfig_lock", LOGLEVEL_DEBUG);
*/
if($app->dbmaster->connect()) {
// get the dalaog_id of the last performed record
$tmp_rec = $app->dbmaster->queryOneRecord("SELECT updated FROM server WHERE server_id = ".$conf["server_id"]);
$conf['last_datalog_id'] = (int)$tmp_rec['updated'];
@@ -110,6 +112,9 @@
    // Load the plugins that are in the plugins-core folder
    $app->plugins->loadPlugins('core');
}
} else {
    $app->log("Unable to connect to master server.",LOGLEVEL_ERROR);
}
/*
// Remove lock