/*
* brisk - statadm.php
*
- * Copyright (C) 2009-2011 Matteo Nastasi
+ * Copyright (C) 2009-2012 Matteo Nastasi
* mailto: nastasi@alternativeoutput.it
* matteo.nastasi@milug.org
* web: http://www.alternativeoutput.it
FROM %sbin5_matches as m, %sbin5_games as g
WHERE g.mcode = m.code GROUP BY m.code, m.ttok",
$G_dbpfx, $G_dbpfx, $G_dbpfx);
- // error_log($mtc_sql, 0);
if (pg_query($bdb->dbconn->db(), $mtc_sql) == FALSE) {
log_crit("statadm: temporary matches table creation [$mtc_sql] failed");
break;
$tmt_sql = sprintf("SELECT * FROM %sbin5_temp_matches WHERE tstamp < to_timestamp(%d)",
$G_dbpfx, $curtime - TRI_LIMIT);
- // error_log($tmt_sql, 0);
// if deletable old matches exists then ...
if (($tmt_pg = pg_query($bdb->dbconn->db(), $tmt_sql)) != FALSE) {
$mtc_sql = sprintf("SELECT * from %sbin5_matches WHERE code = %d",
$G_dbpfx, $tmt_obj->code);
- // error_log($mtc_sql, 0);
if (($mtc_pg = pg_query($bdb->dbconn->db(), $mtc_sql)) == FALSE || pg_numrows($mtc_pg) != 1) {
log_crit("statadm: matches row select failed");
break;
GLOBAL $G_dbasetype, $G_alarm_passwd, $pazz;
echo "Inizio.<br>";
- flush();
+ mop_flush();
if ($pazz != $G_alarm_passwd) {
echo "Wrong password<br>";
- flush();
+ mop_flush();
exit;
}
echo "Failed.<br>\n";
echo "Fine.\n";
- flush();
+ mop_flush();
}
main();