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

45 lines
868 B
PHP
Raw 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
$games = $SITE->modules->Highscores()->getAllGames();
2017-11-09 17:43:34 +01:00
?>
<html>
<head>
<meta charset="utf-8"/>
<title>highscores</title>
<style type="text/css">
<!--
body {
background-color: #DDF;
padding: 1em 1em 0em;
}
a {
color: #008;
text-decoration: underline;
}
a:hover { text-decoration: none; }
-->
</style>
</head>
<body>
<?php
foreach ($games as $game)
{
echo '<a href="/Highscores/list?gameid=' . $game['ID'] . '">' . $game['NAME'] . '</a><br>' . "\r\n";
}
?>
</body>
</html>