1
0
Fork 0

Fix highscore insert code

This commit is contained in:
Mike Schwörer 2018-01-26 23:49:25 +01:00
parent fde10ee7bf
commit 80fface06b
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF
1 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ class HighscoresController extends MSController //TODO-MS Test online if it all
$entry->PLAYER = $name;
$entry->PLAYERID = -1;
$entry->CHECKSUM = $check;
$entry->TIMESTAMP = time();
$entry->TIMESTAMP = date("Y-m-d H:m:s", time());
$entry->IP = $_SERVER['REMOTE_ADDR'];
if ($entry->checkChecksum($rand))
@ -151,7 +151,7 @@ class HighscoresController extends MSController //TODO-MS Test online if it all
$entry->PLAYER = $name;
$entry->PLAYERID = -1;
$entry->CHECKSUM = $check;
$entry->TIMESTAMP = time();
$entry->TIMESTAMP = date("Y-m-d H:m:s", time());
$entry->IP = $_SERVER['REMOTE_ADDR'];
if ($entry->checkChecksum($rand))