aboutsummaryrefslogtreecommitdiff
path: root/src/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.php')
-rw-r--r--src/index.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/index.php b/src/index.php
index 8ffdcd8..642e7a0 100644
--- a/src/index.php
+++ b/src/index.php
@@ -45,14 +45,13 @@ if (!isset($_GET["name"])) {
$_SESSION["locr"] = dirname(__FILE__);
if($_SESSION["locr"]=="/") $_SESSION["locr"] = "";
}
-ob_end_flush();
-
-require_once('version.php');
-
if(isset($_GET["getsessionid"])) {
echo session_id();
exit;
}
+ob_end_flush();
+
+require_once('version.php');
?>
<title>BOCA Online Contest Administrator <?php echo $BOCAVERSION; ?> - Login</title>
@@ -85,7 +84,7 @@ if(function_exists("globalconf") && function_exists("sanitizeVariables")) {
ForceLoad("index.php");
if($ct["contestlocalsite"]==$ct["contestmainsite"]) $main=true; else $main=false;
if(isset($_GET['action']) && $_GET['action'] == 'scoretransfer') {
- echo "OK";
+ echo "SCORETRANSFER OK";
} else {
if($main && $_SESSION["usertable"]["usertype"] == 'site') {
MSGError('Direct login of this user is not allowed');