示例#1
0
        ?>
&port=<?php 
        echo urlencode($cs->getPort());
        ?>
&key=<?php 
        echo urlencode($cs->getKey());
        ?>
">Info</a> - <a href="winbolo://<?php 
        echo $fullAddress;
        ?>
">Join</a> <?php 
        echo getLockedHTML($cs);
        ?>
)<BR>
		<B>Map Name:</B> <?php 
        echo mcPrepareSearch($cs->getMapName());
        ?>
<BR>
		<B>Version:</B> <?php 
        echo $cs->getVersion();
        ?>
<BR>
		<B><img src="images/tank.gif"> Players:</B> 
		<?php 
        # Do Playesr part
        echo $cs->getNumPlayers();
        $playersCount = 0;
        if (sizeof($players) > 0) {
            echo " (";
            while ($playersCount < sizeof($players)) {
                if ($playersCount != 0) {
示例#2
0
<tr>
</tr>
<tr>
<td> <div class="bodytext">
<?php 
$players = $info->getPlayers();
?>
		<B>Server IP:</B> <?php 
echo $info->getIp();
?>
:<?php 
echo $info->getPort();
?>
<BR>
		<B>Map Name:</B> <?php 
echo mcPrepareSearch($info->getMapName());
?>
<BR>
		<B><img src="/images/tank.gif">WinBolo.net Players:</B> 
		<?php 
# Do Playesr part
$playersCount = 0;
if (sizeof($players) > 0) {
    echo " (";
    while ($playersCount < sizeof($players)) {
        if ($playersCount != 0) {
            echo ", ";
        }
        echo "<A href=\"playerinfo.php?name=" . urlencode($players[$playersCount]) . "\">" . $players[$playersCount] . "</A>";
        $playersCount++;
    }