* 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 * FROM flags WHERE (received + INTERVAL '30 minute') > now() ORDER BY received DESC"; ?>
Flags Service + Exploit flags Alltime Service + Exploit flags Flag_IDs
try:Shows all submissions of the last 30 min. Current Time:
NUM ROWS: query($query)->fetchAll());?>
fid | flag | service | flag_id | submitter | received | submitted | status | srvresponse |
---|---|---|---|---|---|---|---|---|
Status: 0=submission pending; 1=submitted:OK; 2=submitted:Fail