Ejemplo n.º 1
0
                                                        <td class="td_level">Total Level</td>

                                                        <td class="td_xp">Total XP</td>

                                                        <td class="td_race">Race</td>

                                                </tr>

<?php 
                foreach ($players as $player) {
                    $result_number = $result_number + 1;
                    if ($result_number > 50) {
                        break;
                    }
                    $friend_id = GetFriendID($player->steamid);
                    ?>

                                                <tr class="player_row<?php 
                    if ($result_number & 1) {
                        echo ' off_color_row';
                    }
                    ?>
">

<?php 
                    // We need to find out what race they really are, if none default to $races[0]->$name
                    $display_race = "No Race";
                    foreach ($races as $race) {
                        if ($race->shortname == $player->currentrace) {
                            $display_race = $race->name;
Ejemplo n.º 2
0
function AtoF_callback($matches)
{
    return '<a href="http://steamcommunity.com/profiles/' . GetFriendID($matches[0]) . '">' . $matches[0] . '</a>';
}