X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fbriskin5%2Fstatadm.php;h=c634ef6e12a6b095b698d935afab5a92cb98cef6;hb=7770ac45929f7815028a4f2955f8b93e806af506;hp=2ece714bbc4ec032de990bfd37438e735b698276;hpb=254c175a7e331947c69794aa7a0248caa47e32f5;p=brisk.git
diff --git a/web/briskin5/statadm.php b/web/briskin5/statadm.php
index 2ece714..c634ef6 100644
--- a/web/briskin5/statadm.php
+++ b/web/briskin5/statadm.php
@@ -233,7 +233,6 @@ function main_pgsql($curtime)
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;
@@ -241,7 +240,6 @@ function main_pgsql($curtime)
$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) {
@@ -262,7 +260,6 @@ function main_pgsql($curtime)
$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;
@@ -413,10 +410,10 @@ function main()
GLOBAL $G_dbasetype, $G_alarm_passwd, $pazz;
echo "Inizio.
";
- flush();
+ mop_flush();
if ($pazz != $G_alarm_passwd) {
echo "Wrong password
";
- flush();
+ mop_flush();
exit;
}
@@ -431,7 +428,7 @@ function main()
echo "Failed.
\n";
echo "Fine.\n";
- flush();
+ mop_flush();
}
main();