diff options
| author | cassiopc <cassiopc@gmail.com> | 2012-10-22 16:50:03 +0000 |
|---|---|---|
| committer | cassiopc <cassiopc@gmail.com> | 2012-10-22 16:50:03 +0000 |
| commit | df477b322c071d81ea06ad972a36ea9f30cdc34f (patch) | |
| tree | 77dad3b53ed879e65b22f24f880592a12e5dbad0 /boca-1.5.1/src/index.php | |
| parent | 9e75d473525446d0961a7567bcb8a1e672949df8 (diff) | |
| download | boca-df477b322c071d81ea06ad972a36ea9f30cdc34f.tar.gz boca-df477b322c071d81ea06ad972a36ea9f30cdc34f.zip | |
update sendscore.sh to cope with new version. Fix password update and hexsub
Diffstat (limited to 'boca-1.5.1/src/index.php')
| -rw-r--r-- | boca-1.5.1/src/index.php | 18 |
1 files changed, 10 insertions, 8 deletions
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 "<script language=\"JavaScript\">\n"; + echo "document.location='" . $_SESSION["usertable"]["usertype"] . "/index.php';\n"; + echo "</script>\n"; } - echo "<script language=\"JavaScript\">\n"; - echo "document.location='" . $_SESSION["usertable"]["usertype"] . "/index.php';\n"; - echo "</script>\n"; exit; } } |