Skip to content
GitLab
Explore
Sign in
Commits on Source (2)
Fix horrible bug.
· b4b2b37b
Imran Hussain
authored
Aug 31, 2016
strtolower what though?
b4b2b37b
Fix what I think was a bad copy paste job
· 36d7306c
Imran Hussain
authored
Aug 31, 2016
36d7306c
Hide whitespace changes
Inline
Side-by-side
controll_2.php
View file @
36d7306c
...
...
@@ -115,7 +115,7 @@
array_pop
(
$s
);
$username
=
implode
(
"@"
,
$s
);
}
$username
=
strtolower
();
$username
=
strtolower
(
$username
);
$authResult
=
authCheck
(
$authd
,
$username
);
//If they gave a good login
...
...
@@ -125,7 +125,7 @@
$cip
=
$_SERVER
[
'REMOTE_ADDR'
];
$time
=
time
();
sqlite3Exec
(
"DELET FROM gamers WHERE username='
$username
'"
);
sqlite3Exec
(
"INSERT INTO gamers (username,sessionid,IP,authd,lastseen) VALUES ('
$
authdUser
','
$sessionid
','
$cip
','
$authd
','
$time
')"
);
sqlite3Exec
(
"INSERT INTO gamers (username,sessionid,IP,authd,lastseen) VALUES ('
$
username
','
$sessionid
','
$cip
','
$authd
','
$time
')"
);
}
//Return the authResult
...
...