From: Matteo Nastasi (mop) Date: Sun, 26 Jul 2009 16:33:41 +0000 (+0000) Subject: ex-equo added X-Git-Tag: 3.0.0~49 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=0b5cee85e950bfd337c0f539d278b8e0e9c3e62c;p=brisk.git ex-equo added --- diff --git a/web/briskin5/Obj/placing.phh b/web/briskin5/Obj/placing.phh index 07953dc..d0ce4b9 100644 --- a/web/briskin5/Obj/placing.phh +++ b/web/briskin5/Obj/placing.phh @@ -24,15 +24,18 @@ * */ -define(TOP_NUM, 10); +define(TOP_NUM, 10); define(TRI_LIMIT, (90 * 24 * 60 * 60)); +// define(TRI_FEW_GAMES, 60); define(TRI_FEW_GAMES, 140); define(MON_LIMIT, (30 * 24 * 60 * 60)); +// define(MON_FEW_GAMES, 20); define(MON_FEW_GAMES, 70); define(WEE_LIMIT, (7 * 24 * 60 * 60)); +// define(WEE_FEW_GAMES, 10); define(WEE_FEW_GAMES, 35); @@ -97,14 +100,14 @@ function ptsgam_cmp($a, $b) function placings_show(&$user) { $ret = sprintf("
"); - $ret .= sprintf("", WEE_FEW_GAMES, placing_show($user, "wee_hi") ); - $ret .= sprintf("\n", WEE_FEW_GAMES, placing_show($user, "wee_lo") ); + $ret .= sprintf("", WEE_FEW_GAMES, placing_show($user, "wee_hi") ); + $ret .= sprintf("\n", WEE_FEW_GAMES, placing_show($user, "wee_lo") ); - $ret .= sprintf("", MON_FEW_GAMES, placing_show($user, "mon_hi") ); - $ret .= sprintf("\n", MON_FEW_GAMES, placing_show($user, "mon_lo") ); + $ret .= sprintf("", MON_FEW_GAMES, placing_show($user, "mon_hi") ); + $ret .= sprintf("\n", MON_FEW_GAMES, placing_show($user, "mon_lo") ); - $ret .= sprintf("", TRI_FEW_GAMES, placing_show($user, "tri_hi")); - $ret .= sprintf("", TRI_FEW_GAMES, placing_show($user, "tri_lo")); + $ret .= sprintf("", TRI_FEW_GAMES, placing_show($user, "tri_hi")); + $ret .= sprintf("", TRI_FEW_GAMES, placing_show($user, "tri_lo")); $ret .= sprintf("

Settimanale
(non meno di %d partite)

%s

Settimanale
(meno di %d partite)

%s

Settimanale
(non meno di %d partite)

%s

Settimanale
(meno di %d partite)

%s

Mensile
(non meno di %d partite)

%s

Mensile
(meno di %d partite)

%s

Mensile
(non meno di %d partite)

%s

Mensile
(meno di %d partite)

%s

Trimestrale
(non meno di %d partite)

%s

Trimestrale
(meno di %d partite)

%s

Trimestrale
(non meno di %d partite)

%s

Trimestrale
(meno di %d partite)

%s
"); @@ -121,6 +124,9 @@ function placing_show(&$user, $suff) // MLANG $ret = sprintf(""); + + $old_normpts = 1000000000; + $old_gam = -1; for ($i = 0 ; !feof($fp) ; $i++) { $bf = fgets($fp, 4096); $ar = csplitter($bf, '|'); @@ -130,6 +136,9 @@ function placing_show(&$user, $suff) if ($pg->username == "") continue; + if ($pg->normpts() == $old_normpts && $pg->gam == $old_gam) + $i--; + if ($i < TOP_NUM) { $ret .= sprintf("", $i+1, ($pg->username == $user->name ? "" : ""), $pg->username, ($pg->username == $user->name ? "" : ""), $pg->snormpts(), $pg->pts, $pg->gam); @@ -141,6 +150,8 @@ function placing_show(&$user, $suff) ($pg->username == $user->name ? "" : ""), $pg->username, ($pg->username == $user->name ? "" : ""), $pg->snormpts(), $pg->pts, $pg->gam); } } + $old_normpts = $pg->normpts(); + $old_gam = $pg->gam; } if ($tail != FALSE) {
Pos.UtenteScore(Punti/Partite)
%d%s%s%s%s(%d/%d)