aboutsummaryrefslogtreecommitdiff
path: root/src/team
diff options
context:
space:
mode:
authorCassio de Campos <cassiopc@gmail.com>2018-09-10 05:57:40 +0000
committerCassio de Campos <cassiopc@gmail.com>2018-09-10 05:57:40 +0000
commitf3497452f34af5f90a0902f71d7906472402c2ab (patch)
treeddbb87b108bc62c4c48a372c70c1b4f7dc31fb34 /src/team
parent007bcc0f9daf20fb930a36dacf856f8b0dc33bea (diff)
downloadboca-f3497452f34af5f90a0902f71d7906472402c2ab.tar.gz
boca-f3497452f34af5f90a0902f71d7906472402c2ab.zip
more logs
Diffstat (limited to 'src/team')
-rw-r--r--src/team/run.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/team/run.php b/src/team/run.php
index 32c0d25..e157419 100644
--- a/src/team/run.php
+++ b/src/team/run.php
@@ -111,7 +111,7 @@ if (isset($_POST["problem"]) && isset($_POST["language"]) &&
MSGError("File name cannot contain spaces.");
ForceLoad($runteam);
}
- if(isset($_POST['pastcode']) && $_POST['pastcode'] != '')
+ if(isset($_POST['pastcode']) && $_POST['pastcode'] != '')
$shaf = myhtmlspecialchars($_POST["pastcode"]);
else $shaf = @sha1_file($temp);
// $ac=array('contest','site','user','problem','lang','filename','filepath');
@@ -133,6 +133,7 @@ if (isset($_POST["problem"]) && isset($_POST["language"]) &&
exit;
}
}
+ $name = str_replace("-", "_", $name);
$verify = $compv . '-'. $shaf . '-' . $name . '-'. $prob . '-' . $lang . '-' .
$_SESSION["usertable"]["contestnumber"].'-'.$_SESSION["usertable"]["usersitenumber"].'-'.$_SESSION["usertable"]["usernumber"];
@@ -154,6 +155,7 @@ if (isset($_POST["problem"]) && isset($_POST["language"]) &&
@file_put_contents($fcnamex, $_SESSION["usertable"]["contestnumber"].'-'.$_SESSION["usertable"]["usersitenumber"].'-'.$_SESSION["usertable"]["usernumber"], LOCK_EX);
} else {
if(trim($prevcomp) != $_SESSION["usertable"]["contestnumber"].'-'.$_SESSION["usertable"]["usersitenumber"].'-'.$_SESSION["usertable"]["usernumber"]) {
+ @file_put_contents($fcname . ".try", $verify1 . "-UNAUTH\n", FILE_APPEND | LOCK_EX);
if(isset($_POST['name']) && $_POST['name'] != '') {
echo "\nRESULT: UNAUTHORIZED COMPUTER";
exit;