<? $logRep = new KLogger('/var/www/yoursite/http/log/sixgames-direct/', KLogger::INFO); ?> <?php echo getBoxTopImg("Edit Sixserver Teams", $boxheight, true, null, $box3Img, $box3Align); ?> <? if (!isset($_POST['game_id0'])) { ?> <p class="darkgrey-small">Please enter the teams used in these sixserver games. If you're unsure, leave the team field empty.</p> <script language="javascript"> <!-- var teamsArray = new Array(<?php echo getTeamsAllJavascript(); ?> ); --> </script> <form method="post" name="editGamesDirect" action="<?php echo $_SERVER['PHP_SELF']; ?> "> <table class="layouttable"> <? $teamsAsked = array(); $index = 0; while (($row = mysql_fetch_array($result)) && ($index < 6)) { $matchId = $row['match_id']; $teamIdHome = $row['team_id_home']; $teamIdAway = $row['team_id_away']; // $logRep->logInfo('cookie_name='.$cookie_name.' matchId='.$matchId.' index='.$index);
<img src="/graph/streak.php?name=<?php echo $name; ?> &winDays=<?php echo $winDays; ?> " border="1"> </td> </tr> </table> <?php echo getBoxBottom(); ?> <?php echo getBoxTopImg("Losing Streaks - Graph", null, false, "", '', ''); ?> <table class="layouttable"> <tr> <td height="170"> <img src="/graph/streak.php?name=<?php echo $name; ?> &loseDays=<?php echo $loseDays; ?> " border="1"> </td> </tr> </table>
<? $logRep = new KLogger('/var/www/yoursite/http/log/report/', KLogger::INFO); ?> <?php echo getBoxTopImg("Patch info", $boxheight, true, null, $box3Img, $box3Align); ?> <? if (!isset($_POST['submitSave']) && !isset($_POST['submitCancel'])) { ?> <p class="red-small" style="font-color:red">What is the name of the patch you used in this game?</p> <script language="javascript"> <!-- var teamsArray = new Array(<?php echo getTeamsAllJavascript(); ?> ); var patchesArray = new Array(<?php echo getPatchesAllJavascript(); ?> ); --> </script> <form method="post" name="editPatch" action="<?php echo $_SERVER['PHP_SELF']; ?> "> <table class="layouttable"> <? $sql = "SELECT id, UNIX_TIMESTAMP(played_on) as played_on, score_home, score_away FROM six_matches WHERE id=".$spMatchId; $result = mysql_query($sql); if ($row = mysql_fetch_array($result)) { $id = $row['id']; $gamedate = formatDate($row['played_on']);
<? $logRep = new KLogger('/var/www/yoursite/http/log/report/', KLogger::INFO); ?> <?php echo getBoxTopImg("Edit Ladder Games", $boxheight, true, null, $box3Img, $box3Align); ?> <? if (!isset($_POST['game_id0'])) { ?> <p class="darkgrey-small">Please enter the teams used in these ladder games. If you're unsure, leave the team field empty.</p> <script language="javascript"> <!-- var teamsArray = new Array(<?php echo getTeamsAllJavascript(); ?> ); --> </script> <form method="post" name="editGames" action="<?php echo $_SERVER['PHP_SELF']; ?> "> <table class="layouttable"> <? $sql = "SELECT * FROM $gamestable ". "WHERE sixGameId IS NOT NULL ". "AND edited=0 ". "AND deleted=0 ". "AND (winner='$cookie_name' OR loser='$cookie_name' OR winner2='$cookie_name' OR loser2='$cookie_name') ". "AND (winnerteam=0 OR loserteam=0) ". "AND season=".$season." ". "ORDER BY game_id ASC";
function getBoxTop($title, $boxheight, $isNew, $linksArray) { return getBoxTopImg($title, $boxheight, $isNew, $linksArray, '', ''); }
</td> <td style="vertical-align:top; width:50%;"> <? $days = 100; ?> <?= getBoxTopImg("Trend curve - Last ".$days." Days", null, false, "", '', ''); ?> <table class="layouttable"> <tr> <td> <img src="/graph/trend.php?name=<?= $name ?>&days=<?= $days ?>&height=<?= $trend_height ?>&width=<?= $trend_width ?>" border="1"> </td> </tr> </table> <?= getBoxBottom() ?> <? $days = 1000; ?> <?= getBoxTopImg("Trend curve - Since beginning", null, false, "", '', ''); ?> <table class="layouttable"> <tr> <td> <img src="/graph/trend.php?name=<?= $name ?>&days=<?= $days ?>&height=<?= $trend_height ?>&width=<?= $trend_width ?>" border="1"> </td> </tr> </table> <?= getBoxBottom() ?> <? } ?> </td> </tr> </table>
<tr> <td><?php echo "{$news}"; ?> </td> </tr> </table> <? echo getBoxBottom() ?> </div> <? } else { ?> <div id="shoutbox" class="shoutbox"> <? echo getBoxTopImg("Chatroom", $boxheight, false, null, $box3Img, $box3Align); include "./chatbox.php"; echo getBoxBottom(); ?> </div> <? } } } } ?> </td> <td valign="top"> <!-- joins --> <? $joinLinksArray[] = array('./players.php', 'show_players', 'show all players');