From f99a16bd90e8a3d3b4e8f9ecfe4d8f52f54c6e75 Mon Sep 17 00:00:00 2001 From: cassiopc Date: Sat, 3 Nov 2012 11:15:29 +0100 Subject: updated scheme for scoreboard sharing inclusion of extra site parameter in score.sep (to define by usernumber and sitenumber altogether) bug fix related to showing runs that happened in the future (when integrating scores of sites that started in distinct moments) bug fix to sort the files in remotescores/ so as the most updated score for each site is taken into account --- boca-1.5.2/src/scoretable.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'boca-1.5.2/src/scoretable.php') diff --git a/boca-1.5.2/src/scoretable.php b/boca-1.5.2/src/scoretable.php index 383705d..bc6cf47 100644 --- a/boca-1.5.2/src/scoretable.php +++ b/boca-1.5.2/src/scoretable.php @@ -15,7 +15,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . //////////////////////////////////////////////////////////////////////////////// -//Last updated 10/jul/2012 by cassio@ime.usp.br +//Last updated 02/nov/2012 by cassio@ime.usp.br require_once("db.php"); $locr=$_SESSION["locr"]; @@ -245,8 +245,10 @@ if($redo) { else if(strpos($grname[$k],'/') >= 1) { $u1 = explode('/',$grname[$k]); if(isset($u1[1]) && $score[$e]['user'] >= $u1[0] && $score[$e]['user'] <= $u1[1]) { + if(!isset($u1[2]) || $u1[2]==$score[$e]['site']) { $score[$e]['classingroup'][$rfi]=$class; $class++; + } } } -- cgit v1.2.3