Fix references to site.

This commit is contained in:
Darko
2015-06-01 11:49:17 +02:00
parent 9ffa480e22
commit 273d2c6be3
6 changed files with 25 additions and 34 deletions
+2 -6
View File
@@ -9,7 +9,6 @@ $DIR = NN_TMUX;
$c = new ColorCLI();
$t = new Tmux();
$tmux = $t->get();
$patch = (isset($tmux->sqlpatch)) ? $tmux->sqlpatch : 0;
$import = (isset($tmux->import)) ? $tmux->import : 0;
$tmux_session = (isset($tmux->tmux_session)) ? $tmux->tmux_session : 0;
$seq = (isset($tmux->sequential)) ? $tmux->sequential : 0;
@@ -19,6 +18,8 @@ $nntpproxy = $pdo->getSetting('nntpproxy');
$tablepergroup = $pdo->getSetting('tablepergroup');
$tablepergroup = ($tablepergroup != '') ? $tablepergroup : 0;
// Check that Db patch level is current. Also checks nZEDb.xml is valid.
Utility::isPatched();
Utility::clearScreen();
echo "Starting Tmux...\n";
@@ -33,11 +34,6 @@ if (count($nntpkill) !== 0) {
exec("tmux list-session", $session);
}
// Check database patch version
if ($patch < 121) {
exit($c->error("\nYour database is not up to date. Please update.\nphp ${NN_WWW}lib/DB/patchDB.php\n"));
}
//check if session exists
$session = shell_exec("tmux list-session | grep $tmux_session");
// Kill the placeholder