$seasonSel = ""; $sql = "SELECT season FROM six_stats"; $row = mysql_fetch_array(mysql_query($sql)); $sixSeason = $row[0]; $seasonLadder = 0; if (isset($_POST['seasonLadder'])) { $seasonLadder = mysql_real_escape_string($_POST['seasonLadder']); } elseif (isset($_GET['seasonLadder'])) { $seasonLadder = mysql_real_escape_string($_GET['seasonLadder']); } else { $seasonLadder = $sixSeason-1; } ?> <?= getOuterBoxTop($subNavText.getRaquo().getSubNavigation($subpage, null), "") ?> <table width="80%"> <tr><td> <table class="formtable"><tr><td nowrap> <form method="post" action="<?= $_SERVER['PHP_SELF'] ?>"> <select class="width250" name="seasonLadder"> <option value="">[Select Season]</option> <?= $seperator ?> <? $sql= "SELECT * from six_seasons WHERE season < $sixSeason ORDER BY season DESC"; $result = mysql_query($sql); while ($row = mysql_fetch_array($result)) { $beginDate = $row['begindate']; $endDate = $row['enddate']; $seasonCurrent = $row['season'];
<?php header("Cache-Control: no-cache"); header("Pragma: no-cache"); $page = "players"; $subpage = "streaks"; require '../variables.php'; require '../variablesdb.php'; require '../functions.php'; require '../top.php'; $boxImg = "8.jpg"; $boxAlign = "left bottom"; $name = mysql_real_escape_string($_GET['name']); echo getOuterBoxTop($subNavText . getRaquo() . getSubNavigation($subpage, $name), ""); ?> <? $sql = "select name from $playerstable where name = '$name'"; $result = mysql_query($sql); if (empty($name)) { echo "<p>No player specified!</p>"; } else if (mysql_num_rows($result) == 0) { echo "<p>The player <b>$name</b> could not be found in the database.</p>"; } else { $row = mysql_fetch_array($result); $name = $row['name']; ?> <table width="100%"> <tr>
$rowspan2 = 'rowspan="2"'; $box1Img = "8.jpg"; $box1Align = "left bottom"; $box2Img = "2.jpg"; $box2Align = "left bottom"; $box3Img = "5.jpg"; $box3Align = "left center"; $box4Img = "9.jpg"; $box4Align = "left center"; $sql = "SELECT six_seasons.begindate, six_seasons.enddate, six_stats.season from six_seasons LEFT JOIN six_stats ON six_seasons.season=six_stats.season " . "WHERE six_seasons.season=six_stats.season"; $result = mysql_query($sql); $row = mysql_fetch_array($result); $begindate = $row['begindate']; $enddate = $row['enddate']; $sixSeason = $row['season']; $left = $subNavText . getRaquo() . getSubNavigation($subpage, null); $right = '<span class="black-small">Sixserver Season ' . $sixSeason . ' (' . $begindate . ' - ' . $enddate . ')</span>'; $sql = "SELECT * FROM {$newstable} ORDER BY news_id DESC LIMIT 0, 1"; $result = mysql_query($sql); $row = mysql_fetch_array($result); $news = $row["news"]; $news = nl2br($news); $news = SmileyConvert($news, $directory); $date = $row["date"]; $title = $row["title"]; $user = $row["user"]; $parsedTime = strtotime($date); ?> <?php echo getOuterBoxTop($left, $right);
<?php // the rules and information page header("Cache-Control: no-cache"); header("Pragma: no-cache"); $page = "sitemap"; require 'variables.php'; require 'variablesdb.php'; require 'functions.php'; require 'top.php'; list($pageinfo1, $pageinfo2, $pageinfo3, $pageinfo4, $pageinfo5, $pageinfo6, $pageinfo7, $pageinfo8, $pageinfo9, $pageinfo10, $pageinfo11, $pageinfo12, $pageinfo13, $pageinfo14) = explode("*", $menuorder); $pageinfos = explode("*", $menuorder); ?> <?php echo getOuterBoxTop($leaguename . getRaquo() . " Sitemap", ""); ?> <p style="padding: 5px 3px 5px 0;">If you forgot where a certain page is or the dynamic menu isn't working for you, this table shows all main and sub menu items. Click the page name to go to the page.</p> <table border="1" style="width:800px; border-collapse:collapse;"> <tr> <? $count = 0; $tdstyle = 'style="vertical-align:top; border-collapse:collapse; border:1px solid #AAAAAA; padding: 10px 10px 10px 10px"'; if (!empty($cookie_name) && $cookie_name != 'null') { $subs = getSubNavArrayForPage('profile', $cookie_name); echo '<td nowrap colspan="4" width="800" '.$tdstyle.'><p><b><a href="/profile.php?name='.$cookie_name.'">My Profile</a></b>'. ' <span class="grey-small">(only when logged in or by clicking other players name)</span></p><p>'; foreach ($subs as $sub) { $urlFormatted = str_replace($playerDummy, "?name=".$cookie_name, $sub[0]);
if (!empty($gameId)) { $sql = "Select count(*) from $gamestable where game_id > $gameId"; $result = mysql_query($sql); if (@mysql_num_rows($result) > 0) { $row = mysql_fetch_array($result); $count = $row[0]; $pageGameId = floor($count/$numgamespage); $startplayed = $numgamespage*$pageGameId; $type = "against"; $selectname = "all"; $opponent = "all"; } } ?> <?= getOuterBoxTop($subNavText.getRaquo().getSubNavigation($subpage, null), $gamesToday) ?> <table width="100%"><tr><td style="text-align:left;"> <form method="post" name="formGames" action="<?php echo"$directory"?>/games.php?startplayed=0&finishplayed=<?php echo"$numgamespage"?>"> <select class="width150" name="gameType"> <option value="0"<? if (strcmp($gameType, "0") == 0) echo $selected; ?>>All games</option> <option value="1"<? if (strcmp($gameType, "1") == 0) echo $selected; ?>>Single games</option> <option value="2"<? if (strcmp($gameType, "2") == 0) echo $selected; ?>>Team games</option> </select> <span style="vertical-align:middle"> of </span> <select class="width150" name="selectname"> <?php $sortby = "name ASC"; $sql="SELECT name FROM $playerstable ORDER BY $sortby"; $result = mysql_query($sql,$db); $num = mysql_num_rows($result);
$filter = ""; } } if (!empty($_GET['ago'])) { $ago = mysql_real_escape_string($_GET['ago']); } else { if (!empty($_POST['ago'])) { $ago = mysql_real_escape_string($_POST['ago']); } else { $ago = 1; } } ?> <?php echo getOuterBoxTop($leaguename . getRaquo() . " Chatlog", ""); ?> <? $timespanAgo = 60*60*24*$ago; $dateString = date('Y_n_j', time()-$timespanAgo); echo "<p>/var/log/sixserver/sixserver.log.".$dateString."</p>"; EchoFile("/var/log/sixserver/sixserver.log.".$dateString, $filter); echo "<p>/var/log/sixserver/sixserver.log</p>"; EchoFile("/var/log/sixserver/sixserver.log", $filter); ?> <?php echo getOuterBoxBottom(); ?>