diff options
| author | cassiopc <cassiopc@gmail.com> | 2013-09-02 13:03:33 +0000 |
|---|---|---|
| committer | cassiopc <cassiopc@gmail.com> | 2013-09-02 13:03:33 +0000 |
| commit | 1b94293e92915ff3c5b6944a16fb0851d6fd19cc (patch) | |
| tree | 7992edbafbe7760900736ba27be58358fa0cf503 /src/site | |
| parent | bc3df342f06c6f61e0daf9ae29d435f9299b8733 (diff) | |
| download | boca-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.php | 4 | ||||
| -rw-r--r-- | src/site/putfile.php | 3 |
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"; |