1
0
www.mikescher.com/www/pages/highscores_newid.php
2020-01-17 00:55:41 +01:00

18 lines
494 B
PHP

<?php
require_once (__DIR__ . '/../internals/website.php');
/** @var PageFrameOptions $FRAME_OPTIONS */ global $FRAME_OPTIONS;
/** @var URLRoute $ROUTE */ global $ROUTE;
/** @var Website $SITE */ global $SITE;
$FRAME_OPTIONS->title = null;
$FRAME_OPTIONS->canonical_url = null;
$FRAME_OPTIONS->activeHeader = null;
$FRAME_OPTIONS->frame = 'api_frame.php';
$newid = $SITE->modules->Highscores()->getNextPlayerID($ROUTE->parameter['gameid']);
if ($newid < 1024) $newid = 1024;
print $newid;