Commit 61cd5ca6 authored by Stuart John Watson's avatar Stuart John Watson

Fucking did it bitches!

parent 7e672023
......@@ -133,17 +133,17 @@ if ($renew){
$accessLevel = "GAME_ACCESS";
$type = "sucs";
$db->exec("DELETE FROM gamers WHERE username='$authdUser'");
$db->exec("INSERT INTO gamers (username,sessionid,IP,type,lastseen) VALUES ('$authdUser','$sessionid','$cip','$type','$time')");
$db->exec("INSERT INTO gamers (username,sessionid,IP,level,lastseen) VALUES ('$authdUser','$sessionid','$cip','$accessLevel','$time')");
} elseif ($authd == "uni") {
if (file_exists($uniAllowFilePATH)) {
$type = "uni";
$accessLevel = "GAME_ACCESS";
$db->exec("DELETE FROM gamers WHERE username='$authdUser'");
$db->exec("INSERT INTO gamers (username,sessionid,IP,type,lastseen) VALUES ('$authdUser','$sessionid','$cip','$type','$time')");
} else {
$accessLevel = "NO_GAMES";
$failReason = "UNI_DISALLOWED";
}
$db->exec("DELETE FROM gamers WHERE username='$authdUser'");
$db->exec("INSERT INTO gamers (username,sessionid,IP,level,lastseen) VALUES ('$authdUser','$sessionid','$cip','$accessLevel','$time')");
} else {
$accessLevel = "NO_LOGIN";
$failReason = "ERR_UNKNOWN_AUTH_TYPE";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment