Esempio n. 1
0
}
$newSort = "ASC";
if (isset($_GET["sortorder"])) {
    $check = validateInput($_GET['sortorder'], 'nospace');
    if ($check === true) {
        $playersObj->setOption("sortorder", $_GET['sortorder']);
    }
    if ($_GET["sortorder"] == "ASC") {
        $newSort = "DESC";
    }
} else {
    $playersObj->setOption("sortorder", 'DESC');
}
pageHeader(array($gamename, l('Player Rankings')), array($gamename => "index.php?game={$game}", l('Player Rankings') => ""));
# get the players overview
$pData = $playersObj->getPlayersOveriew();
?>

<div id="sidebar">
	<h1><?php 
echo l('Options');
?>
</h1>
	<div class="left-box">
		<ul class="sidemenu">
			<li>
		<?php 
if (isset($_GET['showall']) && $_GET['showall'] === "1") {
    echo '<a href="?mode=players&amp;game=', $game, '">', l('Show only active players'), '</a>';
} else {
    echo '<a href="?mode=players&amp;game=', $game, '&amp;showall=1">', l('Show all players'), '</a>';