| @@ 241-250 (lines=10) @@ | ||
| 238 | </div> |
|
| 239 | </div> |
|
| 240 | </div> |
|
| 241 | <?php if ($_SESSION['permissions']['edit']['licences']) { ?> |
|
| 242 | <script> |
|
| 243 | $( document ).ready(function() { |
|
| 244 | $(".gangActive").click(function () { |
|
| 245 | $(this).toggleClass('btn-success btn-danger'); |
|
| 246 | $.post( "<?php echo $settings['url'] ?>hooks/gangActive.php", {gang: "<?php echo $gID ?>"} ); |
|
| 247 | }); |
|
| 248 | }); |
|
| 249 | </script> |
|
| 250 | <?php } ?> |
|
| 251 | ||
| @@ 729-734 (lines=6) @@ | ||
| 726 | ||
| 727 | <script> |
|
| 728 | $(document).ready(function () { |
|
| 729 | <?php if ($_SESSION['permissions']['edit']['licences']) { ?> |
|
| 730 | $(".license").click(function () { |
|
| 731 | $(this).toggleClass('btn-success btn-theme01'); |
|
| 732 | $.post("<?php echo $settings['url'] ?>hooks/license.php", {id: this.id, player: "<?php echo $uID ?>"}); |
|
| 733 | }); |
|
| 734 | <?php } if ($_SESSION['permissions']['edit']['player']) { ?> |
|
| 735 | $(".arrest").click(function () { |
|
| 736 | $(this).toggleClass('btn-success btn-theme01'); |
|
| 737 | $.post("<?php echo $settings['url'] ?>hooks/arrest.php", {id: this.id, player: "<?php echo $uID ?>"}); |
|