function content() { global $player; if ($player == NULL) { echo "<center>You must <a href=\"login.php\">log in</a> to use your"; echo " player control panel.</center>\n"; } elseif (isset($_GET['mode']) && $_GET['mode'] == 'alldecks') { allContainer(); } elseif (isset($_GET['mode']) && $_GET['mode'] == 'allratings') { if (!isset($_GET['format'])) { $_GET['format'] = "Composite"; } ratingsTable($_SESSION['username']); echo "<br><br>"; ratingHistoryForm($_GET['format']); echo "<br>"; ratingsHistory($_GET['format']); } elseif (isset($_GET['mode']) && $_GET['mode'] == 'allmatches') { allMatchForm($player); matchTable($player); } elseif (isset($_POST['mode']) && $_POST['mode'] == 'Filter Matches') { allMatchForm($player); matchTable($player); } else { mainPlayerCP($_SESSION['username']); } }
function content() { $format = "Composite"; if (isset($_POST['format'])) { $format = $_POST['format']; } ratingsForm($format); $min = 20; if ($format == "XPDC Season 1") { $min = 10; } if ($format == "Modern") { $min = 10; } echo "<br><center>"; currentThrough($format); echo "</center><br>\n"; echo "<center>"; bestEver($format); echo "</center><br>\n"; ratingsTable($format, $min); echo "<br>"; }