Fix highscore insert code
This commit is contained in:
parent
fde10ee7bf
commit
80fface06b
@ -43,7 +43,7 @@ class HighscoresController extends MSController //TODO-MS Test online if it all
|
|||||||
$entry->PLAYER = $name;
|
$entry->PLAYER = $name;
|
||||||
$entry->PLAYERID = -1;
|
$entry->PLAYERID = -1;
|
||||||
$entry->CHECKSUM = $check;
|
$entry->CHECKSUM = $check;
|
||||||
$entry->TIMESTAMP = time();
|
$entry->TIMESTAMP = date("Y-m-d H:m:s", time());
|
||||||
$entry->IP = $_SERVER['REMOTE_ADDR'];
|
$entry->IP = $_SERVER['REMOTE_ADDR'];
|
||||||
|
|
||||||
if ($entry->checkChecksum($rand))
|
if ($entry->checkChecksum($rand))
|
||||||
@ -151,7 +151,7 @@ class HighscoresController extends MSController //TODO-MS Test online if it all
|
|||||||
$entry->PLAYER = $name;
|
$entry->PLAYER = $name;
|
||||||
$entry->PLAYERID = -1;
|
$entry->PLAYERID = -1;
|
||||||
$entry->CHECKSUM = $check;
|
$entry->CHECKSUM = $check;
|
||||||
$entry->TIMESTAMP = time();
|
$entry->TIMESTAMP = date("Y-m-d H:m:s", time());
|
||||||
$entry->IP = $_SERVER['REMOTE_ADDR'];
|
$entry->IP = $_SERVER['REMOTE_ADDR'];
|
||||||
|
|
||||||
if ($entry->checkChecksum($rand))
|
if ($entry->checkChecksum($rand))
|
||||||
|
Loading…
Reference in New Issue
Block a user