index : website | |
Archlinux32 website - obsolete | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-06-22 14:12:29 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-06-22 14:12:29 +0200 |
commit | bdf279a1b6aa71c776f4b5c8c36ff30cfea53abe (patch) | |
tree | 22e8a6e124eb2328b4567ec56a936aa827d8adb6 /lib | |
parent | 457d4722b180542866a9406230d9d7207b19f2a3 (diff) |
-rw-r--r-- | lib/mysql.php | 13 |
diff --git a/lib/mysql.php b/lib/mysql.php index 6d575ad..60bfa3a 100644 --- a/lib/mysql.php +++ b/lib/mysql.php @@ -20,18 +20,9 @@ function mysql_run_query($query) { } function show_warning_on_offline_slave() { - $result = mysql_run_query( - "SHOW STATUS LIKE \"Slave_running\"" - ); + $result = mysql_run_query("SHOW STATUS LIKE \"Slave_running\""); if (($result -> num_rows == 0) || ($result -> fetch_assoc() ["Value"] != "ON")) { - $result = mysql_run_query( - "SELECT 1 FROM `ssh_log`" . - " WHERE ADDTIME(`ssh_log`.`date`,\"1:00\")>NOW()" . - " LIMIT 1" - ); - if ($result -> num_rows == 0) { - print "<div><font color=\"ff0000\">The replication slave is currently not running. The database might be outdated.</font></div>\n"; - } + print "<div><font color=\"ff0000\">The replication slave is currently not running. The database might be outdated.</font></div>\n"; } } |