X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fbriskin5%2Fstat-day.php;h=5f62596f4b604e120bffa44a1261747c08f132a9;hb=a222ac87c9aa8297cc7dd4ede7c9b92089d52238;hp=8ba77788a3456c7940eb14c2c812be1cbb7d3943;hpb=db12d769481823f4c744ce0e3a50404cc6b01cd1;p=brisk.git diff --git a/web/briskin5/stat-day.php b/web/briskin5/stat-day.php index 8ba7778..5f62596 100644 --- a/web/briskin5/stat-day.php +++ b/web/briskin5/stat-day.php @@ -40,8 +40,14 @@ curl -d "pazz=$BRISK_PASS" "http://$BRISK_SITE/briskin5/stat-day.php?from=$(date $G_base = "../"; -$mlang_stat_day = array( 'normal match'=> array( 'it' => 'Partite normali', - 'en' => 'Normal matches' ), +// SYNC WITH bin5_tournaments table +$mlang_stat_day = array( + 'old rules: with draw'=> array( 'it' => 'Partite vecchie (con il pareggio)', + 'en' => 'Old matches (with draw)' ), + + 'new rules: without draw' => array( 'it' => 'Partite nuove (senza pareggio)', + 'en' => 'New matches (without draw)'), + 'special match' => array( 'it' => 'Partite speciali', 'en' => 'Special matches'), @@ -252,10 +258,10 @@ function main_pgsql($from, $to) break; } - if (pg_query($bdb->dbconn->db(), "BEGIN") == FALSE) { - log_crit("stat-day: begin failed"); - break; - } + //if ($bdb->transaction("BEGIN") == FALSE) { + // log_crit("stat-day: begin failed"); + // break; + //} // retrieve list of active tournaments $trn_sql = sprintf("SELECT * FROM %sbin5_tournaments WHERE active = 1;", $G_dbpfx); @@ -300,7 +306,7 @@ SELECT m.code AS code, m.mazzo_next as minus_one_is_old break; } printf("[Tournament [%s]], number of matches: %d\n", $mlang_stat_day[$trn_obj->name][$G_lang], $tmt_n); - fprintf($fpexp, "