Ejemplo n.º 1
0
function skinImage($uniform)
{
    $playerSkin = getPlayerSkin(stripArray($uniform, 3));
    return "assets/img/uniform/{$playerSkin}.jpg";
}
Ejemplo n.º 2
0
    $sql = 'SELECT * FROM `players` WHERE `uid` ="' . $uID . '";';
    $result_of_query = $db_connection->query($sql);
    if ($result_of_query->num_rows > 0) {
        while ($row = mysqli_fetch_assoc($result_of_query)) {
            ?>
    <div class="col-md-3" style="float:left;  padding-top:20px;">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h2 class="panel-title"><i class="fa fa-child fa-fw"></i><?php 
            echo $row["name"];
            ?>
</h2>
            </div>
            <div class="panel-body">
				<center><img src="assets/img/uniform/<?php 
            echo getPlayerSkin($row['civ_gear'], $playerSkins);
            ?>
.jpg" />
                    <?php 
            $playersID = $row["playerid"];
            echo "<h4>" . $lang['aliases'] . ": " . $row["aliases"] . "</h4>";
            echo "<h4>" . $lang['uid'] . ": " . $row["uid"] . "</h4>";
            echo "<h4>" . $lang['playerID'] . ": " . $pID . "</h4>";
            echo "<h4>" . $lang['GUID'] . ": " . $pGID . "</h4>";
            ?>
								<span class="fa fa-2x fa-money">
									<h4> <?php 
            echo $lang['cash'] . ": " . $row["cash"];
            ?>
 </h4>
								</span>
Ejemplo n.º 3
0
    $pGID = md5('BE' . $temp);
    ?>
<div class="col-md-3" style="float:left;  padding-top:20px;">
    <div class="panel panel-default">
        <div class="panel-heading">
            <h2 class="panel-title"><i class="fa fa-child fa-fw"></i><?php 
    echo $player->name;
    ?>
</h2>
        </div>

        <div class="panel-body">
            <?php 
    $alias = str_replace('"[`', "", $player->aliases);
    $alias = str_replace('`]"', "", $alias);
    echo '<center><img alt="' . $alias . '" src="' . $settings['url'] . 'assets/img/uniform/' . getPlayerSkin($player->civ_gear, $playerSkins) . '.jpg">';
    if ($_SESSION['permissions']['view']['steam'] && $settings['vacTest']) {
        echo '<div id="vacBan"></div>';
    }
    if ($_SESSION['permissions']['view']['steam'] && $settings['communityBansTest']) {
        echo '<div id="communityBanned">';
        if (communityBanned($pGID)) {
            echo '<h4><span class="label label-danger" style="margin-left:3px; line-height:2;">Community Banned</span></h4>';
        }
        echo '</div>';
    }
    echo "<h4>" . $lang['aliases'] . ": " . $alias . "</h4>";
    echo "<h4>" . $lang['uid'] . ": " . $player->uid . "</h4>";
    echo "<h4>" . $lang['playerID'] . ": " . $player->playerid . "</h4>";
    echo "<h4 style='word-wrap: break-word;'>" . $lang['GUID'] . ": " . $pGID . "</h4>";
    ?>
Ejemplo n.º 4
0
function createPlayerWidget($uuid, $size, $inject = '')
{
    if ($uuid !== FALSE) {
        return '<span class="player ' . (isPlayerInactive($uuid) ? 'inactive' : '') . '">' . '<img src="' . getPlayerSkin($uuid) . '" ' . 'onload="skinLoaded(this);" onerror="skinError(this, ' . getDefaultSkinGender($uuid) . ');"/><span><canvas width="' . $size . '" height="' . $size . '"/></span>' . "<a href='?player={$uuid}'>" . getPlayerName($uuid) . '</a>' . $inject . '</span>';
    } else {
        return '<div class="player-nobody"><div>Nobody</div></div>';
    }
}