Code Duplication    Length = 6-10 lines in 2 locations

views/life/editGang.php 1 location

@@ 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

views/life/editPlayer.php 1 location

@@ 779-784 (lines=6) @@
776
777
    <script>
778
      $(document).ready(function () {
779
          <?php if ($_SESSION['permissions']['edit']['licences']) {
780
          ?>
781
        $(".license").click(function () {
782
          $(this).toggleClass('btn-success btn-theme01');
783
          $.post("<?php echo $settings['url'] ?>hooks/license.php", {id: this.id, player: "<?php echo $uID ?>"});
784
        });
785
          <?php
786
          }
787
          if ($_SESSION['permissions']['edit']['player']) {