diff --git a/php/index.php b/php/index.php index 9213062..863d228 100644 --- a/php/index.php +++ b/php/index.php @@ -3,35 +3,39 @@ require_once 'common.php'; $db = Db::getInstance(); - $rows = $db->getRows($db->q("SELECT status, count(*) as cnt FROM beathaven.queue GROUP BY status")); - $info = array_fill(0, 3, 0); - foreach ($rows as $row) { $info[$row['status']] = $row['cnt']; } - -$tmp = exec("ps aux | grep parse_queue"); +$pid = @file_get_contents('/www/parser_data/pid'); +$tmp = exec("ps ". $pid); $running = (strpos($tmp, '/opt/local/bin/php') !== false) ? 1 : 0; ?> - -BeatHaven - - - -
- / / - -
- + + BeatHaven + + + + + + + + +
+
 
+ + / / + +
+