1
0
www.mikescher.com/www/pages/highscores_top50.php

19 lines
597 B
PHP
Raw Permalink Normal View History

2017-11-09 17:43:34 +01:00
<?php
2020-01-17 00:55:41 +01:00
require_once (__DIR__ . '/../internals/website.php');
2017-11-09 17:43:34 +01:00
2020-01-17 00:55:41 +01:00
/** @var PageFrameOptions $FRAME_OPTIONS */ global $FRAME_OPTIONS;
/** @var URLRoute $ROUTE */ global $ROUTE;
/** @var Website $SITE */ global $SITE;
2017-11-09 17:43:34 +01:00
2020-01-17 00:55:41 +01:00
$FRAME_OPTIONS->title = null;
$FRAME_OPTIONS->canonical_url = null;
$FRAME_OPTIONS->activeHeader = null;
$FRAME_OPTIONS->frame = 'api_frame.php';
2017-11-09 17:43:34 +01:00
2020-01-17 00:55:41 +01:00
$entries = $SITE->modules->Highscores()->getOrderedEntriesFromGame($ROUTE->parameter['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
}