Highscores
This commit is contained in:
@@ -1,14 +1,18 @@
|
||||
<?php
|
||||
global $OPTIONS;
|
||||
require_once (__DIR__ . '/../internals/website.php');
|
||||
|
||||
require_once (__DIR__ . '/../internals/base.php');
|
||||
require_once (__DIR__ . '/../internals/database.php');
|
||||
require_once (__DIR__ . '/../internals/highscores.php');
|
||||
/** @var PageFrameOptions $FRAME_OPTIONS */ global $FRAME_OPTIONS;
|
||||
/** @var URLRoute $ROUTE */ global $ROUTE;
|
||||
/** @var Website $SITE */ global $SITE;
|
||||
|
||||
Database::connect();
|
||||
$FRAME_OPTIONS->title = null;
|
||||
$FRAME_OPTIONS->canonical_url = null;
|
||||
$FRAME_OPTIONS->activeHeader = null;
|
||||
$FRAME_OPTIONS->frame = 'api_frame.php';
|
||||
|
||||
$newid = Highscores::getNextPlayerID($OPTIONS['gameid']);
|
||||
|
||||
if ($newid < 1024) $newid = 1024;
|
||||
|
||||
print $newid;
|
||||
$newid = $SITE->modules->Highscores()->getNextPlayerID($ROUTE->parameter['gameid']);
|
||||
|
||||
if ($newid < 1024) $newid = 1024;
|
||||
|
||||
print $newid;
|
||||
Reference in New Issue
Block a user