X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fbriskin5%2Fstat-day.php;fp=web%2Fbriskin5%2Fstat-day.php;h=cadeb265e83aff7e7d57bd6181553b109e482dd8;hb=7332bf2e21e419c2f5af5f7e955367b59c9da135;hp=d70d208ee211a4c5f62c5ec4374770eb46bbb586;hpb=8740bf85c70c984fdd5342ef4446cced16fb4e5e;p=brisk.git diff --git a/web/briskin5/stat-day.php b/web/briskin5/stat-day.php index d70d208..cadeb26 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'), @@ -427,8 +433,10 @@ SELECT p.pts AS pts ($tmt_obj->minus_one_is_old == -1 ? "td" : "th")); } if ($tmt_obj->minus_one_is_old != -1) { + // FIXME + $rules_name = "Rules_old_rules"; fprintf($fpexp, "%s%s", $users[$gam_obj->mazzo]['login'], - xcape( game_description($gam_obj->act, 'plain', $gam_obj->mult, + xcape( ${rules_name}::game_description($gam_obj->act, 'plain', $gam_obj->mult, $gam_obj->asta_win, ($gam_obj->asta_win != -1 ? $users[$gam_obj->asta_win]['login'] : ""), @@ -471,7 +479,7 @@ SELECT sum(p.pts * (2^g.mult)) AS pts } } if ($t < $trn_n) { - log_crit("stat-day: t < trn_n"); + log_crit(sprintf("stat-day: t < trn_n (%d, %d)", $t, $trn_n)); break; } $ret = (TRUE);