diff options
| author | cassiopc <cassiopc@gmail.com> | 2012-11-03 10:15:29 +0000 |
|---|---|---|
| committer | cassiopc <cassiopc@gmail.com> | 2012-11-03 10:15:29 +0000 |
| commit | f99a16bd90e8a3d3b4e8f9ecfe4d8f52f54c6e75 (patch) | |
| tree | b9243502c5956216c11c21642b5dca39aba0ced7 /boca-1.5.2/src/scoretable.php | |
| parent | 0843815a126c9f0282113592e54b17e5823624d2 (diff) | |
| download | boca-f99a16bd90e8a3d3b4e8f9ecfe4d8f52f54c6e75.tar.gz boca-f99a16bd90e8a3d3b4e8f9ecfe4d8f52f54c6e75.zip | |
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
Diffstat (limited to 'boca-1.5.2/src/scoretable.php')
| -rw-r--r-- | boca-1.5.2/src/scoretable.php | 4 |
1 files changed, 3 insertions, 1 deletions
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 <http://www.gnu.org/licenses/>. //////////////////////////////////////////////////////////////////////////////// -//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++; + } } } |