@@ -724,16 +724,16 @@ discard block |
||
| 724 | 724 | echo '<h4>'.$lang['cop'].': '; |
| 725 | 725 | echo "<select id='player_coplvl' name='player_coplvl'>"; |
| 726 | 726 | for ($lvl = 0; |
| 727 | - $lvl <= $settings['maxLevels']['cop']; |
|
| 728 | - ++$lvl) { |
|
| 727 | + $lvl <= $settings['maxLevels']['cop']; |
|
| 728 | + ++$lvl) { |
|
| 729 | 729 | echo '<option value="'.$lvl.'"'.select($lvl, $player->coplevel).'>'.$lvl.'</option>'; |
| 730 | 730 | } |
| 731 | 731 | echo '</select>'; |
| 732 | 732 | echo '<h4>'.$lang['medic'].': '; |
| 733 | 733 | echo "<select id='player_medlvl' name='player_medlvl'>"; |
| 734 | 734 | for ($lvl = 0; |
| 735 | - $lvl <= $settings['maxLevels']['medic']; |
|
| 736 | - ++$lvl) { |
|
| 735 | + $lvl <= $settings['maxLevels']['medic']; |
|
| 736 | + ++$lvl) { |
|
| 737 | 737 | echo '<option value="'.$lvl.'"'.select($lvl, $player->mediclevel).'>'.$lvl.'</option>'; |
| 738 | 738 | } |
| 739 | 739 | echo '</select>'; |
@@ -742,16 +742,16 @@ discard block |
||
| 742 | 742 | echo '<h4>'.$lang['admin'].': '; |
| 743 | 743 | echo "<select id='player_adminlvl' name='player_adminlvl'>"; |
| 744 | 744 | for ($lvl = 0; |
| 745 | - $lvl <= $settings['maxLevels']['admin']; |
|
| 746 | - ++$lvl) { |
|
| 745 | + $lvl <= $settings['maxLevels']['admin']; |
|
| 746 | + ++$lvl) { |
|
| 747 | 747 | echo '<option value="'.$lvl.'"'.select($lvl, $player->adminlevel).'>'.$lvl.'</option>'; |
| 748 | 748 | } |
| 749 | 749 | echo '</select>'; |
| 750 | 750 | echo '<h4>'.$lang['donator'].': '; |
| 751 | 751 | echo "<select id='player_donlvl' name='player_donlvl'>"; |
| 752 | 752 | for ($lvl = 0; |
| 753 | - $lvl <= $settings['maxLevels']['donator']; |
|
| 754 | - ++$lvl) { |
|
| 753 | + $lvl <= $settings['maxLevels']['donator']; |
|
| 754 | + ++$lvl) { |
|
| 755 | 755 | echo '<option value="'.$lvl.'"'.select($lvl, $player->$settings['donorFormat']).'>'.$lvl.'</option>'; |
| 756 | 756 | } |
| 757 | 757 | echo '</select>'; |
@@ -777,31 +777,31 @@ discard block |
||
| 777 | 777 | <script> |
| 778 | 778 | $(document).ready(function () { |
| 779 | 779 | <?php if ($_SESSION['permissions']['edit']['licences']) { |
| 780 | - ?> |
|
| 780 | + ?> |
|
| 781 | 781 | $(".license").click(function () { |
| 782 | 782 | $(this).toggleClass('btn-success btn-theme01'); |
| 783 | 783 | $.post("<?php echo $settings['url'] ?>hooks/license.php", {id: this.id, player: "<?php echo $uID ?>"}); |
| 784 | 784 | }); |
| 785 | 785 | <?php |
| 786 | - } |
|
| 787 | - if ($_SESSION['permissions']['edit']['player']) { |
|
| 788 | - ?> |
|
| 786 | + } |
|
| 787 | + if ($_SESSION['permissions']['edit']['player']) { |
|
| 788 | + ?> |
|
| 789 | 789 | $(".arrest").click(function () { |
| 790 | 790 | $(this).toggleClass('btn-success btn-theme01'); |
| 791 | 791 | $.post("<?php echo $settings['url'] ?>hooks/arrest.php", {id: this.id, player: "<?php echo $uID ?>"}); |
| 792 | 792 | }); |
| 793 | 793 | <?php |
| 794 | - } |
|
| 795 | - if ($_SESSION['permissions']['edit']['wanted']) { |
|
| 796 | - ?> |
|
| 794 | + } |
|
| 795 | + if ($_SESSION['permissions']['edit']['wanted']) { |
|
| 796 | + ?> |
|
| 797 | 797 | $(".wanted").click(function () { |
| 798 | 798 | $(this).toggleClass('btn-success btn-theme01'); |
| 799 | 799 | $.post("<?php echo $settings['url'] ?>hooks/wanted.php", {id: this.id, player: "<?php echo $uID ?>"}); |
| 800 | 800 | }); |
| 801 | 801 | <?php |
| 802 | - } |
|
| 803 | - if (($_SESSION['permissions']['view']['steam'] || $player->playerid == $_SESSION['playerid']) && $settings['vacTest']) { |
|
| 804 | - ?> |
|
| 802 | + } |
|
| 803 | + if (($_SESSION['permissions']['view']['steam'] || $player->playerid == $_SESSION['playerid']) && $settings['vacTest']) { |
|
| 804 | + ?> |
|
| 805 | 805 | $.ajax({ |
| 806 | 806 | url: "https://steamrep.com/api/beta3/reputation/<?php echo $player->playerid ?>?json=1&extended=1", |
| 807 | 807 | dataType: 'json', |
@@ -812,9 +812,9 @@ discard block |
||
| 812 | 812 | } |
| 813 | 813 | }); |
| 814 | 814 | <?php |
| 815 | - } |
|
| 816 | - if ($_SESSION['permissions']['view']['steam'] && $settings['vacTest']) { |
|
| 817 | - ?> |
|
| 815 | + } |
|
| 816 | + if ($_SESSION['permissions']['view']['steam'] && $settings['vacTest']) { |
|
| 817 | + ?> |
|
| 818 | 818 | $.ajax({ |
| 819 | 819 | url: "http://bans.itsyuka.tk/api/bans/player/id/6e96f18ddaaa2dadcc32482b2d6a0593/format/json/key/<?php echo $settings['communityBansAPI'] ?>", |
| 820 | 820 | dataType: 'json', |
@@ -825,7 +825,7 @@ discard block |
||
| 825 | 825 | } |
| 826 | 826 | }); |
| 827 | 827 | <?php |
| 828 | - } ?> |
|
| 828 | + } ?> |
|
| 829 | 829 | }); |
| 830 | 830 | </script> |
| 831 | 831 | |