|
From: Alexander H. <ba...@us...> - 2009-04-07 17:29:31
|
Update of /cvsroot/phgstats/phgstats/templates In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv29375/templates Added Files: detail_nolf.inc.php detail_nolf2.inc.php Log Message: nolf support --- NEW FILE: detail_nolf.inc.php --- <?php if (!defined('PHGDIR')) { exit(1); } echo <<<HTML_DETAIL_RULES <!-- phgstats server rules info --> <table class="phgListServers"> <tr> <td class="phgListRuleHost">Hostname:</td> <td class="phgListValueHost"> <a class="phgListLink" href="{$use_file}{$use_bind}sh_srv={$sh_srv}">{$srv->hostname}</a> </td> <td class="phgListPic"><img height="50" width="50" src="{$srv->mappic}" alt="{$srv->mapname}"></td> </tr> <tr> <td class="phgListRule">Address:</td> <td class="phgListValue">{$srv->address}:{$srv->gameport}</td> </tr> <tr> <td class="phgListRule">Gamename:</td> <td class="phgListValue">{$srv->game}</td> </tr> <tr> <td class="phgListRule">Gametype:</td> <td class="phgListValue">{$srv->gametype}</td> </tr> <tr> <td class="phgListRule">Mapname:</td> <td class="phgListValue">{$srv->mapname}</td> </tr> <tr> <td class="phgListRule">Players:</td> <td class="phgListValue">{$srv->numplayers} / {$srv->maxplayers}</td> </tr> <tr> <td class="phgListRule">Version:</td> <td class="phgListValue">{$srv->gameversion}</td> </tr> </table> <!-- end of server rules --> HTML_DETAIL_RULES; echo <<<HTML_DETAIL_PLAYERS_HEAD <!-- phgstats server players info --> <table class="phgListPlayers"> <tr> <th class="phgListPlayers">Rank</th> <th class="phgListPlayers">Name</th> <th class="phgListPlayers">Score</th> <th class="phgListPlayers">Ping</th> </tr> HTML_DETAIL_PLAYERS_HEAD; if ($srv->numplayers != 0) { for ($n = 0, $i = 1; $n < $srv->fixedplayers; $n++, $i++) { echo <<<HTML_DETAIL_PLAYERS_MAIN <tr> <td class="phgListCount">{$i}</td> <td class="phgListName">{$srv->players[$n]['name']}</td> <td class="phgListScore">{$srv->players[$n]['score']}</td> <td class="phgListPing">{$srv->players[$n]['ping']}</td> </tr> HTML_DETAIL_PLAYERS_MAIN; } } echo <<<HTML_DETAIL_PLAYERS_FOOT </table> <!-- end of server players --> HTML_DETAIL_PLAYERS_FOOT; ?> --- NEW FILE: detail_nolf2.inc.php --- <?php if (!defined('PHGDIR')) { exit(1); } echo <<<HTML_DETAIL_RULES <!-- phgstats server rules info --> <table class="phgListServers"> <tr> <td class="phgListRuleHost">Hostname:</td> <td class="phgListValueHost"> <a class="phgListLink" href="{$use_file}{$use_bind}sh_srv={$sh_srv}">{$srv->hostname}</a> </td> <td class="phgListPic"><img height="50" width="50" src="{$srv->mappic}" alt="{$srv->mapname}"></td> </tr> <tr> <td class="phgListRule">Address:</td> <td class="phgListValue">{$srv->address}:{$srv->gameport}</td> </tr> <tr> <td class="phgListRule">Gamename:</td> <td class="phgListValue">{$srv->game}</td> </tr> <tr> <td class="phgListRule">Gametype:</td> <td class="phgListValue">{$srv->gametype}</td> </tr> <tr> <td class="phgListRule">Mapname:</td> <td class="phgListValue">{$srv->mapname}</td> </tr> <tr> <td class="phgListRule">Players:</td> <td class="phgListValue">{$srv->numplayers} / {$srv->maxplayers}</td> </tr> <tr> <td class="phgListRule">Version:</td> <td class="phgListValue">{$srv->gameversion}</td> </tr> </table> <!-- end of server rules --> HTML_DETAIL_RULES; echo <<<HTML_DETAIL_PLAYERS_HEAD <!-- phgstats server players info --> <table class="phgListPlayers"> <tr> <th class="phgListPlayers">Rank</th> <th class="phgListPlayers">Name</th> <th class="phgListPlayers">Score</th> <th class="phgListPlayers">Ping</th> </tr> HTML_DETAIL_PLAYERS_HEAD; if ($srv->numplayers != 0) { for ($n = 0, $i = 1; $n < $srv->fixedplayers; $n++, $i++) { echo <<<HTML_DETAIL_PLAYERS_MAIN <tr> <td class="phgListCount">{$i}</td> <td class="phgListName">{$srv->players[$n]['name']}</td> <td class="phgListScore">{$srv->players[$n]['score']}</td> <td class="phgListPing">{$srv->players[$n]['ping']}</td> </tr> HTML_DETAIL_PLAYERS_MAIN; } } echo <<<HTML_DETAIL_PLAYERS_FOOT </table> <!-- end of server players --> HTML_DETAIL_PLAYERS_FOOT; ?> |