Code Duplication    Length = 5-5 lines in 2 locations

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

views/life/editPlayer.php 1 location

@@ 182-186 (lines=5) @@
179
                    echo "<h4><button type='button' id='arrested' class='arrest btn btn-xs btn-theme01'>".$lang['arrested'].'</button></h4>';
180
                }
181
182
                if ($player->blacklist == 0) {
183
                    echo "<h4><button type='button' id='blacklist' class='arrest btn btn-xs btn-success'>".$lang['not'].' '.$lang['blacklisted'].'</button></h4>';
184
                } else {
185
                    echo "<h4><button type='button' id='blacklist' class='arrest btn btn-xs btn-theme01'>".$lang['blacklisted'].'</button></h4>';
186
                }
187
188
                if ($settings['wanted'] && ($_SESSION['permissions']['view']['wanted'] || $player->playerid == $_SESSION['playerid'])) {
189
                    $sql = "SELECT `active` FROM `wanted` WHERE `wantedID` = '".$player->playerid."'";