2017-11-09 17:43:34 +01:00
|
|
|
<?php
|
|
|
|
global $OPTIONS;
|
|
|
|
|
|
|
|
require_once (__DIR__ . '/../internals/base.php');
|
|
|
|
require_once (__DIR__ . '/../internals/database.php');
|
|
|
|
require_once (__DIR__ . '/../internals/highscores.php');
|
|
|
|
|
|
|
|
Database::connect();
|
|
|
|
|
2018-01-26 23:52:55 +01:00
|
|
|
$entries = Highscores::getOrderedEntriesFromGame($OPTIONS['gameid'], 50);
|
2017-11-09 17:43:34 +01:00
|
|
|
|
|
|
|
for ($i = 0; $i < count($entries); $i++)
|
|
|
|
{
|
2018-01-03 21:02:40 +01:00
|
|
|
print($entries[$i]['POINTS'] . '||' . htmlspecialchars($entries[$i]['PLAYER']) . "\r\n");
|
2017-11-09 17:43:34 +01:00
|
|
|
}
|