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/index.php | |
| 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/index.php')
| -rw-r--r-- | src/index.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/index.php b/src/index.php index af55fab..8ffdcd8 100644 --- a/src/index.php +++ b/src/index.php @@ -49,6 +49,11 @@ ob_end_flush(); require_once('version.php'); +if(isset($_GET["getsessionid"])) { + echo session_id(); + exit; +} + ?> <title>BOCA Online Contest Administrator <?php echo $BOCAVERSION; ?> - Login</title> <head> @@ -79,7 +84,9 @@ if(function_exists("globalconf") && function_exists("sanitizeVariables")) { if(($ct = DBContestInfo($_SESSION["usertable"]["contestnumber"])) == null) ForceLoad("index.php"); if($ct["contestlocalsite"]==$ct["contestmainsite"]) $main=true; else $main=false; - if(!isset($_GET['action']) || $_GET['action'] != 'scoretransfer') { + if(isset($_GET['action']) && $_GET['action'] == 'scoretransfer') { + echo "OK"; + } else { if($main && $_SESSION["usertable"]["usertype"] == 'site') { MSGError('Direct login of this user is not allowed'); unset($_SESSION["usertable"]); |