@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | $db_link = serverConnect(); |
3 | 3 | |
4 | -$max = 'LIMIT ' . ($pageNum - 1) * $_SESSION['items'] . ',' . $_SESSION['items']; |
|
4 | +$max = 'LIMIT '.($pageNum - 1) * $_SESSION['items'].','.$_SESSION['items']; |
|
5 | 5 | |
6 | 6 | if (isset($search)) { |
7 | 7 | $sql = "SELECT `uid` FROM `players` WHERE `uid` LIKE '$search' OR `name` LIKE '%$search%' OR $playerIdColumn LIKE '$search';"; |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | $total_records = mysqli_num_rows($result_of_query); |
10 | 10 | if ($pageNum > $total_records) $pageNum = $total_records; |
11 | 11 | $sql = "SELECT `name`,`bankacc`,`cash`,`coplevel`,`mediclevel`,`adminlevel`,`uid`, $playerIdColumn as `playerid` FROM `players` WHERE `uid` LIKE '$search' OR `name` LIKE '%$search%' OR $playerIdColumn LIKE '$search' $max;"; |
12 | - logAction($_SESSION['user_name'], $lang['searched'] . ' (' . $search . ') ' . $lang['in'] . ' ' . $lang['players'], 1); |
|
12 | + logAction($_SESSION['user_name'], $lang['searched'].' ('.$search.') '.$lang['in'].' '.$lang['players'], 1); |
|
13 | 13 | } else { |
14 | 14 | $sql = "SELECT `uid` FROM `players`;"; |
15 | 15 | $result_of_query = $db_link->query($sql); |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | } |
26 | 26 | $pids = implode(',', $pids); |
27 | 27 | if ($settings['steamAPI'] && $_SESSION['permissions']['view']['steam'] && !$settings['performance'] && $settings['vacTest']) { |
28 | - $api = "http://api.steampowered.com/ISteamUser/GetPlayerBans/v1/?key=" . $settings['steamAPI'] . "&steamids=" . $pids; |
|
28 | + $api = "http://api.steampowered.com/ISteamUser/GetPlayerBans/v1/?key=".$settings['steamAPI']."&steamids=".$pids; |
|
29 | 29 | $bans = get_object_vars(json_decode(file_get_contents($api))); |
30 | 30 | $bans = $bans['players']; |
31 | 31 | $steamPlayers = count($bans); |
@@ -57,9 +57,9 @@ discard block |
||
57 | 57 | <th class="hidden-xs"><i class="fa fa-ambulance"></i> <?php echo $lang['medic']; ?></th> |
58 | 58 | <th class="hidden-xs"><i class="fa fa-cogs"></i> <?php echo $lang['admin']; ?></th> |
59 | 59 | <?php if ($_SESSION['permissions']['edit']['player']) { |
60 | - echo '<th class="hidden-xs"><i class="fa fa-pencil"></i> ' . $lang['edit'] . '</th>'; |
|
60 | + echo '<th class="hidden-xs"><i class="fa fa-pencil"></i> '.$lang['edit'].'</th>'; |
|
61 | 61 | } else { |
62 | - echo '<th class="hidden-xs"><i class="fa fa-eye"></i>' . $lang['view'] . '</th>'; |
|
62 | + echo '<th class="hidden-xs"><i class="fa fa-eye"></i>'.$lang['view'].'</th>'; |
|
63 | 63 | } |
64 | 64 | if ($_SESSION['permissions']['view']['steam'] && $steamPlayers > 0) { |
65 | 65 | echo '<th class="hidden-xs"><i class="fa fa-fw fa-steam"></i> Steam</th>'; |
@@ -71,30 +71,30 @@ discard block |
||
71 | 71 | while ($row = mysqli_fetch_assoc($result_of_query)) { |
72 | 72 | $playersID = $row["playerid"]; |
73 | 73 | echo "<tr>"; |
74 | - echo "<td>" . $row["name"] . "</td>"; |
|
75 | - echo "<td>" . $playersID . "</td>"; |
|
76 | - echo "<td class='hidden-xs'>" . $row["cash"] . "</td>"; |
|
77 | - echo "<td class='hidden-xs'>" . $row["bankacc"] . "</td>"; |
|
78 | - echo "<td class='hidden-xs'>" . $row["coplevel"] . "</td>"; |
|
79 | - echo "<td class='hidden-xs'>" . $row["mediclevel"] . "</td>"; |
|
80 | - echo "<td class='hidden-xs'>" . $row["adminlevel"] . "</td>"; |
|
74 | + echo "<td>".$row["name"]."</td>"; |
|
75 | + echo "<td>".$playersID."</td>"; |
|
76 | + echo "<td class='hidden-xs'>".$row["cash"]."</td>"; |
|
77 | + echo "<td class='hidden-xs'>".$row["bankacc"]."</td>"; |
|
78 | + echo "<td class='hidden-xs'>".$row["coplevel"]."</td>"; |
|
79 | + echo "<td class='hidden-xs'>".$row["mediclevel"]."</td>"; |
|
80 | + echo "<td class='hidden-xs'>".$row["adminlevel"]."</td>"; |
|
81 | 81 | if ($_SESSION['permissions']['edit']['player']) { |
82 | - echo "<td><a class='btn btn-primary btn-xs' href='" . $settings['url'] . "editPlayer/" . $row["uid"] . "'>"; |
|
82 | + echo "<td><a class='btn btn-primary btn-xs' href='".$settings['url']."editPlayer/".$row["uid"]."'>"; |
|
83 | 83 | echo "<i class='fa fa-pencil'></i></a></td>"; |
84 | 84 | } else { |
85 | - echo "<td><a class='btn btn-primary btn-xs' href='" . $settings['url'] . "editPlayer/" . $row["uid"] . "'>"; |
|
85 | + echo "<td><a class='btn btn-primary btn-xs' href='".$settings['url']."editPlayer/".$row["uid"]."'>"; |
|
86 | 86 | echo "<i class='fa fa-eye'></i></a></td>"; |
87 | 87 | } |
88 | 88 | if ($_SESSION['permissions']['view']['steam'] && $steamPlayers > 0) { |
89 | - echo "<td><a href='http://steamcommunity.com/profiles/" . $row["playerid"] . "' "; |
|
89 | + echo "<td><a href='http://steamcommunity.com/profiles/".$row["playerid"]."' "; |
|
90 | 90 | for ($player = 0; $player <= $steamPlayers; $player++) { |
91 | 91 | if ($bans[$player]->SteamId == $row['playerid']) { |
92 | 92 | if ($bans[$player]->VACBanned == true) { |
93 | - echo "<td><a href='http://steamcommunity.com/profiles/" . $row["playerid"] . "' "; |
|
93 | + echo "<td><a href='http://steamcommunity.com/profiles/".$row["playerid"]."' "; |
|
94 | 94 | echo "class='btn btn-danger btn-xs hidden-xs' target='_blank'><i class='fa fa-steam'></i></a>"; |
95 | 95 | |
96 | 96 | } else { |
97 | - echo "<td><a href='http://steamcommunity.com/profiles/" . $row["playerid"] . "' "; |
|
97 | + echo "<td><a href='http://steamcommunity.com/profiles/".$row["playerid"]."' "; |
|
98 | 98 | echo "class='btn btn-primary btn-xs hidden-xs' target='_blank'><i class='fa fa-steam'></i></a>"; } |
99 | 99 | } |
100 | 100 | } |
@@ -107,4 +107,4 @@ discard block |
||
107 | 107 | ?> |
108 | 108 | </div> |
109 | 109 | <?php |
110 | -} else echo '<h3>' . errorMessage(36, $lang) . '</h3>'; |
|
110 | +} else echo '<h3>'.errorMessage(36, $lang).'</h3>'; |
@@ -7,14 +7,18 @@ discard block |
||
7 | 7 | $sql = "SELECT `uid` FROM `players` WHERE `uid` LIKE '$search' OR `name` LIKE '%$search%' OR $playerIdColumn LIKE '$search';"; |
8 | 8 | $result_of_query = $db_link->query($sql); |
9 | 9 | $total_records = mysqli_num_rows($result_of_query); |
10 | - if ($pageNum > $total_records) $pageNum = $total_records; |
|
10 | + if ($pageNum > $total_records) { |
|
11 | + $pageNum = $total_records; |
|
12 | + } |
|
11 | 13 | $sql = "SELECT `name`,`bankacc`,`cash`,`coplevel`,`mediclevel`,`adminlevel`,`uid`, $playerIdColumn as `playerid` FROM `players` WHERE `uid` LIKE '$search' OR `name` LIKE '%$search%' OR $playerIdColumn LIKE '$search' $max;"; |
12 | 14 | logAction($_SESSION['user_name'], $lang['searched'] . ' (' . $search . ') ' . $lang['in'] . ' ' . $lang['players'], 1); |
13 | 15 | } else { |
14 | 16 | $sql = "SELECT `uid` FROM `players`;"; |
15 | 17 | $result_of_query = $db_link->query($sql); |
16 | 18 | $total_records = mysqli_num_rows($result_of_query); |
17 | - if ($pageNum > $total_records) $pageNum = $total_records; |
|
19 | + if ($pageNum > $total_records) { |
|
20 | + $pageNum = $total_records; |
|
21 | + } |
|
18 | 22 | $sql = "SELECT `name`,`bankacc`,`cash`,`coplevel`,`mediclevel`,`adminlevel`,`uid`, $playerIdColumn as `playerid` FROM `players` $max;"; |
19 | 23 | } |
20 | 24 | |
@@ -107,4 +111,6 @@ discard block |
||
107 | 111 | ?> |
108 | 112 | </div> |
109 | 113 | <?php |
110 | -} else echo '<h3>' . errorMessage(36, $lang) . '</h3>'; |
|
114 | +} else { |
|
115 | + echo '<h3>' . errorMessage(36, $lang) . '</h3>'; |
|
116 | +} |
@@ -1,15 +1,15 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | $db_link = serverConnect(); |
3 | 3 | |
4 | -$max = 'LIMIT ' . ($pageNum - 1) * $_SESSION['items'] . ',' . $_SESSION['items']; |
|
4 | +$max = 'LIMIT '.($pageNum - 1) * $_SESSION['items'].','.$_SESSION['items']; |
|
5 | 5 | |
6 | 6 | if (isset($search)) { |
7 | 7 | $sql = "SELECT `uid` FROM `players` WHERE `uid` LIKE '$search' OR `name` LIKE '%$search%' OR $playerIdColumn LIKE '$search' AND `mediclevel` >= '1' ORDER BY `mediclevel` DESC;"; |
8 | 8 | $result_of_query = $db_link->query($sql); |
9 | 9 | $total_records = mysqli_num_rows($result_of_query); |
10 | 10 | if ($pageNum > $total_records) $pageNum = $total_records; |
11 | - $sql = "SELECT `name`, `mediclevel`, `uid`, $playerIdColumn as `playerid` FROM `players` WHERE `uid` LIKE '" . $search . "' OR `name` LIKE '%$search%' OR $playerIdColumn LIKE '$search' AND `mediclevel` >= '1' ORDER BY `mediclevel` DESC $max;"; |
|
12 | - logAction($_SESSION['user_name'], $lang['searched'] . ' (' . $search . ') ' . $lang['in'] . ' ' . $lang['players'], 1); |
|
11 | + $sql = "SELECT `name`, `mediclevel`, `uid`, $playerIdColumn as `playerid` FROM `players` WHERE `uid` LIKE '".$search."' OR `name` LIKE '%$search%' OR $playerIdColumn LIKE '$search' AND `mediclevel` >= '1' ORDER BY `mediclevel` DESC $max;"; |
|
12 | + logAction($_SESSION['user_name'], $lang['searched'].' ('.$search.') '.$lang['in'].' '.$lang['players'], 1); |
|
13 | 13 | } else { |
14 | 14 | $sql = "SELECT `uid` FROM `players` WHERE `mediclevel` >= '1' ORDER BY `mediclevel` DESC;"; |
15 | 15 | $result_of_query = $db_link->query($sql); |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | } |
26 | 26 | $pids = implode(',', $pids); |
27 | 27 | if ($settings['steamAPI'] && $_SESSION['permissions']['view']['steam'] && !$settings['performance'] && $settings['vacTest']) { |
28 | - $api = "http://api.steampowered.com/ISteamUser/GetPlayerBans/v1/?key=" . $settings['steamAPI'] . "&steamids=" . $pids; |
|
28 | + $api = "http://api.steampowered.com/ISteamUser/GetPlayerBans/v1/?key=".$settings['steamAPI']."&steamids=".$pids; |
|
29 | 29 | $bans = get_object_vars(json_decode(file_get_contents($api))); |
30 | 30 | $bans = $bans['players']; |
31 | 31 | $steamPlayers = count($bans); |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | <th><i class="fa fa-eye"></i><?php echo $lang['playerID']; ?></th> |
54 | 54 | <th><i class="fa fa-user"></i><?php echo $lang['rank']; ?></th> |
55 | 55 | <?php if ($_SESSION['permissions']['edit']['player']) { |
56 | - echo '<th><i class="fa fa-pencil"></i> ' . $lang['edit'] . '</th>'; |
|
56 | + echo '<th><i class="fa fa-pencil"></i> '.$lang['edit'].'</th>'; |
|
57 | 57 | } |
58 | 58 | ?> |
59 | 59 | </tr> |
@@ -63,26 +63,26 @@ discard block |
||
63 | 63 | while ($row = mysqli_fetch_assoc($result_of_query)) { |
64 | 64 | $playersID = $row["playerid"]; |
65 | 65 | echo "<tr>"; |
66 | - echo "<td>" . $row["name"] . "</td>"; |
|
67 | - echo "<td>" . $row["playerid"] . "</td>"; |
|
68 | - echo "<td class='hidden-xs'>" . $row["mediclevel"] . "</td>"; |
|
66 | + echo "<td>".$row["name"]."</td>"; |
|
67 | + echo "<td>".$row["playerid"]."</td>"; |
|
68 | + echo "<td class='hidden-xs'>".$row["mediclevel"]."</td>"; |
|
69 | 69 | if ($_SESSION['permissions']['edit']['player']) { |
70 | - echo "<td><a class='btn btn-primary btn-xs' href='" . $settings['url'] . "editPlayer/" . $row["uid"] . "'>"; |
|
70 | + echo "<td><a class='btn btn-primary btn-xs' href='".$settings['url']."editPlayer/".$row["uid"]."'>"; |
|
71 | 71 | echo "<i class='fa fa-pencil'></i></a></td>"; |
72 | 72 | } else { |
73 | - echo "<td><a class='btn btn-primary btn-xs' href='" . $settings['url'] . "editPlayer/" . $row["uid"] . "'>"; |
|
73 | + echo "<td><a class='btn btn-primary btn-xs' href='".$settings['url']."editPlayer/".$row["uid"]."'>"; |
|
74 | 74 | echo "<i class='fa fa-eye'></i></a></td>"; |
75 | 75 | } |
76 | 76 | if ($_SESSION['permissions']['view']['steam'] && $steamPlayers > 0) { |
77 | - echo "<td><a href='http://steamcommunity.com/profiles/" . $row["playerid"] . "' "; |
|
77 | + echo "<td><a href='http://steamcommunity.com/profiles/".$row["playerid"]."' "; |
|
78 | 78 | for ($player = 0; $player <= $steamPlayers; $player++) { |
79 | 79 | if ($bans[$player]->SteamId == $row['playerid']) { |
80 | 80 | if ($bans[$player]->VACBanned == true) { |
81 | - echo "<td><a href='http://steamcommunity.com/profiles/" . $row["playerid"] . "' "; |
|
81 | + echo "<td><a href='http://steamcommunity.com/profiles/".$row["playerid"]."' "; |
|
82 | 82 | echo "class='btn btn-danger btn-xs hidden-xs' target='_blank'><i class='fa fa-steam'></i></a>"; |
83 | 83 | |
84 | 84 | } else { |
85 | - echo "<td><a href='http://steamcommunity.com/profiles/" . $row["playerid"] . "' "; |
|
85 | + echo "<td><a href='http://steamcommunity.com/profiles/".$row["playerid"]."' "; |
|
86 | 86 | echo "class='btn btn-primary btn-xs hidden-xs' target='_blank'><i class='fa fa-steam'></i></a>"; } |
87 | 87 | } |
88 | 88 | } |
@@ -95,4 +95,4 @@ discard block |
||
95 | 95 | ?> |
96 | 96 | </div> |
97 | 97 | <?php |
98 | -} else echo '<h3>' . errorMessage(36, $lang) . '</h3>'; |
|
98 | +} else echo '<h3>'.errorMessage(36, $lang).'</h3>'; |
@@ -7,14 +7,18 @@ discard block |
||
7 | 7 | $sql = "SELECT `uid` FROM `players` WHERE `uid` LIKE '$search' OR `name` LIKE '%$search%' OR $playerIdColumn LIKE '$search' AND `mediclevel` >= '1' ORDER BY `mediclevel` DESC;"; |
8 | 8 | $result_of_query = $db_link->query($sql); |
9 | 9 | $total_records = mysqli_num_rows($result_of_query); |
10 | - if ($pageNum > $total_records) $pageNum = $total_records; |
|
10 | + if ($pageNum > $total_records) { |
|
11 | + $pageNum = $total_records; |
|
12 | + } |
|
11 | 13 | $sql = "SELECT `name`, `mediclevel`, `uid`, $playerIdColumn as `playerid` FROM `players` WHERE `uid` LIKE '" . $search . "' OR `name` LIKE '%$search%' OR $playerIdColumn LIKE '$search' AND `mediclevel` >= '1' ORDER BY `mediclevel` DESC $max;"; |
12 | 14 | logAction($_SESSION['user_name'], $lang['searched'] . ' (' . $search . ') ' . $lang['in'] . ' ' . $lang['players'], 1); |
13 | 15 | } else { |
14 | 16 | $sql = "SELECT `uid` FROM `players` WHERE `mediclevel` >= '1' ORDER BY `mediclevel` DESC;"; |
15 | 17 | $result_of_query = $db_link->query($sql); |
16 | 18 | $total_records = mysqli_num_rows($result_of_query); |
17 | - if ($pageNum > $total_records) $pageNum = $total_records; |
|
19 | + if ($pageNum > $total_records) { |
|
20 | + $pageNum = $total_records; |
|
21 | + } |
|
18 | 22 | $sql = "SELECT `name`, `mediclevel`, `uid`, $playerIdColumn as `playerid` FROM `players` WHERE `mediclevel` >= '1' ORDER BY `mediclevel` DESC $max;"; |
19 | 23 | } |
20 | 24 | |
@@ -95,4 +99,6 @@ discard block |
||
95 | 99 | ?> |
96 | 100 | </div> |
97 | 101 | <?php |
98 | -} else echo '<h3>' . errorMessage(36, $lang) . '</h3>'; |
|
102 | +} else { |
|
103 | + echo '<h3>' . errorMessage(36, $lang) . '</h3>'; |
|
104 | +} |
@@ -262,7 +262,7 @@ |
||
262 | 262 | </table> |
263 | 263 | <?php echo '<a class="fa fa-caret-right fa-2x" style="float: right; padding-right:15px;" href="' . $settings['url'] . 'houses/' . $player->playerid . '"> More</a>'; |
264 | 264 | } else { |
265 | - echo errorMessage(31, $lang); |
|
265 | + echo errorMessage(31, $lang); |
|
266 | 266 | } ?> |
267 | 267 | </div> |
268 | 268 | </div> |
@@ -5,14 +5,14 @@ discard block |
||
5 | 5 | require_once("config/images.php"); |
6 | 6 | require_once("config/license.php"); |
7 | 7 | } else { |
8 | - require_once(realpath($settings['url']) . "config/carNames.php"); |
|
9 | - require_once(realpath($settings['url']) . "config/images.php"); |
|
10 | - require_once(realpath($settings['url']) . "config/license.php"); |
|
8 | + require_once(realpath($settings['url'])."config/carNames.php"); |
|
9 | + require_once(realpath($settings['url'])."config/images.php"); |
|
10 | + require_once(realpath($settings['url'])."config/license.php"); |
|
11 | 11 | } |
12 | 12 | |
13 | 13 | $db_link = serverConnect(); |
14 | 14 | |
15 | -$sql = "SELECT *, $playerIdColumn as playerid FROM `players` WHERE $playerIdColumn = '" . $_SESSION['playerid'] . "'"; |
|
15 | +$sql = "SELECT *, $playerIdColumn as playerid FROM `players` WHERE $playerIdColumn = '".$_SESSION['playerid']."'"; |
|
16 | 16 | $result = $db_link->query($sql); |
17 | 17 | if ($result->num_rows > 0) { |
18 | 18 | $player = $result->fetch_object(); |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | $temp .= chr($pGID & 0xFF); |
24 | 24 | $pGID >>= 8; |
25 | 25 | } |
26 | - $pGID = md5('BE' . $temp); |
|
26 | + $pGID = md5('BE'.$temp); |
|
27 | 27 | ?> |
28 | 28 | <div class="col-md-3" style="float:left; padding-top:20px;"> |
29 | 29 | <div class="panel panel-default"> |
@@ -37,27 +37,27 @@ discard block |
||
37 | 37 | $alias = str_replace('"[`', "", $player->aliases); |
38 | 38 | $alias = str_replace('`]"', "", $alias); |
39 | 39 | |
40 | - echo '<center><img alt="' . $alias . '" src="'. skinImage($player->civ_gear) .'">'; |
|
41 | - echo "<h4>" . $lang['aliases'] . ": " . $alias . "</h4>"; |
|
42 | - echo "<h4>" . $lang['uid'] . ": " . $player->uid . "</h4>"; |
|
43 | - echo "<h4>" . $lang['playerID'] . ": " . $player->playerid . "</h4>"; |
|
44 | - echo "<h4 style='word-wrap: break-word;'>" . $lang['GUID'] . ": " . $pGID . "</h4>"; |
|
40 | + echo '<center><img alt="'.$alias.'" src="'.skinImage($player->civ_gear).'">'; |
|
41 | + echo "<h4>".$lang['aliases'].": ".$alias."</h4>"; |
|
42 | + echo "<h4>".$lang['uid'].": ".$player->uid."</h4>"; |
|
43 | + echo "<h4>".$lang['playerID'].": ".$player->playerid."</h4>"; |
|
44 | + echo "<h4 style='word-wrap: break-word;'>".$lang['GUID'].": ".$pGID."</h4>"; |
|
45 | 45 | ?> |
46 | 46 | <i class="fa fa-2x fa-money"></i> |
47 | - <h4> <?php echo $lang['cash'] . ": " . $player->cash; ?> </h4> |
|
47 | + <h4> <?php echo $lang['cash'].": ".$player->cash; ?> </h4> |
|
48 | 48 | <i style="padding-left:15px;" class="fa fa-2x fa-bank"></i> |
49 | - <h4> <?php echo $lang['bank'] . ": " . $player->bankacc; ?> </h4> |
|
49 | + <h4> <?php echo $lang['bank'].": ".$player->bankacc; ?> </h4> |
|
50 | 50 | <?php |
51 | 51 | if ($player->arrested == 0) { |
52 | - echo "<h4><button type='button' id='arrested' class='arrest btn btn-xs btn-success'>" . $lang["not"] . " " . $lang["arrested"] . "</button></h4>"; |
|
52 | + echo "<h4><button type='button' id='arrested' class='arrest btn btn-xs btn-success'>".$lang["not"]." ".$lang["arrested"]."</button></h4>"; |
|
53 | 53 | } else { |
54 | - echo "<h4><button type='button' id='arrested' class='arrest btn btn-xs btn-theme01'>" . $lang["arrested"] . "</button></h4>"; |
|
54 | + echo "<h4><button type='button' id='arrested' class='arrest btn btn-xs btn-theme01'>".$lang["arrested"]."</button></h4>"; |
|
55 | 55 | } |
56 | 56 | |
57 | 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>"; |
|
58 | + echo "<h4><button type='button' id='blacklist' class='arrest btn btn-xs btn-success'>".$lang["not"]." ".$lang["blacklisted"]."</button></h4>"; |
|
59 | 59 | } else { |
60 | - echo "<h4><button type='button' id='blacklist' class='arrest btn btn-xs btn-theme01'>" . $lang["blacklisted"] . "</button></h4>"; |
|
60 | + echo "<h4><button type='button' id='blacklist' class='arrest btn btn-xs btn-theme01'>".$lang["blacklisted"]."</button></h4>"; |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | echo "</center>"; |
@@ -74,34 +74,34 @@ discard block |
||
74 | 74 | <div class="box1"> |
75 | 75 | <span class="fa fa-3x fa-taxi"></span> |
76 | 76 | |
77 | - <h3> <?php echo $lang['police'] . ": " . $player->coplevel; ?> </h3> |
|
77 | + <h3> <?php echo $lang['police'].": ".$player->coplevel; ?> </h3> |
|
78 | 78 | </div> |
79 | 79 | </div> |
80 | 80 | <div class="col-md-2 col-sm-2 box0"> |
81 | 81 | <div class="box1"> |
82 | 82 | <span class="fa fa-3x fa-ambulance"></span> |
83 | 83 | |
84 | - <h3> <?php echo $lang['medic'] . ": " . $player->mediclevel; ?> </h3> |
|
84 | + <h3> <?php echo $lang['medic'].": ".$player->mediclevel; ?> </h3> |
|
85 | 85 | </div> |
86 | 86 | </div> |
87 | 87 | <div class="col-md-2 col-sm-2 box0"> |
88 | 88 | <div class="box1"> |
89 | 89 | <span class="fa fa-3x fa-usd"></span> |
90 | 90 | |
91 | - <h3> <?php echo $lang['donator'] . ": " . $player->$settings['donorFormat']; ?> </h3> |
|
91 | + <h3> <?php echo $lang['donator'].": ".$player->$settings['donorFormat']; ?> </h3> |
|
92 | 92 | </div> |
93 | 93 | </div> |
94 | 94 | <div class="col-md-2 col-sm-2 box0"> |
95 | 95 | <div class="box1"> |
96 | 96 | <span class="fa fa-3x fa-group"></span> |
97 | 97 | |
98 | - <h3> <?php echo $lang['admin'] . ": " . $player->adminlevel; ?> </h3> |
|
98 | + <h3> <?php echo $lang['admin'].": ".$player->adminlevel; ?> </h3> |
|
99 | 99 | </div> |
100 | 100 | </div> |
101 | 101 | <?php |
102 | 102 | if ($_SESSION['permissions']['view']['steam'] || $uID == $_SESSION['playerid']) { |
103 | 103 | echo '<div class="col-md-2 col-sm-2 box0">'; |
104 | - echo '<a href="http://steamcommunity.com/profiles/' . $row["playerid"] . '"'; |
|
104 | + echo '<a href="http://steamcommunity.com/profiles/'.$row["playerid"].'"'; |
|
105 | 105 | echo 'target="_blank">'; |
106 | 106 | echo '<div class="box1">'; |
107 | 107 | echo '<span class="fa fa-3x fa-steam"></span>'; |
@@ -136,59 +136,59 @@ discard block |
||
136 | 136 | <div id="myTabContent" class="tab-content"> |
137 | 137 | <?php if ($player->playerid == $_SESSION['playerid']) { ?> |
138 | 138 | <div class="tab-pane fade in active well" id="civ_lic"> |
139 | - <h4 style="centred"><?php echo $lang['civ'] . " " . $lang['licenses']; ?> </h4> |
|
139 | + <h4 style="centred"><?php echo $lang['civ']." ".$lang['licenses']; ?> </h4> |
|
140 | 140 | <?php |
141 | 141 | if ($player->civ_licenses !== '"[]"') { |
142 | 142 | $return = stripArray($player->civ_licenses, 0); |
143 | 143 | foreach ($return as $value) { |
144 | 144 | if (strpos($value, "1") == TRUE) { |
145 | 145 | $name = before(',', $value); |
146 | - echo "<button class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>" . licName($name, $license) . "</button> "; |
|
146 | + echo "<button class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>".licName($name, $license)."</button> "; |
|
147 | 147 | } else { |
148 | 148 | $name = before(',', $value); |
149 | - echo "<button class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>" . licName($name, $license) . "</button> "; |
|
149 | + echo "<button class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>".licName($name, $license)."</button> "; |
|
150 | 150 | } |
151 | 151 | } |
152 | 152 | } else { |
153 | - echo errorMessage(37,$lang); |
|
153 | + echo errorMessage(37, $lang); |
|
154 | 154 | }?> |
155 | 155 | </div> |
156 | 156 | <div class="tab-pane well fade" id="medic_lic"> |
157 | - <h4 style="centred"><?php echo $lang['medic'] . " " . $lang['licenses']; ?> </h4> |
|
157 | + <h4 style="centred"><?php echo $lang['medic']." ".$lang['licenses']; ?> </h4> |
|
158 | 158 | <?php |
159 | 159 | if ($player->med_licenses !== '"[]"') { |
160 | - $return = stripArray($player->med_licenses,0); |
|
160 | + $return = stripArray($player->med_licenses, 0); |
|
161 | 161 | |
162 | 162 | foreach ($return as $value) { |
163 | 163 | if (strpos($value, "1") == TRUE) { |
164 | 164 | $name = before(',', $value); |
165 | - echo "<button class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>" . licName($name, $license) . "</button> "; |
|
165 | + echo "<button class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>".licName($name, $license)."</button> "; |
|
166 | 166 | } else { |
167 | 167 | $name = before(',', $value); |
168 | - echo "<button class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>" . licName($name, $license) . "</button> "; |
|
168 | + echo "<button class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>".licName($name, $license)."</button> "; |
|
169 | 169 | } |
170 | 170 | } |
171 | 171 | } else { |
172 | - echo errorMessage(37,$lang); |
|
172 | + echo errorMessage(37, $lang); |
|
173 | 173 | } ?> |
174 | 174 | </div> |
175 | 175 | <div class="tab-pane well fade" id="police_lic"> |
176 | - <h4 style="centred"><?php echo $lang['cop'] . " " . $lang['licenses']; ?> </h4> |
|
176 | + <h4 style="centred"><?php echo $lang['cop']." ".$lang['licenses']; ?> </h4> |
|
177 | 177 | <?php |
178 | 178 | if ($player->cop_licenses !== '"[]"') { |
179 | - $return = stripArray($player->cop_licenses,0); |
|
179 | + $return = stripArray($player->cop_licenses, 0); |
|
180 | 180 | |
181 | 181 | foreach ($return as $value) { |
182 | 182 | if (strpos($value, "1") == TRUE) { |
183 | 183 | $name = before(',', $value); |
184 | - echo "<button class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>" . licName($name, $license) . "</button> "; |
|
184 | + echo "<button class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>".licName($name, $license)."</button> "; |
|
185 | 185 | } else { |
186 | 186 | $name = before(',', $value); |
187 | - echo "<button class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>" . licName($name, $license) . "</button> "; |
|
187 | + echo "<button class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>".licName($name, $license)."</button> "; |
|
188 | 188 | } |
189 | 189 | } |
190 | 190 | } else { |
191 | - echo errorMessage(37,$lang); |
|
191 | + echo errorMessage(37, $lang); |
|
192 | 192 | } |
193 | 193 | ?> |
194 | 194 | </div> |
@@ -196,9 +196,9 @@ discard block |
||
196 | 196 | |
197 | 197 | <?php if ($player->playerid == $_SESSION['playerid']) { ?> |
198 | 198 | <div class="tab-pane fade well" id="civ_inv"> |
199 | - <h4 style="centred"><?php echo $lang['civ'] . " " . $lang['gear']; ?> </h4> |
|
199 | + <h4 style="centred"><?php echo $lang['civ']." ".$lang['gear']; ?> </h4> |
|
200 | 200 | <?php |
201 | - echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='civ_gear' name='civ_gear'>" . $player->civ_gear . "</textarea>"; |
|
201 | + echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='civ_gear' name='civ_gear'>".$player->civ_gear."</textarea>"; |
|
202 | 202 | echo '<br>'; |
203 | 203 | |
204 | 204 | if ($_SESSION['permissions']['edit']['inventory']) { |
@@ -209,9 +209,9 @@ discard block |
||
209 | 209 | <br> |
210 | 210 | </div> |
211 | 211 | <div class="tab-pane fade well" id="police_inv"> |
212 | - <h4 style="centred"><?php echo $lang['police'] . " " . $lang['gear']; ?> </h4> |
|
212 | + <h4 style="centred"><?php echo $lang['police']." ".$lang['gear']; ?> </h4> |
|
213 | 213 | <?php |
214 | - echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='civ_gear' name='cop_gear'>" . $player->cop_gear . "</textarea>"; |
|
214 | + echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='civ_gear' name='cop_gear'>".$player->cop_gear."</textarea>"; |
|
215 | 215 | echo '<br>'; |
216 | 216 | if ($_SESSION['permissions']['edit']['inventory']) { |
217 | 217 | echo '<a data-toggle="modal" href="#edit_cop_inv" class="btn btn-primary btn-xs" style="float: right;">'; |
@@ -221,9 +221,9 @@ discard block |
||
221 | 221 | <br> |
222 | 222 | </div> |
223 | 223 | <div class="tab-pane fade well" id="medic_inv"> |
224 | - <h4 style="centred"><?php echo $lang['medic'] . " " . $lang['gear']; ?> </h4> |
|
224 | + <h4 style="centred"><?php echo $lang['medic']." ".$lang['gear']; ?> </h4> |
|
225 | 225 | <?php |
226 | - echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='civ_gear' name='med_gear'>" . $player->med_gear . "</textarea>"; |
|
226 | + echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='civ_gear' name='med_gear'>".$player->med_gear."</textarea>"; |
|
227 | 227 | echo '<br>'; |
228 | 228 | if ($_SESSION['permissions']['edit']['inventory']) { |
229 | 229 | echo '<a data-toggle="modal" href="#edit_med_inv" class="btn btn-primary btn-xs" style="float: right;">'; |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | <div class="tab-pane fade" id="house"> |
238 | 238 | <div class="table-responsive"> |
239 | 239 | <?php |
240 | - $sql = "SELECT `pos`,`id` FROM `houses` WHERE `pid` = '" . $player->playerid . "' ORDER BY `id` DESC LIMIT 8"; |
|
240 | + $sql = "SELECT `pos`,`id` FROM `houses` WHERE `pid` = '".$player->playerid."' ORDER BY `id` DESC LIMIT 8"; |
|
241 | 241 | $result_of_query = $db_link->query($sql); |
242 | 242 | if ($result_of_query->num_rows > 0) { |
243 | 243 | ?> |
@@ -252,15 +252,15 @@ discard block |
||
252 | 252 | <?php |
253 | 253 | while ($row = mysqli_fetch_assoc($result_of_query)) { |
254 | 254 | echo "<tr>"; |
255 | - echo "<td>" . $row["pos"] . "</td>"; |
|
256 | - echo "<td><a class='btn btn-primary btn-xs' href='" . $settings['url'] . "editHouse/" . $row["id"] . "'>"; |
|
255 | + echo "<td>".$row["pos"]."</td>"; |
|
256 | + echo "<td><a class='btn btn-primary btn-xs' href='".$settings['url']."editHouse/".$row["id"]."'>"; |
|
257 | 257 | echo "<i class='fa fa-pencil'></i></a></td>"; |
258 | 258 | echo "</tr>"; |
259 | 259 | }; |
260 | 260 | ?> |
261 | 261 | </tbody> |
262 | 262 | </table> |
263 | - <?php echo '<a class="fa fa-caret-right fa-2x" style="float: right; padding-right:15px;" href="' . $settings['url'] . 'houses/' . $player->playerid . '"> More</a>'; |
|
263 | + <?php echo '<a class="fa fa-caret-right fa-2x" style="float: right; padding-right:15px;" href="'.$settings['url'].'houses/'.$player->playerid.'"> More</a>'; |
|
264 | 264 | } else { |
265 | 265 | echo errorMessage(31, $lang); |
266 | 266 | } ?> |
@@ -272,32 +272,32 @@ discard block |
||
272 | 272 | <div class="tab-pane fade" id="veh"> |
273 | 273 | <div class="table-responsive"> |
274 | 274 | <?php |
275 | - $sql = "SELECT `classname`,`type`,`id`,`plate` FROM `vehicles` WHERE `pid` = '" . $player->playerid . "' ORDER BY `id` DESC LIMIT 8"; |
|
275 | + $sql = "SELECT `classname`,`type`,`id`,`plate` FROM `vehicles` WHERE `pid` = '".$player->playerid."' ORDER BY `id` DESC LIMIT 8"; |
|
276 | 276 | $result_of_query = $db_link->query($sql); |
277 | 277 | if ($result_of_query->num_rows > 0) { |
278 | 278 | $veh = $result_of_query->fetch_object(); |
279 | 279 | echo '<table class="table table-bordered table-hover table-striped">'; |
280 | 280 | echo '<thead><tr>'; |
281 | - echo '<th>' . $lang['class'] . '</th>'; |
|
282 | - echo '<th>' . $lang['type'] . '</th>'; |
|
283 | - echo '<th>' . $lang['plate'] . '</th>'; |
|
281 | + echo '<th>'.$lang['class'].'</th>'; |
|
282 | + echo '<th>'.$lang['type'].'</th>'; |
|
283 | + echo '<th>'.$lang['plate'].'</th>'; |
|
284 | 284 | if ($_SESSION['permissions']['edit']['vehicles']) { |
285 | - echo "<th>" . $lang['edit'] . "</th>"; |
|
285 | + echo "<th>".$lang['edit']."</th>"; |
|
286 | 286 | } |
287 | 287 | echo '</tr></thead><tbody'; |
288 | 288 | echo '<tr>'; |
289 | - echo '<td>' . carName($veh->classname) . '</td>'; |
|
290 | - echo '<td>' . carType($veh->type, $lang) . '</td>'; |
|
291 | - echo '<td>' . $veh->plate . '</td>'; |
|
289 | + echo '<td>'.carName($veh->classname).'</td>'; |
|
290 | + echo '<td>'.carType($veh->type, $lang).'</td>'; |
|
291 | + echo '<td>'.$veh->plate.'</td>'; |
|
292 | 292 | |
293 | 293 | if ($_SESSION['permissions']['edit']['vehicles']) { |
294 | - echo "<td><a class='btn btn-primary btn-xs' href='" . $settings['url'] . "editVeh.php?ID=" . $veh->id . "'>"; |
|
294 | + echo "<td><a class='btn btn-primary btn-xs' href='".$settings['url']."editVeh.php?ID=".$veh->id."'>"; |
|
295 | 295 | echo "<i class='fa fa-pencil'></i></a></td>"; |
296 | 296 | } |
297 | 297 | |
298 | 298 | echo '</tr>'; |
299 | 299 | echo '</tbody></table>'; |
300 | - echo '<a class="fa fa-caret-right fa-2x" style="float: right; padding-right:15px;" href="' . $settings['url'] . 'vehicles/' . $player->playerid . '"> More</a>'; |
|
300 | + echo '<a class="fa fa-caret-right fa-2x" style="float: right; padding-right:15px;" href="'.$settings['url'].'vehicles/'.$player->playerid.'"> More</a>'; |
|
301 | 301 | |
302 | 302 | } else echo errorMessage(31, $lang); |
303 | 303 | ?> |
@@ -299,7 +299,9 @@ |
||
299 | 299 | echo '</tbody></table>'; |
300 | 300 | echo '<a class="fa fa-caret-right fa-2x" style="float: right; padding-right:15px;" href="' . $settings['url'] . 'vehicles/' . $player->playerid . '"> More</a>'; |
301 | 301 | |
302 | - } else echo errorMessage(31, $lang); |
|
302 | + } else { |
|
303 | + echo errorMessage(31, $lang); |
|
304 | + } |
|
303 | 305 | ?> |
304 | 306 | </div> |
305 | 307 | </div> |
@@ -2,22 +2,22 @@ discard block |
||
2 | 2 | $db_link = serverConnect(); |
3 | 3 | require_once("config/carNames.php"); |
4 | 4 | |
5 | -$max = 'LIMIT ' . ($pageNum - 1) * $_SESSION['items'] . ',' . $_SESSION['items']; |
|
5 | +$max = 'LIMIT '.($pageNum - 1) * $_SESSION['items'].','.$_SESSION['items']; |
|
6 | 6 | |
7 | 7 | if (isset($search)) { |
8 | - logAction($_SESSION['user_name'], $lang['searched'] . ' (' . $search . ') ' . $lang['in'] . ' ' . $lang['vehicles'], 1); |
|
8 | + logAction($_SESSION['user_name'], $lang['searched'].' ('.$search.') '.$lang['in'].' '.$lang['vehicles'], 1); |
|
9 | 9 | |
10 | - $sql = "SELECT `id`,`pid`,`classname`,`active`,`type`,`plate`,`alive`,`active` FROM `vehicles` INNER JOIN `players` ON vehicles.pid=players.$playerIdColumn WHERE `pid` LIKE '" . $_SESSION['playerid'] . "' OR `classname` LIKE '%$search%' OR `name` LIKE '%$search%' OR `plate` LIKE '$search' OR `inventory` LIKE '%$search%';"; |
|
10 | + $sql = "SELECT `id`,`pid`,`classname`,`active`,`type`,`plate`,`alive`,`active` FROM `vehicles` INNER JOIN `players` ON vehicles.pid=players.$playerIdColumn WHERE `pid` LIKE '".$_SESSION['playerid']."' OR `classname` LIKE '%$search%' OR `name` LIKE '%$search%' OR `plate` LIKE '$search' OR `inventory` LIKE '%$search%';"; |
|
11 | 11 | $result_of_query = $db_link->query($sql); |
12 | 12 | $total_records = mysqli_num_rows($result_of_query); |
13 | 13 | if ($pageNum > $total_records) $pageNum = $total_records; |
14 | - $sql = "SELECT `id`,`pid`,`classname`,`active`,`type`,`plate`,`alive`,`active` FROM `vehicles` INNER JOIN `players` ON vehicles.pid=players.$playerIdColumn WHERE `pid` LIKE '" . $_SESSION['playerid'] . "' OR `classname` LIKE '%$search%' OR `name` LIKE '%$search%' OR `plate` LIKE '$search' OR `inventory` LIKE '%$search%' $max;"; |
|
14 | + $sql = "SELECT `id`,`pid`,`classname`,`active`,`type`,`plate`,`alive`,`active` FROM `vehicles` INNER JOIN `players` ON vehicles.pid=players.$playerIdColumn WHERE `pid` LIKE '".$_SESSION['playerid']."' OR `classname` LIKE '%$search%' OR `name` LIKE '%$search%' OR `plate` LIKE '$search' OR `inventory` LIKE '%$search%' $max;"; |
|
15 | 15 | } else { |
16 | - $sql = "SELECT `id` FROM `vehicles` INNER JOIN `players` ON vehicles.pid=players.playerid WHERE `pid` LIKE '" . $_SESSION['playerid'] . "';"; |
|
16 | + $sql = "SELECT `id` FROM `vehicles` INNER JOIN `players` ON vehicles.pid=players.playerid WHERE `pid` LIKE '".$_SESSION['playerid']."';"; |
|
17 | 17 | $result_of_query = $db_link->query($sql); |
18 | 18 | $total_records = mysqli_num_rows($result_of_query); |
19 | 19 | if ($pageNum > $total_records) $pageNum = $total_records; |
20 | - $sql = "SELECT `id`,`pid`,`classname`,`active`,`type`,`plate`,`alive`,`active` FROM `vehicles` INNER JOIN `players` ON vehicles.pid=players.$playerIdColumn WHERE `pid` LIKE '" . $_SESSION['playerid'] . "' $max;"; |
|
20 | + $sql = "SELECT `id`,`pid`,`classname`,`active`,`type`,`plate`,`alive`,`active` FROM `vehicles` INNER JOIN `players` ON vehicles.pid=players.$playerIdColumn WHERE `pid` LIKE '".$_SESSION['playerid']."' $max;"; |
|
21 | 21 | } |
22 | 22 | $result_of_query = $db_link->query($sql); |
23 | 23 | if ($result_of_query->num_rows > 0) { ?> |
@@ -54,14 +54,14 @@ discard block |
||
54 | 54 | <?php |
55 | 55 | while ($row = mysqli_fetch_assoc($result_of_query)) { |
56 | 56 | echo "<tr>"; |
57 | - echo "<td>" . nameID($row["pid"], $db_link) . "</td>"; |
|
58 | - echo "<td>" . carName($row["classname"]) . "</td>"; |
|
59 | - echo "<td class='hidden-xs'> " . carType($row["type"], $lang) . "</td>"; |
|
60 | - echo "<td class='hidden-xs'> " . $row["plate"] . "</td>"; |
|
61 | - echo "<td class='hidden-xs'> " . yesNo($row["alive"], $lang) . "</td>"; |
|
62 | - echo "<td class='hidden-xs'> " . yesNo($row["active"], $lang) . "</td>"; |
|
57 | + echo "<td>".nameID($row["pid"], $db_link)."</td>"; |
|
58 | + echo "<td>".carName($row["classname"])."</td>"; |
|
59 | + echo "<td class='hidden-xs'> ".carType($row["type"], $lang)."</td>"; |
|
60 | + echo "<td class='hidden-xs'> ".$row["plate"]."</td>"; |
|
61 | + echo "<td class='hidden-xs'> ".yesNo($row["alive"], $lang)."</td>"; |
|
62 | + echo "<td class='hidden-xs'> ".yesNo($row["active"], $lang)."</td>"; |
|
63 | 63 | if ($row["pid"] == $_SESSION['playerid']) { |
64 | - echo "<td><a class='btn btn-primary btn-xs' href='" . $settings['url'] . "editVeh/" . $row["id"] . "'>"; |
|
64 | + echo "<td><a class='btn btn-primary btn-xs' href='".$settings['url']."editVeh/".$row["id"]."'>"; |
|
65 | 65 | echo "<i class='fa fa-pencil'></i></a></td>"; |
66 | 66 | } |
67 | 67 | echo "</tr>"; |
@@ -10,13 +10,17 @@ discard block |
||
10 | 10 | $sql = "SELECT `id`,`pid`,`classname`,`active`,`type`,`plate`,`alive`,`active` FROM `vehicles` INNER JOIN `players` ON vehicles.pid=players.$playerIdColumn WHERE `pid` LIKE '" . $_SESSION['playerid'] . "' OR `classname` LIKE '%$search%' OR `name` LIKE '%$search%' OR `plate` LIKE '$search' OR `inventory` LIKE '%$search%';"; |
11 | 11 | $result_of_query = $db_link->query($sql); |
12 | 12 | $total_records = mysqli_num_rows($result_of_query); |
13 | - if ($pageNum > $total_records) $pageNum = $total_records; |
|
13 | + if ($pageNum > $total_records) { |
|
14 | + $pageNum = $total_records; |
|
15 | + } |
|
14 | 16 | $sql = "SELECT `id`,`pid`,`classname`,`active`,`type`,`plate`,`alive`,`active` FROM `vehicles` INNER JOIN `players` ON vehicles.pid=players.$playerIdColumn WHERE `pid` LIKE '" . $_SESSION['playerid'] . "' OR `classname` LIKE '%$search%' OR `name` LIKE '%$search%' OR `plate` LIKE '$search' OR `inventory` LIKE '%$search%' $max;"; |
15 | 17 | } else { |
16 | 18 | $sql = "SELECT `id` FROM `vehicles` INNER JOIN `players` ON vehicles.pid=players.playerid WHERE `pid` LIKE '" . $_SESSION['playerid'] . "';"; |
17 | 19 | $result_of_query = $db_link->query($sql); |
18 | 20 | $total_records = mysqli_num_rows($result_of_query); |
19 | - if ($pageNum > $total_records) $pageNum = $total_records; |
|
21 | + if ($pageNum > $total_records) { |
|
22 | + $pageNum = $total_records; |
|
23 | + } |
|
20 | 24 | $sql = "SELECT `id`,`pid`,`classname`,`active`,`type`,`plate`,`alive`,`active` FROM `vehicles` INNER JOIN `players` ON vehicles.pid=players.$playerIdColumn WHERE `pid` LIKE '" . $_SESSION['playerid'] . "' $max;"; |
21 | 25 | } |
22 | 26 | $result_of_query = $db_link->query($sql); |
@@ -74,4 +78,6 @@ discard block |
||
74 | 78 | </table> |
75 | 79 | </div> |
76 | 80 | <?php |
77 | -} else echo errorMessage(3, $lang); |
|
78 | 81 | \ No newline at end of file |
82 | +} else { |
|
83 | + echo errorMessage(3, $lang); |
|
84 | +} |
@@ -1,20 +1,20 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | $db_link = serverConnect(); |
3 | -$max = 'LIMIT ' . ($pageNum - 1) * $_SESSION['items'] . ',' . $_SESSION['items']; |
|
3 | +$max = 'LIMIT '.($pageNum - 1) * $_SESSION['items'].','.$_SESSION['items']; |
|
4 | 4 | |
5 | 5 | if (isset($search)) { |
6 | - logAction($_SESSION['user_name'], $lang['searched'] . ' (' . $search . ') ' . $lang['in'] . ' ' . $lang['vehicles'], 1); |
|
7 | - $sql = "SELECT `id` FROM `houses` INNER JOIN `players` ON houses.pid=players.$playerIdColumn WHERE `id` LIKE '" . $search . "' OR `pos` LIKE '$search' OR `inventory` LIKE '%$search%' OR `name` LIKE '%$search%' AND `pid` = '" . $_SESSION['playerid'] . "';"; |
|
6 | + logAction($_SESSION['user_name'], $lang['searched'].' ('.$search.') '.$lang['in'].' '.$lang['vehicles'], 1); |
|
7 | + $sql = "SELECT `id` FROM `houses` INNER JOIN `players` ON houses.pid=players.$playerIdColumn WHERE `id` LIKE '".$search."' OR `pos` LIKE '$search' OR `inventory` LIKE '%$search%' OR `name` LIKE '%$search%' AND `pid` = '".$_SESSION['playerid']."';"; |
|
8 | 8 | $result_of_query = $db_link->query($sql); |
9 | 9 | $total_records = mysqli_num_rows($result_of_query); |
10 | 10 | if ($pageNum > $total_records) $pageNum = $total_records; |
11 | - $sql = "SELECT `id`,`pid`,`pos`,`name`,`owned` FROM `houses` INNER JOIN `players` ON houses.pid=players.$playerIdColumn WHERE `id` LIKE '$search' OR `pos` LIKE '$search' OR `inventory` LIKE '%$search %' OR `name` LIKE '%$search%' AND `pid` = '" . $_SESSION['playerid'] . "' $max;"; |
|
11 | + $sql = "SELECT `id`,`pid`,`pos`,`name`,`owned` FROM `houses` INNER JOIN `players` ON houses.pid=players.$playerIdColumn WHERE `id` LIKE '$search' OR `pos` LIKE '$search' OR `inventory` LIKE '%$search %' OR `name` LIKE '%$search%' AND `pid` = '".$_SESSION['playerid']."' $max;"; |
|
12 | 12 | } else { |
13 | 13 | $sql = "SELECT `id` FROM `houses`;"; |
14 | 14 | $result_of_query = $db_link->query($sql); |
15 | 15 | $total_records = mysqli_num_rows($result_of_query); |
16 | 16 | if ($pageNum > $total_records) $pageNum = $total_records; |
17 | - $sql = "SELECT `id`,`pid`,`pos`,`name`,`owned` FROM `houses` INNER JOIN `players` ON houses.pid=players.$playerIdColumn AND `pid` = '" . $_SESSION['playerid'] . "' $max;"; |
|
17 | + $sql = "SELECT `id`,`pid`,`pos`,`name`,`owned` FROM `houses` INNER JOIN `players` ON houses.pid=players.$playerIdColumn AND `pid` = '".$_SESSION['playerid']."' $max;"; |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | $result_of_query = $db_link->query($sql); |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | <th><i class="fa fa-user"></i> <?php echo $lang['position']; ?></th> |
42 | 42 | <th class="hidden-xs"><i class="fa fa-user"></i> <?php echo $lang['owned']; ?></th> |
43 | 43 | <?php if ($_SESSION['permissions']['edit']['houses']) { |
44 | - echo '<th>' . $lang['edit'] . '</th>'; |
|
44 | + echo '<th>'.$lang['edit'].'</th>'; |
|
45 | 45 | } |
46 | 46 | ?> |
47 | 47 | </tr> |
@@ -50,11 +50,11 @@ discard block |
||
50 | 50 | <?php |
51 | 51 | while ($row = mysqli_fetch_assoc($result_of_query)) { |
52 | 52 | echo "<tr>"; |
53 | - echo "<td>" . $row["name"] . "</td>"; |
|
54 | - echo "<td>" . substr($row["pos"], 1, -1) . "</td>"; |
|
55 | - echo "<td class='hidden-xs'>" . yesNo($row["owned"], $lang) . "</td>"; |
|
53 | + echo "<td>".$row["name"]."</td>"; |
|
54 | + echo "<td>".substr($row["pos"], 1, -1)."</td>"; |
|
55 | + echo "<td class='hidden-xs'>".yesNo($row["owned"], $lang)."</td>"; |
|
56 | 56 | if ($_SESSION['permissions']['edit']['houses']) { |
57 | - echo "<td><a class='btn btn-primary btn-xs' href='" . $settings['url'] . "editHouse/" . $row["id"] . "'>"; |
|
57 | + echo "<td><a class='btn btn-primary btn-xs' href='".$settings['url']."editHouse/".$row["id"]."'>"; |
|
58 | 58 | echo "<i class='fa fa-pencil'></i></a></td>"; |
59 | 59 | } |
60 | 60 | echo "</tr>"; |
@@ -7,13 +7,17 @@ discard block |
||
7 | 7 | $sql = "SELECT `id` FROM `houses` INNER JOIN `players` ON houses.pid=players.$playerIdColumn WHERE `id` LIKE '" . $search . "' OR `pos` LIKE '$search' OR `inventory` LIKE '%$search%' OR `name` LIKE '%$search%' AND `pid` = '" . $_SESSION['playerid'] . "';"; |
8 | 8 | $result_of_query = $db_link->query($sql); |
9 | 9 | $total_records = mysqli_num_rows($result_of_query); |
10 | - if ($pageNum > $total_records) $pageNum = $total_records; |
|
10 | + if ($pageNum > $total_records) { |
|
11 | + $pageNum = $total_records; |
|
12 | + } |
|
11 | 13 | $sql = "SELECT `id`,`pid`,`pos`,`name`,`owned` FROM `houses` INNER JOIN `players` ON houses.pid=players.$playerIdColumn WHERE `id` LIKE '$search' OR `pos` LIKE '$search' OR `inventory` LIKE '%$search %' OR `name` LIKE '%$search%' AND `pid` = '" . $_SESSION['playerid'] . "' $max;"; |
12 | 14 | } else { |
13 | 15 | $sql = "SELECT `id` FROM `houses`;"; |
14 | 16 | $result_of_query = $db_link->query($sql); |
15 | 17 | $total_records = mysqli_num_rows($result_of_query); |
16 | - if ($pageNum > $total_records) $pageNum = $total_records; |
|
18 | + if ($pageNum > $total_records) { |
|
19 | + $pageNum = $total_records; |
|
20 | + } |
|
17 | 21 | $sql = "SELECT `id`,`pid`,`pos`,`name`,`owned` FROM `houses` INNER JOIN `players` ON houses.pid=players.$playerIdColumn AND `pid` = '" . $_SESSION['playerid'] . "' $max;"; |
18 | 22 | } |
19 | 23 | |
@@ -65,4 +69,6 @@ discard block |
||
65 | 69 | </div> |
66 | 70 | |
67 | 71 | <?php |
68 | -} else echo errorMessage(3, $lang); |
|
69 | 72 | \ No newline at end of file |
73 | +} else { |
|
74 | + echo errorMessage(3, $lang); |
|
75 | +} |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | |
157 | 157 | <div class="panel-body"> |
158 | 158 | <?php |
159 | - $alias = str_replace('"[`', '', $player->aliases); |
|
159 | + $alias = str_replace('"[`', '', $player->aliases); |
|
160 | 160 | $alias = str_replace('`]"', '', $alias); |
161 | 161 | |
162 | 162 | echo '<center><img alt="'.$alias.'" src="'.$settings['url'].skinImage($player->civ_gear).'">'; |
@@ -173,11 +173,11 @@ discard block |
||
173 | 173 | <i class="fa fa-2x fa-bank"></i> |
174 | 174 | <h4> <?php echo $lang['bank'].': '.$player->bankacc; ?> </h4> |
175 | 175 | <?php |
176 | - if ($player->arrested == 0) { |
|
177 | - echo "<h4><button type='button' id='arrested' class='arrest btn btn-xs btn-success'>".$lang['not'].' '.$lang['arrested'].'</button></h4>'; |
|
178 | - } else { |
|
179 | - echo "<h4><button type='button' id='arrested' class='arrest btn btn-xs btn-theme01'>".$lang['arrested'].'</button></h4>'; |
|
180 | - } |
|
176 | + if ($player->arrested == 0) { |
|
177 | + echo "<h4><button type='button' id='arrested' class='arrest btn btn-xs btn-success'>".$lang['not'].' '.$lang['arrested'].'</button></h4>'; |
|
178 | + } else { |
|
179 | + echo "<h4><button type='button' id='arrested' class='arrest btn btn-xs btn-theme01'>".$lang['arrested'].'</button></h4>'; |
|
180 | + } |
|
181 | 181 | |
182 | 182 | if ($player->blacklist == 0) { |
183 | 183 | echo "<h4><button type='button' id='blacklist' class='arrest btn btn-xs btn-success'>".$lang['not'].' '.$lang['blacklisted'].'</button></h4>'; |
@@ -272,9 +272,9 @@ discard block |
||
272 | 272 | </ul> |
273 | 273 | </li> |
274 | 274 | <?php |
275 | - if ($_SESSION['permissions']['edit']['houses']) { |
|
276 | - echo '<li><a href="#house" data-toggle="tab">'.$lang['houses'].'</a></li>'; |
|
277 | - } |
|
275 | + if ($_SESSION['permissions']['edit']['houses']) { |
|
276 | + echo '<li><a href="#house" data-toggle="tab">'.$lang['houses'].'</a></li>'; |
|
277 | + } |
|
278 | 278 | if ($_SESSION['permissions']['edit']['vehicles']) { |
279 | 279 | echo '<li><a href="#veh" data-toggle="tab">'.$lang['vehicles'].'</a></li>'; |
280 | 280 | } |
@@ -291,57 +291,57 @@ discard block |
||
291 | 291 | ?> |
292 | 292 | <div class="tab-pane fade in active well" id="civ_lic"> |
293 | 293 | <?php |
294 | - if ($player->civ_licenses !== '"[]"' && $player->civ_licenses !== '') { |
|
295 | - echo '<h4 style="centred">'.$lang['civil'].' '.$lang['licenses'].'</h4>'; |
|
296 | - $return = stripArray($player->civ_licenses, 0); |
|
297 | - foreach ($return as $value) { |
|
298 | - if (strpos($value, '1') == true) { |
|
299 | - $name = before(',', $value); |
|
300 | - echo "<button type='button' id=".$name." class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>".licName($name, $license).'</button> '; |
|
301 | - } else { |
|
302 | - $name = before(',', $value); |
|
303 | - echo "<button type='button' id=".$name." class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>".licName($name, $license).'</button> '; |
|
304 | - } |
|
305 | - } |
|
306 | - } else { |
|
307 | - echo '<h4>'.errorMessage(371, $lang).'</h4>'; |
|
308 | - } ?> |
|
294 | + if ($player->civ_licenses !== '"[]"' && $player->civ_licenses !== '') { |
|
295 | + echo '<h4 style="centred">'.$lang['civil'].' '.$lang['licenses'].'</h4>'; |
|
296 | + $return = stripArray($player->civ_licenses, 0); |
|
297 | + foreach ($return as $value) { |
|
298 | + if (strpos($value, '1') == true) { |
|
299 | + $name = before(',', $value); |
|
300 | + echo "<button type='button' id=".$name." class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>".licName($name, $license).'</button> '; |
|
301 | + } else { |
|
302 | + $name = before(',', $value); |
|
303 | + echo "<button type='button' id=".$name." class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>".licName($name, $license).'</button> '; |
|
304 | + } |
|
305 | + } |
|
306 | + } else { |
|
307 | + echo '<h4>'.errorMessage(371, $lang).'</h4>'; |
|
308 | + } ?> |
|
309 | 309 | </div> |
310 | 310 | <div class="tab-pane well fade" id="medic_lic"> |
311 | 311 | <?php |
312 | - if ($player->med_licenses !== '"[]"' && $player->med_licenses !== '') { |
|
313 | - echo '<h4 style="centred">'.$lang['medic'].' '.$lang['licenses'].'</h4>'; |
|
314 | - $return = stripArray($player->med_licenses, 0); |
|
315 | - foreach ($return as $value) { |
|
316 | - if (strpos($value, '1') == true) { |
|
317 | - $name = before(',', $value); |
|
318 | - echo "<button type='button' id=".$name." class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>".licName($name, $license).'</button> '; |
|
319 | - } else { |
|
320 | - $name = before(',', $value); |
|
321 | - echo "<button type='button' id=".$name." class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>".licName($name, $license).'</button> '; |
|
322 | - } |
|
323 | - } |
|
324 | - } else { |
|
325 | - echo '<h4>'.errorMessage(372, $lang).'</h4>'; |
|
326 | - } ?> |
|
312 | + if ($player->med_licenses !== '"[]"' && $player->med_licenses !== '') { |
|
313 | + echo '<h4 style="centred">'.$lang['medic'].' '.$lang['licenses'].'</h4>'; |
|
314 | + $return = stripArray($player->med_licenses, 0); |
|
315 | + foreach ($return as $value) { |
|
316 | + if (strpos($value, '1') == true) { |
|
317 | + $name = before(',', $value); |
|
318 | + echo "<button type='button' id=".$name." class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>".licName($name, $license).'</button> '; |
|
319 | + } else { |
|
320 | + $name = before(',', $value); |
|
321 | + echo "<button type='button' id=".$name." class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>".licName($name, $license).'</button> '; |
|
322 | + } |
|
323 | + } |
|
324 | + } else { |
|
325 | + echo '<h4>'.errorMessage(372, $lang).'</h4>'; |
|
326 | + } ?> |
|
327 | 327 | </div> |
328 | 328 | <div class="tab-pane well fade" id="police_lic"> |
329 | 329 | <?php |
330 | - if ($player->cop_licenses !== '"[]"' && $player->cop_licenses !== '') { |
|
331 | - $return = stripArray($player->cop_licenses, 0); |
|
332 | - echo '<h4 style="centred">'.$lang['cop'].' '.$lang['licenses'].'</h4>'; |
|
333 | - foreach ($return as $value) { |
|
334 | - if (strpos($value, '1') == true) { |
|
335 | - $name = before(',', $value); |
|
336 | - echo "<button type='button' id=".$name." class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>".licName($name, $license).'</button> '; |
|
337 | - } else { |
|
338 | - $name = before(',', $value); |
|
339 | - echo "<button type='button' id=".$name." class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>".licName($name, $license).'</button> '; |
|
340 | - } |
|
341 | - } |
|
342 | - } else { |
|
343 | - echo '<h4>'.errorMessage(373, $lang).'</h4>'; |
|
344 | - } ?> |
|
330 | + if ($player->cop_licenses !== '"[]"' && $player->cop_licenses !== '') { |
|
331 | + $return = stripArray($player->cop_licenses, 0); |
|
332 | + echo '<h4 style="centred">'.$lang['cop'].' '.$lang['licenses'].'</h4>'; |
|
333 | + foreach ($return as $value) { |
|
334 | + if (strpos($value, '1') == true) { |
|
335 | + $name = before(',', $value); |
|
336 | + echo "<button type='button' id=".$name." class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>".licName($name, $license).'</button> '; |
|
337 | + } else { |
|
338 | + $name = before(',', $value); |
|
339 | + echo "<button type='button' id=".$name." class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>".licName($name, $license).'</button> '; |
|
340 | + } |
|
341 | + } |
|
342 | + } else { |
|
343 | + echo '<h4>'.errorMessage(373, $lang).'</h4>'; |
|
344 | + } ?> |
|
345 | 345 | </div> |
346 | 346 | <?php |
347 | 347 | } |
@@ -349,43 +349,43 @@ discard block |
||
349 | 349 | ?> |
350 | 350 | <div class="tab-pane fade well" id="civ_inv"> |
351 | 351 | <?php |
352 | - if ($player->civ_gear !== '"[]"' && $player->civ_gear !== '') { |
|
353 | - echo '<h4 style="centred">'.$lang['civil'].' '.$lang['gear'].'</h4>'; |
|
354 | - echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='civ_gear' name='civ_gear'>".$player->civ_gear.'</textarea><br>'; |
|
355 | - |
|
356 | - if ($_SESSION['permissions']['edit']['inventory']) { |
|
357 | - echo '<a data-toggle="modal" href="#edit_civ_inv" class="btn btn-primary btn-xs" style="float: right;">'; |
|
358 | - echo '<i class="fa fa-pencil"></i></a>'; |
|
359 | - } |
|
360 | - } else { |
|
361 | - echo '<h4>'.errorMessage(381, $lang).'</h4>'; |
|
362 | - } ?> |
|
352 | + if ($player->civ_gear !== '"[]"' && $player->civ_gear !== '') { |
|
353 | + echo '<h4 style="centred">'.$lang['civil'].' '.$lang['gear'].'</h4>'; |
|
354 | + echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='civ_gear' name='civ_gear'>".$player->civ_gear.'</textarea><br>'; |
|
355 | + |
|
356 | + if ($_SESSION['permissions']['edit']['inventory']) { |
|
357 | + echo '<a data-toggle="modal" href="#edit_civ_inv" class="btn btn-primary btn-xs" style="float: right;">'; |
|
358 | + echo '<i class="fa fa-pencil"></i></a>'; |
|
359 | + } |
|
360 | + } else { |
|
361 | + echo '<h4>'.errorMessage(381, $lang).'</h4>'; |
|
362 | + } ?> |
|
363 | 363 | </div> |
364 | 364 | <div class="tab-pane fade well" id="police_inv"> |
365 | 365 | <?php |
366 | - if ($player->cop_gear !== '"[]"' && $player->cop_gear !== '') { |
|
367 | - echo '<h4 style="centred">'.$lang['cop'].' '.$lang['gear'].'</h4>'; |
|
368 | - echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='cop_gear' name='cop_gear'>".$player->cop_gear.'</textarea><br>'; |
|
369 | - if ($_SESSION['permissions']['edit']['inventory']) { |
|
370 | - echo '<a data-toggle="modal" href="#edit_cop_inv" class="btn btn-primary btn-xs" style="float: right;">'; |
|
371 | - echo '<i class="fa fa-pencil"></i></a>'; |
|
372 | - } |
|
373 | - } else { |
|
374 | - echo '<h4>'.errorMessage(383, $lang).'</h4>'; |
|
375 | - } ?> |
|
366 | + if ($player->cop_gear !== '"[]"' && $player->cop_gear !== '') { |
|
367 | + echo '<h4 style="centred">'.$lang['cop'].' '.$lang['gear'].'</h4>'; |
|
368 | + echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='cop_gear' name='cop_gear'>".$player->cop_gear.'</textarea><br>'; |
|
369 | + if ($_SESSION['permissions']['edit']['inventory']) { |
|
370 | + echo '<a data-toggle="modal" href="#edit_cop_inv" class="btn btn-primary btn-xs" style="float: right;">'; |
|
371 | + echo '<i class="fa fa-pencil"></i></a>'; |
|
372 | + } |
|
373 | + } else { |
|
374 | + echo '<h4>'.errorMessage(383, $lang).'</h4>'; |
|
375 | + } ?> |
|
376 | 376 | </div> |
377 | 377 | <div class="tab-pane fade well" id="medic_inv"> |
378 | 378 | <?php |
379 | - if ($player->med_gear !== '"[]"' && $player->med_gear !== '') { |
|
380 | - echo '<h4 style="centred">'.$lang['medic'].' '.$lang['gear'].'</h4>'; |
|
381 | - echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='med_gear' name='med_gear'>".$player->med_gear.'</textarea><br>'; |
|
382 | - if ($_SESSION['permissions']['edit']['inventory']) { |
|
383 | - echo '<a data-toggle="modal" href="#edit_med_inv" class="btn btn-primary btn-xs" style="float: right;">'; |
|
384 | - echo '<i class="fa fa-pencil"></i></a>'; |
|
385 | - } |
|
386 | - } else { |
|
387 | - echo '<h4>'.errorMessage(382, $lang).'</h4>'; |
|
388 | - } ?> |
|
379 | + if ($player->med_gear !== '"[]"' && $player->med_gear !== '') { |
|
380 | + echo '<h4 style="centred">'.$lang['medic'].' '.$lang['gear'].'</h4>'; |
|
381 | + echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='med_gear' name='med_gear'>".$player->med_gear.'</textarea><br>'; |
|
382 | + if ($_SESSION['permissions']['edit']['inventory']) { |
|
383 | + echo '<a data-toggle="modal" href="#edit_med_inv" class="btn btn-primary btn-xs" style="float: right;">'; |
|
384 | + echo '<i class="fa fa-pencil"></i></a>'; |
|
385 | + } |
|
386 | + } else { |
|
387 | + echo '<h4>'.errorMessage(382, $lang).'</h4>'; |
|
388 | + } ?> |
|
389 | 389 | </div> |
390 | 390 | <?php |
391 | 391 | } |
@@ -727,16 +727,16 @@ discard block |
||
727 | 727 | echo '<h4>'.$lang['cop'].': '; |
728 | 728 | echo "<select id='player_coplvl' name='player_coplvl'>"; |
729 | 729 | for ($lvl = 0; |
730 | - $lvl <= $settings['maxLevels']['cop']; |
|
731 | - ++$lvl) { |
|
730 | + $lvl <= $settings['maxLevels']['cop']; |
|
731 | + ++$lvl) { |
|
732 | 732 | echo '<option value="'.$lvl.'"'.select($lvl, $player->coplevel).'>'.$lvl.'</option>'; |
733 | 733 | } |
734 | 734 | echo '</select>'; |
735 | 735 | echo '<h4>'.$lang['medic'].': '; |
736 | 736 | echo "<select id='player_medlvl' name='player_medlvl'>"; |
737 | 737 | for ($lvl = 0; |
738 | - $lvl <= $settings['maxLevels']['medic']; |
|
739 | - ++$lvl) { |
|
738 | + $lvl <= $settings['maxLevels']['medic']; |
|
739 | + ++$lvl) { |
|
740 | 740 | echo '<option value="'.$lvl.'"'.select($lvl, $player->mediclevel).'>'.$lvl.'</option>'; |
741 | 741 | } |
742 | 742 | echo '</select>'; |
@@ -745,16 +745,16 @@ discard block |
||
745 | 745 | echo '<h4>'.$lang['admin'].': '; |
746 | 746 | echo "<select id='player_adminlvl' name='player_adminlvl'>"; |
747 | 747 | for ($lvl = 0; |
748 | - $lvl <= $settings['maxLevels']['admin']; |
|
749 | - ++$lvl) { |
|
748 | + $lvl <= $settings['maxLevels']['admin']; |
|
749 | + ++$lvl) { |
|
750 | 750 | echo '<option value="'.$lvl.'"'.select($lvl, $player->adminlevel).'>'.$lvl.'</option>'; |
751 | 751 | } |
752 | 752 | echo '</select>'; |
753 | 753 | echo '<h4>'.$lang['donator'].': '; |
754 | 754 | echo "<select id='player_donlvl' name='player_donlvl'>"; |
755 | 755 | for ($lvl = 0; |
756 | - $lvl <= $settings['maxLevels']['donator']; |
|
757 | - ++$lvl) { |
|
756 | + $lvl <= $settings['maxLevels']['donator']; |
|
757 | + ++$lvl) { |
|
758 | 758 | echo '<option value="'.$lvl.'"'.select($lvl, $player->$settings['donorFormat']).'>'.$lvl.'</option>'; |
759 | 759 | } |
760 | 760 | echo '</select>'; |