aboutsummaryrefslogtreecommitdiff
path: root/src/flog.php
diff options
context:
space:
mode:
authorBruno Ribas <brunoribas@gmail.com>2022-05-20 15:55:25 +0000
committerBruno Ribas <brunoribas@gmail.com>2022-05-20 15:55:25 +0000
commit64e2fe6288449071d85a68f6a9a28f3ef359034b (patch)
tree7034ef5cb7ec02be4436114035c7019af77ecf80 /src/flog.php
parentb7ad2f72ea70125754b6a44820cbdec334993aea (diff)
downloadboca-64e2fe6288449071d85a68f6a9a28f3ef359034b.tar.gz
boca-64e2fe6288449071d85a68f6a9a28f3ef359034b.zip
fast forward old changes
Signed-off-by: Bruno Ribas <brunoribas@gmail.com>
Diffstat (limited to 'src/flog.php')
-rw-r--r--src/flog.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/flog.php b/src/flog.php
index 9ff6357..b8f4122 100644
--- a/src/flog.php
+++ b/src/flog.php
@@ -177,23 +177,23 @@ function DBLogInContest($name,$pass,$contest,$msg=true) {
unset($_SESSION["usertable"]);
return false;
}
- if($prevuser != $ccode && $a["usertype"] == "team") {
- LOGLevel("User $name tried to log in contest $contest but computer is invalid ($ccode).",2);
- if($msg) MSGError("Invalid computer (3).");
- unset($_SESSION["usertable"]);
- return false;
- }
+ //if($prevuser != $ccode && $a["usertype"] == "team") {
+ // LOGLevel("User $name tried to log in contest $contest but computer is invalid ($ccode).",2);
+ // if($msg) MSGError("Invalid computer (3).");
+ // unset($_SESSION["usertable"]);
+ // return false;
+ //}
} else {
if($a["usertype"] == "team")
@file_put_contents($dircode, $ccode);
}
$gip=getIP();
- if(!ValidCookie(true,$gip)) {
- if($msg) MSGError("Invalid computer (4).");
- unset($_SESSION["usertable"]);
- return false;
- }
+ //if(!ValidCookie(true,$gip)) {
+ // if($msg) MSGError("Invalid computer (4).");
+ // unset($_SESSION["usertable"]);
+ // return false;
+ //}
if ($a["userip"] != $gip && $a["userip"] != "" && $a["usertype"] != "score") {
LOGLevel("User $name is using two different IPs: " . $a["userip"] .