Code Duplication    Length = 5-5 lines in 2 locations

views/life/editPlayer.php 1 location

@@ 158-162 (lines=5) @@
155
              echo "<h4><button type='button' id='arrested' class='arrest btn btn-xs btn-theme01'>" . $lang["arrested"] . "</button></h4>";
156
          }
157
158
          if ($player->blacklist == 0) {
159
              echo "<h4><button type='button' id='blacklist' class='arrest btn btn-xs btn-success'>" . $lang["not"] . " " . $lang["blacklisted"] . "</button></h4>";
160
          } else {
161
              echo "<h4><button type='button' id='blacklist' class='arrest btn btn-xs btn-theme01'>" . $lang["blacklisted"] . "</button></h4>";
162
          }
163
164
          if ($settings['wanted'] && ($_SESSION['permissions']['view']['wanted'] || $player->playerid == $_SESSION['playerid'])) {
165
              $sql = "SELECT `active` FROM `wanted` WHERE `wantedID` = '" . $player->playerid . "'";

views/steam/life/player.php 1 location

@@ 57-61 (lines=5) @@
54
                    echo "<h4><button type='button' id='arrested' class='arrest btn btn-xs btn-theme01'>" . $lang["arrested"] . "</button></h4>";
55
                }
56
57
                if ($player->blacklist == 0) {
58
                    echo "<h4><button type='button' id='blacklist' class='arrest btn btn-xs btn-success'>" . $lang["not"] . " " . $lang["blacklisted"] . "</button></h4>";
59
                } else {
60
                    echo "<h4><button type='button' id='blacklist' class='arrest btn btn-xs btn-theme01'>" . $lang["blacklisted"] . "</button></h4>";
61
                }
62
63
                echo "</center>";
64
            ?>