function skinImage($uniform) { $playerSkin = getPlayerSkin(stripArray($uniform, 3)); return "assets/img/uniform/{$playerSkin}.jpg"; }
</div> </div> <?php } if ($_SESSION['permissions']['view']['wanted'] && $settings['wanted']) { ?> <div class="tab-pane fade well" id="wanted"> <div class="table-responsive"> <?php $sql = "SELECT `wantedCrimes` FROM `wanted` WHERE `wantedID`='" . $player->playerid . "'"; $result_of_query = $db_link->query($sql); if ($result_of_query->num_rows > 0) { echo "<h3>" . $lang['crimes'] . "</h3>"; while ($row = mysqli_fetch_assoc($result_of_query)) { if ($row['wantedCrimes'] !== "'[]'") { $return = stripArray($row['wantedCrimes'], 3); foreach ($return as $value) { echo "<button type='button' id=" . $value . " class='wanted btn btn-xs btn-theme01' style='margin-bottom: 3px;'>" . crimeName($value) . "</button> "; } } else { echo "<h3>" . errorMessage(34, $lang) . "</h3>"; } } } else { echo "<h3>" . errorMessage(34, $lang) . "</h3>"; } ?> </div> </div> <?php
<div class="panel panel-default" style="float:left; width:100%; margin:0 auto;"> <ul id="myTab" class="nav nav-tabs"> <li><a href="#gang_members" data-toggle="tab"><?php echo $lang['members']; ?> </a></li> </ul> <div id="myTabContent" class="tab-content"> <div class="tab-pane fade active in well" id="civ_inv"> <h4 style="centred"><?php echo $lang['gang'] . " " . $lang['members']; ?> </h4> <?php $return = stripArray($gang->members, 1); foreach ($return as $value) { echo "<span class='label label-success' style='margin-right:3px; line-height:2;'>" . nameID($value, $db_link) . "</span> "; } } ?> <br> <a data-toggle="modal" href="#edit_gang_members" class="btn btn-primary btn-xs" style="float: right;"> <i class="fa fa-pencil"></i> </a> <br> </div> </div> </div> </div>
echo "<button class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>" . licName($name, $license) . "</button> "; } } } else { echo errorMessage(37, $lang); } ?> </div> <div class="tab-pane well fade" id="police_lic"> <h4 style="centred"><?php echo $lang['cop'] . " " . $lang['licenses']; ?> </h4> <?php if ($player->cop_licenses !== '"[]"') { $return = stripArray($player->cop_licenses, 0); foreach ($return as $value) { if (strpos($value, "1") == TRUE) { $name = before(',', $value); echo "<button class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>" . licName($name, $license) . "</button> "; } else { $name = before(',', $value); echo "<button class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>" . licName($name, $license) . "</button> "; } } } else { echo errorMessage(37, $lang); } ?> </div> <?php
function stripArray(&$funcInput) { if (is_array($func_input)) { foreach ($funcInput as &$value) { if (!is_array($value)) { $value = trim($value); if (!get_magic_quotes_gpc()) { $value = stripslashes($value); } } else { stripArray($value); } } unset($value); } }
</a> <?php } ?> </div> <div class="tab-pane well fade" id="police_lic"> <h4 style="centred"><?php echo $lang['police'] . " " . $lang['licenses']; ?> </h4> <?php $sql = 'SELECT * FROM `players` WHERE `uid` ="' . $uID . '";'; $result_of_query = $db_connection->query($sql); while ($row = mysqli_fetch_assoc($result_of_query)) { if ($row["cop_licenses"] !== '"[]"') { $return = stripArray($row["cop_licenses"]); foreach ($return as $value) { if (strpos($value, "1") == TRUE) { $name = before(',', $value); echo "<span class='label label-success' style='margin-right:3px; line-height:2;'>" . licName($name, $license) . "</span> "; } else { $name = before(',', $value); echo "<span class='label label-default' style='margin-right:3px; line-height:2;'>" . licName($name, $license) . "</span> "; } } } else { echo $lang['no'] . " " . $lang['licenses']; } } if ($_SESSION['user_level'] >= P_EDIT_PLAYER_LICENCES) { ?>