* do not publish! */ $GLOBALS['db'] = new PDO('pgsql:host=localhost;port=5432;dbname=flagbot;user=flagbot;password=flagbotpw'); $GLOBALS['db']->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $query = "SELECT service,count(*) as cnt FROM flag_ids WHERE (received + INTERVAL '30 minute') > now() group by service ORDER BY service"; ?>

Submission Board - flag_id - count()

go to flags

Shows all submissions of the last 30 min
NUM ROWS: query($query)->fetchAll()); ?>

query($query); while($row = $stmt->fetch(PDO::FETCH_ASSOC)) { ?>
service count
   

Status: 0=new; 1=depleted