aboutsummaryrefslogtreecommitdiff
path: root/src/site
diff options
context:
space:
mode:
authorcassiopc <cassiopc@gmail.com>2013-09-02 13:03:33 +0000
committercassiopc <cassiopc@gmail.com>2013-09-02 13:03:33 +0000
commit1b94293e92915ff3c5b6944a16fb0851d6fd19cc (patch)
tree7992edbafbe7760900736ba27be58358fa0cf503 /src/site
parentbc3df342f06c6f61e0daf9ae29d435f9299b8733 (diff)
downloadboca-1b94293e92915ff3c5b6944a16fb0851d6fd19cc.tar.gz
boca-1b94293e92915ff3c5b6944a16fb0851d6fd19cc.zip
inclusion of score's downloads from the first server in the file otherservers
Diffstat (limited to 'src/site')
-rw-r--r--src/site/index.php4
-rw-r--r--src/site/putfile.php3
2 files changed, 4 insertions, 3 deletions
diff --git a/src/site/index.php b/src/site/index.php
index 3b066ab..0afc7e4 100644
--- a/src/site/index.php
+++ b/src/site/index.php
@@ -1,7 +1,7 @@
<?php
////////////////////////////////////////////////////////////////////////////////
//BOCA Online Contest Administrator
-// Copyright (C) 2003-2012 by BOCA Development Team (bocasystem@gmail.com)
+// Copyright (C) 2003-2013 by BOCA Development Team (bocasystem@gmail.com)
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -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 modified 21/jul/2012 by cassio@ime.usp.br
+// Last modified 02/sep/2013 by cassio@ime.usp.br
require('header.php');
if(isset($_GET['mainuser']) && isset($_GET['mainpass']) && $_GET['mainuser']!="" && $_GET['mainpass']!="") {
$_SESSION['mainuser'] = $_GET['mainuser'];
diff --git a/src/site/putfile.php b/src/site/putfile.php
index 8a1d89a..6273711 100644
--- a/src/site/putfile.php
+++ b/src/site/putfile.php
@@ -181,7 +181,8 @@ if(is_writable($_SESSION["locr"] . $remotedir)) {
} else {
if(@rename($fn, $_SESSION["locr"] . $remotedir . $ds . "score_" . $_SESSION["usertable"]["username"] .
- "_" . $_SESSION["usertable"]["usericpcid"] . "_" . md5(getIP()) . ".dat"))
+ "_" . $_SESSION["usertable"]["usericpcid"] . "_" //. md5(getIP())
+ . ".dat"))
echo "SCORE UPLOADED OK\n";
else
echo "FAILED: UPDATE SCORE ERROR\n";