@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | |
157 | 157 | <div class="panel-body"> |
158 | 158 | <?php |
159 | - $alias = str_replace('"[`', '', $player->aliases); |
|
159 | + $alias = str_replace('"[`', '', $player->aliases); |
|
160 | 160 | $alias = str_replace('`]"', '', $alias); |
161 | 161 | |
162 | 162 | echo '<center><img alt="'.$alias.'" src="'.$settings['url'].skinImage($player->civ_gear).'">'; |
@@ -173,11 +173,11 @@ discard block |
||
173 | 173 | <i class="fa fa-2x fa-bank"></i> |
174 | 174 | <h4> <?php echo $lang['bank'].': '.$player->bankacc; ?> </h4> |
175 | 175 | <?php |
176 | - if ($player->arrested == 0) { |
|
177 | - echo "<h4><button type='button' id='arrested' class='arrest btn btn-xs btn-success'>".$lang['not'].' '.$lang['arrested'].'</button></h4>'; |
|
178 | - } else { |
|
179 | - echo "<h4><button type='button' id='arrested' class='arrest btn btn-xs btn-theme01'>".$lang['arrested'].'</button></h4>'; |
|
180 | - } |
|
176 | + if ($player->arrested == 0) { |
|
177 | + echo "<h4><button type='button' id='arrested' class='arrest btn btn-xs btn-success'>".$lang['not'].' '.$lang['arrested'].'</button></h4>'; |
|
178 | + } else { |
|
179 | + echo "<h4><button type='button' id='arrested' class='arrest btn btn-xs btn-theme01'>".$lang['arrested'].'</button></h4>'; |
|
180 | + } |
|
181 | 181 | |
182 | 182 | if ($player->blacklist == 0) { |
183 | 183 | echo "<h4><button type='button' id='blacklist' class='arrest btn btn-xs btn-success'>".$lang['not'].' '.$lang['blacklisted'].'</button></h4>'; |
@@ -272,9 +272,9 @@ discard block |
||
272 | 272 | </ul> |
273 | 273 | </li> |
274 | 274 | <?php |
275 | - if ($_SESSION['permissions']['edit']['houses']) { |
|
276 | - echo '<li><a href="#house" data-toggle="tab">'.$lang['houses'].'</a></li>'; |
|
277 | - } |
|
275 | + if ($_SESSION['permissions']['edit']['houses']) { |
|
276 | + echo '<li><a href="#house" data-toggle="tab">'.$lang['houses'].'</a></li>'; |
|
277 | + } |
|
278 | 278 | if ($_SESSION['permissions']['edit']['vehicles']) { |
279 | 279 | echo '<li><a href="#veh" data-toggle="tab">'.$lang['vehicles'].'</a></li>'; |
280 | 280 | } |
@@ -291,57 +291,57 @@ discard block |
||
291 | 291 | ?> |
292 | 292 | <div class="tab-pane fade in active well" id="civ_lic"> |
293 | 293 | <?php |
294 | - if ($player->civ_licenses !== '"[]"' && $player->civ_licenses !== '') { |
|
295 | - echo '<h4 style="centred">'.$lang['civil'].' '.$lang['licenses'].'</h4>'; |
|
296 | - $return = stripArray($player->civ_licenses, 0); |
|
297 | - foreach ($return as $value) { |
|
298 | - if (strpos($value, '1') == true) { |
|
299 | - $name = before(',', $value); |
|
300 | - echo "<button type='button' id=".$name." class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>".licName($name, $license).'</button> '; |
|
301 | - } else { |
|
302 | - $name = before(',', $value); |
|
303 | - echo "<button type='button' id=".$name." class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>".licName($name, $license).'</button> '; |
|
304 | - } |
|
305 | - } |
|
306 | - } else { |
|
307 | - echo '<h4>'.errorMessage(371, $lang).'</h4>'; |
|
308 | - } ?> |
|
294 | + if ($player->civ_licenses !== '"[]"' && $player->civ_licenses !== '') { |
|
295 | + echo '<h4 style="centred">'.$lang['civil'].' '.$lang['licenses'].'</h4>'; |
|
296 | + $return = stripArray($player->civ_licenses, 0); |
|
297 | + foreach ($return as $value) { |
|
298 | + if (strpos($value, '1') == true) { |
|
299 | + $name = before(',', $value); |
|
300 | + echo "<button type='button' id=".$name." class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>".licName($name, $license).'</button> '; |
|
301 | + } else { |
|
302 | + $name = before(',', $value); |
|
303 | + echo "<button type='button' id=".$name." class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>".licName($name, $license).'</button> '; |
|
304 | + } |
|
305 | + } |
|
306 | + } else { |
|
307 | + echo '<h4>'.errorMessage(371, $lang).'</h4>'; |
|
308 | + } ?> |
|
309 | 309 | </div> |
310 | 310 | <div class="tab-pane well fade" id="medic_lic"> |
311 | 311 | <?php |
312 | - if ($player->med_licenses !== '"[]"' && $player->med_licenses !== '') { |
|
313 | - echo '<h4 style="centred">'.$lang['medic'].' '.$lang['licenses'].'</h4>'; |
|
314 | - $return = stripArray($player->med_licenses, 0); |
|
315 | - foreach ($return as $value) { |
|
316 | - if (strpos($value, '1') == true) { |
|
317 | - $name = before(',', $value); |
|
318 | - echo "<button type='button' id=".$name." class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>".licName($name, $license).'</button> '; |
|
319 | - } else { |
|
320 | - $name = before(',', $value); |
|
321 | - echo "<button type='button' id=".$name." class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>".licName($name, $license).'</button> '; |
|
322 | - } |
|
323 | - } |
|
324 | - } else { |
|
325 | - echo '<h4>'.errorMessage(372, $lang).'</h4>'; |
|
326 | - } ?> |
|
312 | + if ($player->med_licenses !== '"[]"' && $player->med_licenses !== '') { |
|
313 | + echo '<h4 style="centred">'.$lang['medic'].' '.$lang['licenses'].'</h4>'; |
|
314 | + $return = stripArray($player->med_licenses, 0); |
|
315 | + foreach ($return as $value) { |
|
316 | + if (strpos($value, '1') == true) { |
|
317 | + $name = before(',', $value); |
|
318 | + echo "<button type='button' id=".$name." class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>".licName($name, $license).'</button> '; |
|
319 | + } else { |
|
320 | + $name = before(',', $value); |
|
321 | + echo "<button type='button' id=".$name." class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>".licName($name, $license).'</button> '; |
|
322 | + } |
|
323 | + } |
|
324 | + } else { |
|
325 | + echo '<h4>'.errorMessage(372, $lang).'</h4>'; |
|
326 | + } ?> |
|
327 | 327 | </div> |
328 | 328 | <div class="tab-pane well fade" id="police_lic"> |
329 | 329 | <?php |
330 | - if ($player->cop_licenses !== '"[]"' && $player->cop_licenses !== '') { |
|
331 | - $return = stripArray($player->cop_licenses, 0); |
|
332 | - echo '<h4 style="centred">'.$lang['cop'].' '.$lang['licenses'].'</h4>'; |
|
333 | - foreach ($return as $value) { |
|
334 | - if (strpos($value, '1') == true) { |
|
335 | - $name = before(',', $value); |
|
336 | - echo "<button type='button' id=".$name." class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>".licName($name, $license).'</button> '; |
|
337 | - } else { |
|
338 | - $name = before(',', $value); |
|
339 | - echo "<button type='button' id=".$name." class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>".licName($name, $license).'</button> '; |
|
340 | - } |
|
341 | - } |
|
342 | - } else { |
|
343 | - echo '<h4>'.errorMessage(373, $lang).'</h4>'; |
|
344 | - } ?> |
|
330 | + if ($player->cop_licenses !== '"[]"' && $player->cop_licenses !== '') { |
|
331 | + $return = stripArray($player->cop_licenses, 0); |
|
332 | + echo '<h4 style="centred">'.$lang['cop'].' '.$lang['licenses'].'</h4>'; |
|
333 | + foreach ($return as $value) { |
|
334 | + if (strpos($value, '1') == true) { |
|
335 | + $name = before(',', $value); |
|
336 | + echo "<button type='button' id=".$name." class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>".licName($name, $license).'</button> '; |
|
337 | + } else { |
|
338 | + $name = before(',', $value); |
|
339 | + echo "<button type='button' id=".$name." class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>".licName($name, $license).'</button> '; |
|
340 | + } |
|
341 | + } |
|
342 | + } else { |
|
343 | + echo '<h4>'.errorMessage(373, $lang).'</h4>'; |
|
344 | + } ?> |
|
345 | 345 | </div> |
346 | 346 | <?php |
347 | 347 | } |
@@ -349,43 +349,43 @@ discard block |
||
349 | 349 | ?> |
350 | 350 | <div class="tab-pane fade well" id="civ_inv"> |
351 | 351 | <?php |
352 | - if ($player->civ_gear !== '"[]"' && $player->civ_gear !== '') { |
|
353 | - echo '<h4 style="centred">'.$lang['civil'].' '.$lang['gear'].'</h4>'; |
|
354 | - echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='civ_gear' name='civ_gear'>".$player->civ_gear.'</textarea><br>'; |
|
355 | - |
|
356 | - if ($_SESSION['permissions']['edit']['inventory']) { |
|
357 | - echo '<a data-toggle="modal" href="#edit_civ_inv" class="btn btn-primary btn-xs" style="float: right;">'; |
|
358 | - echo '<i class="fa fa-pencil"></i></a>'; |
|
359 | - } |
|
360 | - } else { |
|
361 | - echo '<h4>'.errorMessage(381, $lang).'</h4>'; |
|
362 | - } ?> |
|
352 | + if ($player->civ_gear !== '"[]"' && $player->civ_gear !== '') { |
|
353 | + echo '<h4 style="centred">'.$lang['civil'].' '.$lang['gear'].'</h4>'; |
|
354 | + echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='civ_gear' name='civ_gear'>".$player->civ_gear.'</textarea><br>'; |
|
355 | + |
|
356 | + if ($_SESSION['permissions']['edit']['inventory']) { |
|
357 | + echo '<a data-toggle="modal" href="#edit_civ_inv" class="btn btn-primary btn-xs" style="float: right;">'; |
|
358 | + echo '<i class="fa fa-pencil"></i></a>'; |
|
359 | + } |
|
360 | + } else { |
|
361 | + echo '<h4>'.errorMessage(381, $lang).'</h4>'; |
|
362 | + } ?> |
|
363 | 363 | </div> |
364 | 364 | <div class="tab-pane fade well" id="police_inv"> |
365 | 365 | <?php |
366 | - if ($player->cop_gear !== '"[]"' && $player->cop_gear !== '') { |
|
367 | - echo '<h4 style="centred">'.$lang['cop'].' '.$lang['gear'].'</h4>'; |
|
368 | - echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='cop_gear' name='cop_gear'>".$player->cop_gear.'</textarea><br>'; |
|
369 | - if ($_SESSION['permissions']['edit']['inventory']) { |
|
370 | - echo '<a data-toggle="modal" href="#edit_cop_inv" class="btn btn-primary btn-xs" style="float: right;">'; |
|
371 | - echo '<i class="fa fa-pencil"></i></a>'; |
|
372 | - } |
|
373 | - } else { |
|
374 | - echo '<h4>'.errorMessage(383, $lang).'</h4>'; |
|
375 | - } ?> |
|
366 | + if ($player->cop_gear !== '"[]"' && $player->cop_gear !== '') { |
|
367 | + echo '<h4 style="centred">'.$lang['cop'].' '.$lang['gear'].'</h4>'; |
|
368 | + echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='cop_gear' name='cop_gear'>".$player->cop_gear.'</textarea><br>'; |
|
369 | + if ($_SESSION['permissions']['edit']['inventory']) { |
|
370 | + echo '<a data-toggle="modal" href="#edit_cop_inv" class="btn btn-primary btn-xs" style="float: right;">'; |
|
371 | + echo '<i class="fa fa-pencil"></i></a>'; |
|
372 | + } |
|
373 | + } else { |
|
374 | + echo '<h4>'.errorMessage(383, $lang).'</h4>'; |
|
375 | + } ?> |
|
376 | 376 | </div> |
377 | 377 | <div class="tab-pane fade well" id="medic_inv"> |
378 | 378 | <?php |
379 | - if ($player->med_gear !== '"[]"' && $player->med_gear !== '') { |
|
380 | - echo '<h4 style="centred">'.$lang['medic'].' '.$lang['gear'].'</h4>'; |
|
381 | - echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='med_gear' name='med_gear'>".$player->med_gear.'</textarea><br>'; |
|
382 | - if ($_SESSION['permissions']['edit']['inventory']) { |
|
383 | - echo '<a data-toggle="modal" href="#edit_med_inv" class="btn btn-primary btn-xs" style="float: right;">'; |
|
384 | - echo '<i class="fa fa-pencil"></i></a>'; |
|
385 | - } |
|
386 | - } else { |
|
387 | - echo '<h4>'.errorMessage(382, $lang).'</h4>'; |
|
388 | - } ?> |
|
379 | + if ($player->med_gear !== '"[]"' && $player->med_gear !== '') { |
|
380 | + echo '<h4 style="centred">'.$lang['medic'].' '.$lang['gear'].'</h4>'; |
|
381 | + echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='med_gear' name='med_gear'>".$player->med_gear.'</textarea><br>'; |
|
382 | + if ($_SESSION['permissions']['edit']['inventory']) { |
|
383 | + echo '<a data-toggle="modal" href="#edit_med_inv" class="btn btn-primary btn-xs" style="float: right;">'; |
|
384 | + echo '<i class="fa fa-pencil"></i></a>'; |
|
385 | + } |
|
386 | + } else { |
|
387 | + echo '<h4>'.errorMessage(382, $lang).'</h4>'; |
|
388 | + } ?> |
|
389 | 389 | </div> |
390 | 390 | <?php |
391 | 391 | } |
@@ -727,16 +727,16 @@ discard block |
||
727 | 727 | echo '<h4>'.$lang['cop'].': '; |
728 | 728 | echo "<select id='player_coplvl' name='player_coplvl'>"; |
729 | 729 | for ($lvl = 0; |
730 | - $lvl <= $settings['maxLevels']['cop']; |
|
731 | - ++$lvl) { |
|
730 | + $lvl <= $settings['maxLevels']['cop']; |
|
731 | + ++$lvl) { |
|
732 | 732 | echo '<option value="'.$lvl.'"'.select($lvl, $player->coplevel).'>'.$lvl.'</option>'; |
733 | 733 | } |
734 | 734 | echo '</select>'; |
735 | 735 | echo '<h4>'.$lang['medic'].': '; |
736 | 736 | echo "<select id='player_medlvl' name='player_medlvl'>"; |
737 | 737 | for ($lvl = 0; |
738 | - $lvl <= $settings['maxLevels']['medic']; |
|
739 | - ++$lvl) { |
|
738 | + $lvl <= $settings['maxLevels']['medic']; |
|
739 | + ++$lvl) { |
|
740 | 740 | echo '<option value="'.$lvl.'"'.select($lvl, $player->mediclevel).'>'.$lvl.'</option>'; |
741 | 741 | } |
742 | 742 | echo '</select>'; |
@@ -745,16 +745,16 @@ discard block |
||
745 | 745 | echo '<h4>'.$lang['admin'].': '; |
746 | 746 | echo "<select id='player_adminlvl' name='player_adminlvl'>"; |
747 | 747 | for ($lvl = 0; |
748 | - $lvl <= $settings['maxLevels']['admin']; |
|
749 | - ++$lvl) { |
|
748 | + $lvl <= $settings['maxLevels']['admin']; |
|
749 | + ++$lvl) { |
|
750 | 750 | echo '<option value="'.$lvl.'"'.select($lvl, $player->adminlevel).'>'.$lvl.'</option>'; |
751 | 751 | } |
752 | 752 | echo '</select>'; |
753 | 753 | echo '<h4>'.$lang['donator'].': '; |
754 | 754 | echo "<select id='player_donlvl' name='player_donlvl'>"; |
755 | 755 | for ($lvl = 0; |
756 | - $lvl <= $settings['maxLevels']['donator']; |
|
757 | - ++$lvl) { |
|
756 | + $lvl <= $settings['maxLevels']['donator']; |
|
757 | + ++$lvl) { |
|
758 | 758 | echo '<option value="'.$lvl.'"'.select($lvl, $player->$settings['donorFormat']).'>'.$lvl.'</option>'; |
759 | 759 | } |
760 | 760 | echo '</select>'; |