From df477b322c071d81ea06ad972a36ea9f30cdc34f Mon Sep 17 00:00:00 2001 From: cassiopc Date: Mon, 22 Oct 2012 18:50:03 +0200 Subject: update sendscore.sh to cope with new version. Fix password update and hexsub --- boca-1.5.1/src/index.php | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'boca-1.5.1/src/index.php') diff --git a/boca-1.5.1/src/index.php b/boca-1.5.1/src/index.php index db904c7..af55fab 100644 --- a/boca-1.5.1/src/index.php +++ b/boca-1.5.1/src/index.php @@ -79,15 +79,17 @@ 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($main && $_SESSION["usertable"]["usertype"] == 'site') { - MSGError('Direct login of this user is not allowed'); - unset($_SESSION["usertable"]); - ForceLoad("index.php"); - exit; + if(!isset($_GET['action']) || $_GET['action'] != 'scoretransfer') { + if($main && $_SESSION["usertable"]["usertype"] == 'site') { + MSGError('Direct login of this user is not allowed'); + unset($_SESSION["usertable"]); + ForceLoad("index.php"); + exit; + } + echo "\n"; } - echo "\n"; exit; } } -- cgit v1.2.3