@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | $user_password_hash = password_hash($user_password, PASSWORD_DEFAULT); |
96 | 96 | |
97 | 97 | // check if user or email address already exists |
98 | - $sql = "SELECT * FROM `users` WHERE `user_name` = '" . $user_name . "' OR `user_email = '" . $user_email . "';"; |
|
98 | + $sql = "SELECT * FROM `users` WHERE `user_name` = '".$user_name."' OR `user_email = '".$user_email."';"; |
|
99 | 99 | $query_check_user_name = $this->db_connection->query($sql); |
100 | 100 | |
101 | 101 | if ($query_check_user_name->num_rows == 1) { |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | |
109 | 109 | // write new user's data into database |
110 | 110 | $sql = "INSERT INTO `users` (`user_name`, `user_password_hash`, `user_email`, `playerid`, `user_level`, `permissions`, `user_profile`) VALUES |
111 | - ('" . $user_name . "', '" . $user_password_hash . "', '" . $user_email . "', '" . $_SESSION['playerid'] . "', '1', '" . $userPerms . "', '1');"; |
|
111 | + ('" . $user_name."', '".$user_password_hash."', '".$user_email."', '".$_SESSION['playerid']."', '1', '".$userPerms."', '1');"; |
|
112 | 112 | |
113 | 113 | $query_new_user_insert = $this->db_connection->query($sql); |
114 | 114 |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | case 'email': |
14 | 14 | if (isset($_POST['user_email'])) { |
15 | 15 | $email = $_POST['user_email']; |
16 | - $sql = "SELECT `user_id` FROM `users` WHERE `user_email` = '" . $email . "';"; |
|
16 | + $sql = "SELECT `user_id` FROM `users` WHERE `user_email` = '".$email."';"; |
|
17 | 17 | $result_of_query = $db_connection->query($sql); |
18 | 18 | if (mysqli_num_rows($result_of_query) == 1) { |
19 | 19 | $isAvailable = false; |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | case 'username': |
28 | 28 | if (isset($_POST['user_name'])) { |
29 | 29 | $username = $_POST['user_name']; |
30 | - $sql = "SELECT `user_id` FROM `users` WHERE `user_name` = '" . $username . "';"; |
|
30 | + $sql = "SELECT `user_id` FROM `users` WHERE `user_name` = '".$username."';"; |
|
31 | 31 | $result_of_query = $db_connection->query($sql); |
32 | 32 | if (mysqli_num_rows($result_of_query) == 1) { |
33 | 33 | $isAvailable = false; |
@@ -12,7 +12,7 @@ |
||
12 | 12 | switch ($_POST['type']) { |
13 | 13 | case 'username': |
14 | 14 | $username = clean($_POST['server_name'], 'string'); |
15 | - $sql = "SELECT `name` FROM `servers` WHERE `name` = '" . $username . "'"; |
|
15 | + $sql = "SELECT `name` FROM `servers` WHERE `name` = '".$username."'"; |
|
16 | 16 | $result_of_query = $db_connection->query($sql); |
17 | 17 | if (mysqli_num_rows($result_of_query) == 1) { |
18 | 18 | $isAvailable = false; |
@@ -8,7 +8,7 @@ |
||
8 | 8 | if (isset($_POST['current_password'])) { |
9 | 9 | $db_connection = masterConnect(); |
10 | 10 | $isAvailable = false; |
11 | - $sql = "SELECT `user_password_hash` FROM `users` WHERE `user_name` = '" . $_SESSION['user_name'] . "' "; |
|
11 | + $sql = "SELECT `user_password_hash` FROM `users` WHERE `user_name` = '".$_SESSION['user_name']."' "; |
|
12 | 12 | $user = $db_connection->query($sql)->fetch_object(); |
13 | 13 | if (password_verify($_POST['current_password'], $user->user_password_hash)) { |
14 | 14 | $isAvailable = true; |
@@ -3,31 +3,31 @@ |
||
3 | 3 | session_set_cookie_params(1209600); |
4 | 4 | session_start(); |
5 | 5 | |
6 | -include_once( __DIR__ . '/../config/english.php'); |
|
6 | +include_once(__DIR__.'/../config/english.php'); |
|
7 | 7 | |
8 | 8 | if (isset($_SESSION['permissions']['edit']['licences'])) { |
9 | 9 | if ($_SESSION['permissions']['edit']['licences'] && isset($_POST['player']) && isset($_POST['id'])) { |
10 | - require_once( __DIR__ . '/../gfunctions.php'); |
|
11 | - require_once( __DIR__ . '/../config/license.php'); |
|
12 | - $settings = require( __DIR__ . '/../config/settings.php'); |
|
10 | + require_once(__DIR__.'/../gfunctions.php'); |
|
11 | + require_once(__DIR__.'/../config/license.php'); |
|
12 | + $settings = require(__DIR__.'/../config/settings.php'); |
|
13 | 13 | if (isset($_SESSION['dbid'])) { |
14 | 14 | $db_link = serverConnect($_SESSION['dbid']); |
15 | 15 | |
16 | 16 | $change = explode("_", $_POST['id']); |
17 | - $col = $change['1'] . "_licenses"; |
|
18 | - $sql = "SELECT `" . $col . "` FROM `players` WHERE `uid` = '" . $_POST['player'] . "';"; //todo: innerjoin |
|
17 | + $col = $change['1']."_licenses"; |
|
18 | + $sql = "SELECT `".$col."` FROM `players` WHERE `uid` = '".$_POST['player']."';"; //todo: innerjoin |
|
19 | 19 | $result = $db_link->query($sql); |
20 | 20 | if ($result->num_rows > 0) { |
21 | 21 | $lic = $result->fetch_object()->$col; |
22 | 22 | $num = strpos($lic, $change['2']) + strlen($change['2']) + 2; |
23 | 23 | if ($lic[$num] == '1') { |
24 | 24 | $lic[$num] = '0'; |
25 | - logAction($_SESSION['user_name'], $lang['removed'] . ' ' . uIDname($_POST['player'], $db_link) . ' ' . $lang['licenses'] . ' (has removed ' . licName($_POST['id'], $license) . ')', 2); |
|
25 | + logAction($_SESSION['user_name'], $lang['removed'].' '.uIDname($_POST['player'], $db_link).' '.$lang['licenses'].' (has removed '.licName($_POST['id'], $license).')', 2); |
|
26 | 26 | } elseif ($lic[$num] == '0') { |
27 | 27 | $lic[$num] = '1'; |
28 | - logAction($_SESSION['user_name'], $lang['added'] . ' ' . uIDname($_POST['player'], $db_link) . ' ' . $lang['licenses'] . ' (has added ' . licName($_POST['id'], $license) . ')', 2); |
|
28 | + logAction($_SESSION['user_name'], $lang['added'].' '.uIDname($_POST['player'], $db_link).' '.$lang['licenses'].' (has added '.licName($_POST['id'], $license).')', 2); |
|
29 | 29 | } |
30 | - $sql = "UPDATE `players` SET `" . $col . "`='$lic' WHERE `uid` = '" . $_POST['player'] . "';"; |
|
30 | + $sql = "UPDATE `players` SET `".$col."`='$lic' WHERE `uid` = '".$_POST['player']."';"; |
|
31 | 31 | $db_link->query($sql); |
32 | 32 | } |
33 | 33 | } |
@@ -11,26 +11,26 @@ |
||
11 | 11 | $db_link = serverConnect($_SESSION['dbid']); |
12 | 12 | |
13 | 13 | if ($_POST['id'] == 'arrested') { |
14 | - $sql = "SELECT `arrested` FROM `players` WHERE `uid` = '" . $_POST['player'] . "';"; |
|
14 | + $sql = "SELECT `arrested` FROM `players` WHERE `uid` = '".$_POST['player']."';"; |
|
15 | 15 | $result = $db_link->query($sql); |
16 | 16 | if ($result->num_rows > 0) { |
17 | 17 | $switch = $result->fetch_object(); |
18 | 18 | if ($switch->arrested == '1') { |
19 | - $sql = "UPDATE `players` SET `arrested`='0' WHERE `uid` = '" . $_POST['player'] . "';"; |
|
19 | + $sql = "UPDATE `players` SET `arrested`='0' WHERE `uid` = '".$_POST['player']."';"; |
|
20 | 20 | } elseif ($switch->arrested == '0') { |
21 | - $sql = "UPDATE `players` SET `arrested`='1' WHERE `uid` = '" . $_POST['player'] . "';"; |
|
21 | + $sql = "UPDATE `players` SET `arrested`='1' WHERE `uid` = '".$_POST['player']."';"; |
|
22 | 22 | } |
23 | 23 | $db_link->query($sql); |
24 | 24 | } |
25 | 25 | } elseif ($_POST['id'] == 'blacklist') { |
26 | - $sql = "SELECT `blacklist` FROM `players` WHERE `uid` = '" . $_POST['player'] . "';"; |
|
26 | + $sql = "SELECT `blacklist` FROM `players` WHERE `uid` = '".$_POST['player']."';"; |
|
27 | 27 | $result = $db_link->query($sql); |
28 | 28 | if ($result->num_rows > 0) { |
29 | 29 | $switch = $result->fetch_object(); |
30 | 30 | if ($switch->blacklist == '1') { |
31 | - $sql = "UPDATE `players` SET `blacklist`='0' WHERE `uid` = '" . $_POST['player'] . "';"; |
|
31 | + $sql = "UPDATE `players` SET `blacklist`='0' WHERE `uid` = '".$_POST['player']."';"; |
|
32 | 32 | } elseif ($switch->blacklist == '0') { |
33 | - $sql = "UPDATE `players` SET `blacklist`='1' WHERE `uid` = '" . $_POST['player'] . "';"; |
|
33 | + $sql = "UPDATE `players` SET `blacklist`='1' WHERE `uid` = '".$_POST['player']."';"; |
|
34 | 34 | } |
35 | 35 | $db_link->query($sql); |
36 | 36 | } |
@@ -11,24 +11,24 @@ |
||
11 | 11 | if (isset($_SESSION['dbid'])) { |
12 | 12 | $db_link = serverConnect($_SESSION['dbid']); |
13 | 13 | |
14 | - $sql = "SELECT `active` FROM `gangs` WHERE `id` = '" . $_POST['gang'] . "';"; |
|
14 | + $sql = "SELECT `active` FROM `gangs` WHERE `id` = '".$_POST['gang']."';"; |
|
15 | 15 | $result = $db_link->query($sql); |
16 | 16 | if ($result->num_rows > 0) { |
17 | 17 | $active = $result->fetch_object(); |
18 | 18 | if ($active == '1') { |
19 | 19 | $active = '0'; |
20 | 20 | if ($settings['logging']) { |
21 | - logAction($_SESSION['user_name'], $lang['edited'] . ' ' . uIDname($_POST['player'], $db_link) . ' ' . $lang['gang'] . ' ' . $lang['deactive'], 1); |
|
21 | + logAction($_SESSION['user_name'], $lang['edited'].' '.uIDname($_POST['player'], $db_link).' '.$lang['gang'].' '.$lang['deactive'], 1); |
|
22 | 22 | } |
23 | 23 | } elseif ($active == '0') { |
24 | 24 | $active = '1'; |
25 | 25 | if ($settings['logging']) { |
26 | - logAction($_SESSION['user_name'], $lang['edited'] . ' ' . uIDname($_POST['player'], $db_link) . ' ' . $lang['gang'] . ' ' . $lang['active'], 1); |
|
26 | + logAction($_SESSION['user_name'], $lang['edited'].' '.uIDname($_POST['player'], $db_link).' '.$lang['gang'].' '.$lang['active'], 1); |
|
27 | 27 | } |
28 | 28 | } else { |
29 | 29 | $active = '0'; |
30 | 30 | } |
31 | - $sql = "UPDATE `gangs` SET `active`='$active' WHERE `id` = '" . $_POST['gang'] . "';"; |
|
31 | + $sql = "UPDATE `gangs` SET `active`='$active' WHERE `id` = '".$_POST['gang']."';"; |
|
32 | 32 | $db_link->query($sql); |
33 | 33 | } |
34 | 34 | } |
@@ -286,6 +286,9 @@ |
||
286 | 286 | return substr(str_shuffle('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'), 0, $length); |
287 | 287 | } |
288 | 288 | |
289 | +/** |
|
290 | + * @param integer $type |
|
291 | + */ |
|
289 | 292 | function stripArray($input, $type) |
290 | 293 | { |
291 | 294 | switch ($type) { |
@@ -174,12 +174,12 @@ discard block |
||
174 | 174 | echo "<br><div class='row'><div class='col-lg-12'>"; |
175 | 175 | echo "<div class='alert alert-danger alert-dismissable'>"; |
176 | 176 | echo "<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>×</button>"; |
177 | - echo "<i class='fa fa-info-circle'></i> " . $text . "</div></div></div>"; |
|
177 | + echo "<i class='fa fa-info-circle'></i> ".$text."</div></div></div>"; |
|
178 | 178 | } |
179 | 179 | |
180 | 180 | function error($errno, $errstr, $errfile, $errline) |
181 | 181 | { |
182 | - echo '<h4><b>PHP ERROR ' . $errno . '</b> ' . $errstr . ' - ' . $errfile . ':' . $errline . '</h4>'; |
|
182 | + echo '<h4><b>PHP ERROR '.$errno.'</b> '.$errstr.' - '.$errfile.':'.$errline.'</h4>'; |
|
183 | 183 | } |
184 | 184 | |
185 | 185 | /** |
@@ -226,19 +226,19 @@ discard block |
||
226 | 226 | case 37: |
227 | 227 | return $lang['noLic']; //No License |
228 | 228 | case 371: |
229 | - return $lang['no'] . ' ' . $lang['civil'] . ' ' . $lang['licenses']; //No Civillian Licenses |
|
229 | + return $lang['no'].' '.$lang['civil'].' '.$lang['licenses']; //No Civillian Licenses |
|
230 | 230 | case 372: |
231 | - return $lang['no'] . ' ' . $lang['medic'] . ' ' . $lang['licenses']; //No Medic Licenses |
|
231 | + return $lang['no'].' '.$lang['medic'].' '.$lang['licenses']; //No Medic Licenses |
|
232 | 232 | case 373: |
233 | - return $lang['no'] . ' ' . $lang['police'] . ' ' . $lang['licenses']; //No Police Licenses |
|
233 | + return $lang['no'].' '.$lang['police'].' '.$lang['licenses']; //No Police Licenses |
|
234 | 234 | case 38: |
235 | - return $lang['no'] . ' ' . $lang['gear']; //No License |
|
235 | + return $lang['no'].' '.$lang['gear']; //No License |
|
236 | 236 | case 381: |
237 | - return $lang['no'] . ' ' . $lang['civil'] . ' ' . $lang['gear']; //No Civillian Licenses |
|
237 | + return $lang['no'].' '.$lang['civil'].' '.$lang['gear']; //No Civillian Licenses |
|
238 | 238 | case 382: |
239 | - return $lang['no'] . ' ' . $lang['medic'] . ' ' . $lang['gear']; //No Medic Licenses |
|
239 | + return $lang['no'].' '.$lang['medic'].' '.$lang['gear']; //No Medic Licenses |
|
240 | 240 | case 383: |
241 | - return $lang['no'] . ' ' . $lang['police'] . ' ' . $lang['gear']; //No Police Licenses |
|
241 | + return $lang['no'].' '.$lang['police'].' '.$lang['gear']; //No Police Licenses |
|
242 | 242 | } |
243 | 243 | } |
244 | 244 | |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | $max = ceil($length / 40); |
248 | 248 | $random = ''; |
249 | 249 | for ($i = 0; $i < $max; $i++) { |
250 | - $random .= sha1(microtime(true) . mt_rand(10000, 90000)); |
|
250 | + $random .= sha1(microtime(true).mt_rand(10000, 90000)); |
|
251 | 251 | } |
252 | 252 | return substr($random, 0, $length); |
253 | 253 | } |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | { |
257 | 257 | $settings = require('config/settings.php'); |
258 | 258 | if (!empty($settings['steamAPI'])) { |
259 | - $api = "http://api.steampowered.com/ISteamUser/GetPlayerBans/v1/?key=" . $settings['steamAPI'] . "&steamids=" . $PID; |
|
259 | + $api = "http://api.steampowered.com/ISteamUser/GetPlayerBans/v1/?key=".$settings['steamAPI']."&steamids=".$PID; |
|
260 | 260 | $bans = json_decode(file_get_contents($api), true); |
261 | 261 | if ($bans['players']['0']['VACBanned']) { |
262 | 262 | return '<h4><span class="label label-danger" style="margin-left:3px; line-height:2;">VAC BANNED</span></h4>'; |
@@ -356,14 +356,14 @@ discard block |
||
356 | 356 | } |
357 | 357 | } |
358 | 358 | |
359 | -function getGravatar($email, $s = 80, $d = 'mm', $r = 'x', $img = false, $atts = array() ) { |
|
359 | +function getGravatar($email, $s = 80, $d = 'mm', $r = 'x', $img = false, $atts = array()) { |
|
360 | 360 | $url = 'https://www.gravatar.com/avatar/'; |
361 | - $url .= md5( strtolower( trim( $email ) ) ); |
|
361 | + $url .= md5(strtolower(trim($email))); |
|
362 | 362 | $url .= "?s=$s&d=$d&r=$r"; |
363 | - if ( $img ) { |
|
364 | - $url = '<img src="' . $url . '"'; |
|
365 | - foreach ( $atts as $key => $val ) |
|
366 | - $url .= ' ' . $key . '="' . $val . '"'; |
|
363 | + if ($img) { |
|
364 | + $url = '<img src="'.$url.'"'; |
|
365 | + foreach ($atts as $key => $val) |
|
366 | + $url .= ' '.$key.'="'.$val.'"'; |
|
367 | 367 | $url .= ' />'; |
368 | 368 | } |
369 | 369 | return $url; |
@@ -362,8 +362,9 @@ |
||
362 | 362 | $url .= "?s=$s&d=$d&r=$r"; |
363 | 363 | if ( $img ) { |
364 | 364 | $url = '<img src="' . $url . '"'; |
365 | - foreach ( $atts as $key => $val ) |
|
366 | - $url .= ' ' . $key . '="' . $val . '"'; |
|
365 | + foreach ( $atts as $key => $val ) { |
|
366 | + $url .= ' ' . $key . '="' . $val . '"'; |
|
367 | + } |
|
367 | 368 | $url .= ' />'; |
368 | 369 | } |
369 | 370 | return $url; |
@@ -131,59 +131,59 @@ discard block |
||
131 | 131 | |
132 | 132 | <div class="panel-body"> |
133 | 133 | <?php |
134 | - $alias = str_replace('"[`', "", $player->aliases); |
|
135 | - $alias = str_replace('`]"', "", $alias); |
|
136 | - |
|
137 | - echo '<center><img alt="' . $alias . '" src="' . $settings['url'] . skinImage($player->civ_gear) . '">'; |
|
138 | - echo "<h5 style='word-wrap: break-word; '> <a href='http://playerindex.de/check.aspx?id=" . $pGID . "' class='btn btn-xs btn-warning' target='_blank' role='button'>Check Playerindex Ban </a></h5>"; |
|
139 | - if ($_SESSION['permissions']['view']['steam'] && $settings['vacTest']) { |
|
140 | - echo '<div id="vacBan"></div>'; |
|
141 | - } |
|
142 | - echo "<h4>" . $lang['aliases'] . ": " . $alias . "</h4>"; |
|
143 | - echo "<h4>" . $lang['uid'] . ": " . $player->uid . "</h4>"; |
|
144 | - echo "<h4>" . $lang['playerID'] . ": " . $player->playerid . "</h4>"; |
|
145 | - echo "<h4 style='word-wrap: break-word;'>" . $lang['GUID'] . ": " . $pGID . "</h4>"; |
|
146 | - ?> |
|
134 | + $alias = str_replace('"[`', "", $player->aliases); |
|
135 | + $alias = str_replace('`]"', "", $alias); |
|
136 | + |
|
137 | + echo '<center><img alt="' . $alias . '" src="' . $settings['url'] . skinImage($player->civ_gear) . '">'; |
|
138 | + echo "<h5 style='word-wrap: break-word; '> <a href='http://playerindex.de/check.aspx?id=" . $pGID . "' class='btn btn-xs btn-warning' target='_blank' role='button'>Check Playerindex Ban </a></h5>"; |
|
139 | + if ($_SESSION['permissions']['view']['steam'] && $settings['vacTest']) { |
|
140 | + echo '<div id="vacBan"></div>'; |
|
141 | + } |
|
142 | + echo "<h4>" . $lang['aliases'] . ": " . $alias . "</h4>"; |
|
143 | + echo "<h4>" . $lang['uid'] . ": " . $player->uid . "</h4>"; |
|
144 | + echo "<h4>" . $lang['playerID'] . ": " . $player->playerid . "</h4>"; |
|
145 | + echo "<h4 style='word-wrap: break-word;'>" . $lang['GUID'] . ": " . $pGID . "</h4>"; |
|
146 | + ?> |
|
147 | 147 | <i class="fa fa-2x fa-money"></i> |
148 | 148 | <h4><?php echo $lang['cash'] . ": " . $player->cash; ?> </h4> |
149 | 149 | <i class="fa fa-2x fa-bank"></i> |
150 | 150 | <h4> <?php echo $lang['bank'] . ": " . $player->bankacc; ?> </h4> |
151 | 151 | <?php |
152 | - if ($player->arrested == 0) { |
|
153 | - echo "<h4><button type='button' id='arrested' class='arrest btn btn-xs btn-success'>" . $lang["not"] . " " . $lang["arrested"] . "</button></h4>"; |
|
154 | - } else { |
|
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 . "'"; |
|
166 | - $result_of_query = $db_link->query($sql); |
|
167 | - if ($result_of_query->num_rows > 0) { |
|
168 | - while ($row = mysqli_fetch_assoc($result_of_query)) { |
|
169 | - if ($row["active"] == 1) { |
|
170 | - echo "<h4><a href='" . $settings['url'] . "editwanted/" . $player->playerid . "' class='label label-danger'>" . $lang["wanted"] . "</span></h4>"; |
|
171 | - } else { |
|
172 | - echo "<h4><span class='label label-success'>" . $lang["not"] . " " . $lang["wanted"] . "</span></h4>"; |
|
173 | - } |
|
174 | - } |
|
175 | - } else { |
|
176 | - echo "<h4><span class='label label-success'>" . $lang["not"] . " " . $lang["wanted"] . "</span></h4>"; |
|
177 | - } |
|
178 | - } |
|
179 | - |
|
180 | - if ($_SESSION['permissions']['edit']['player']) { |
|
181 | - echo '<a data-toggle="modal" href="#edit_player" class="btn btn-primary btn-xs" style="float: right;">'; |
|
182 | - echo '<i class="fa fa-pencil"></i>'; |
|
183 | - echo '</a>'; |
|
184 | - } |
|
185 | - echo "</center>"; |
|
186 | - ?> |
|
152 | + if ($player->arrested == 0) { |
|
153 | + echo "<h4><button type='button' id='arrested' class='arrest btn btn-xs btn-success'>" . $lang["not"] . " " . $lang["arrested"] . "</button></h4>"; |
|
154 | + } else { |
|
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 . "'"; |
|
166 | + $result_of_query = $db_link->query($sql); |
|
167 | + if ($result_of_query->num_rows > 0) { |
|
168 | + while ($row = mysqli_fetch_assoc($result_of_query)) { |
|
169 | + if ($row["active"] == 1) { |
|
170 | + echo "<h4><a href='" . $settings['url'] . "editwanted/" . $player->playerid . "' class='label label-danger'>" . $lang["wanted"] . "</span></h4>"; |
|
171 | + } else { |
|
172 | + echo "<h4><span class='label label-success'>" . $lang["not"] . " " . $lang["wanted"] . "</span></h4>"; |
|
173 | + } |
|
174 | + } |
|
175 | + } else { |
|
176 | + echo "<h4><span class='label label-success'>" . $lang["not"] . " " . $lang["wanted"] . "</span></h4>"; |
|
177 | + } |
|
178 | + } |
|
179 | + |
|
180 | + if ($_SESSION['permissions']['edit']['player']) { |
|
181 | + echo '<a data-toggle="modal" href="#edit_player" class="btn btn-primary btn-xs" style="float: right;">'; |
|
182 | + echo '<i class="fa fa-pencil"></i>'; |
|
183 | + echo '</a>'; |
|
184 | + } |
|
185 | + echo "</center>"; |
|
186 | + ?> |
|
187 | 187 | </div> |
188 | 188 | </div> |
189 | 189 | </div> |
@@ -249,119 +249,119 @@ discard block |
||
249 | 249 | </ul> |
250 | 250 | </li> |
251 | 251 | <?php |
252 | - if ($_SESSION['permissions']['edit']['houses']) { |
|
253 | - echo '<li><a href="#house" data-toggle="tab">' . $lang['houses'] . '</a></li>'; |
|
254 | - } |
|
255 | - if ($_SESSION['permissions']['edit']['vehicles']) { |
|
256 | - echo '<li><a href="#veh" data-toggle="tab">' . $lang['vehicles'] . '</a></li>'; |
|
257 | - } |
|
258 | - if ($_SESSION['permissions']['edit']['notes']) { |
|
259 | - echo '<li><a href="#notes" data-toggle="tab"> Notes</a></li>'; |
|
260 | - } |
|
261 | - if ($_SESSION['permissions']['view']['wanted'] && $settings['wanted']) { |
|
262 | - echo '<li><a href="#wanted" data-toggle="tab">' . $lang['wanted'] . '</a></li>'; |
|
263 | - } |
|
264 | - ?> |
|
252 | + if ($_SESSION['permissions']['edit']['houses']) { |
|
253 | + echo '<li><a href="#house" data-toggle="tab">' . $lang['houses'] . '</a></li>'; |
|
254 | + } |
|
255 | + if ($_SESSION['permissions']['edit']['vehicles']) { |
|
256 | + echo '<li><a href="#veh" data-toggle="tab">' . $lang['vehicles'] . '</a></li>'; |
|
257 | + } |
|
258 | + if ($_SESSION['permissions']['edit']['notes']) { |
|
259 | + echo '<li><a href="#notes" data-toggle="tab"> Notes</a></li>'; |
|
260 | + } |
|
261 | + if ($_SESSION['permissions']['view']['wanted'] && $settings['wanted']) { |
|
262 | + echo '<li><a href="#wanted" data-toggle="tab">' . $lang['wanted'] . '</a></li>'; |
|
263 | + } |
|
264 | + ?> |
|
265 | 265 | </ul> |
266 | 266 | <div class="panel-body"> |
267 | 267 | <div id="myTabContent" class="tab-content"> |
268 | 268 | <?php if ($_SESSION['permissions']['view']['licences'] || $player->playerid == $_SESSION['playerid']) { ?> |
269 | 269 | <div class="tab-pane fade in active well" id="civ_lic"> |
270 | 270 | <?php |
271 | - if ($player->civ_licenses !== '"[]"' && $player->civ_licenses !== '') { |
|
272 | - echo '<h4 style="centred">' . $lang['civil'] . ' ' . $lang['licenses'] . '</h4>'; |
|
273 | - $return = stripArray($player->civ_licenses, 0); |
|
274 | - foreach ($return as $value) { |
|
275 | - if (strpos($value, "1") == TRUE) { |
|
276 | - $name = before(',', $value); |
|
277 | - echo "<button type='button' id=" . $name . " class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>" . licName($name, $license) . "</button> "; |
|
278 | - } else { |
|
279 | - $name = before(',', $value); |
|
280 | - echo "<button type='button' id=" . $name . " class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>" . licName($name, $license) . "</button> "; |
|
281 | - } |
|
282 | - } |
|
283 | - } else { |
|
284 | - echo '<h4>' . errorMessage(371, $lang) . '</h4>'; |
|
285 | - } ?> |
|
271 | + if ($player->civ_licenses !== '"[]"' && $player->civ_licenses !== '') { |
|
272 | + echo '<h4 style="centred">' . $lang['civil'] . ' ' . $lang['licenses'] . '</h4>'; |
|
273 | + $return = stripArray($player->civ_licenses, 0); |
|
274 | + foreach ($return as $value) { |
|
275 | + if (strpos($value, "1") == TRUE) { |
|
276 | + $name = before(',', $value); |
|
277 | + echo "<button type='button' id=" . $name . " class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>" . licName($name, $license) . "</button> "; |
|
278 | + } else { |
|
279 | + $name = before(',', $value); |
|
280 | + echo "<button type='button' id=" . $name . " class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>" . licName($name, $license) . "</button> "; |
|
281 | + } |
|
282 | + } |
|
283 | + } else { |
|
284 | + echo '<h4>' . errorMessage(371, $lang) . '</h4>'; |
|
285 | + } ?> |
|
286 | 286 | </div> |
287 | 287 | <div class="tab-pane well fade" id="medic_lic"> |
288 | 288 | <?php |
289 | - if ($player->med_licenses !== '"[]"' && $player->med_licenses !== '') { |
|
290 | - echo '<h4 style="centred">' . $lang['medic'] . ' ' . $lang['licenses'] . '</h4>'; |
|
291 | - $return = stripArray($player->med_licenses, 0); |
|
292 | - foreach ($return as $value) { |
|
293 | - if (strpos($value, "1") == TRUE) { |
|
294 | - $name = before(',', $value); |
|
295 | - echo "<button type='button' id=" . $name . " class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>" . licName($name, $license) . "</button> "; |
|
296 | - } else { |
|
297 | - $name = before(',', $value); |
|
298 | - echo "<button type='button' id=" . $name . " class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>" . licName($name, $license) . "</button> "; |
|
299 | - } |
|
300 | - } |
|
301 | - } else { |
|
302 | - echo '<h4>' . errorMessage(372, $lang) . '</h4>'; |
|
303 | - } ?> |
|
289 | + if ($player->med_licenses !== '"[]"' && $player->med_licenses !== '') { |
|
290 | + echo '<h4 style="centred">' . $lang['medic'] . ' ' . $lang['licenses'] . '</h4>'; |
|
291 | + $return = stripArray($player->med_licenses, 0); |
|
292 | + foreach ($return as $value) { |
|
293 | + if (strpos($value, "1") == TRUE) { |
|
294 | + $name = before(',', $value); |
|
295 | + echo "<button type='button' id=" . $name . " class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>" . licName($name, $license) . "</button> "; |
|
296 | + } else { |
|
297 | + $name = before(',', $value); |
|
298 | + echo "<button type='button' id=" . $name . " class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>" . licName($name, $license) . "</button> "; |
|
299 | + } |
|
300 | + } |
|
301 | + } else { |
|
302 | + echo '<h4>' . errorMessage(372, $lang) . '</h4>'; |
|
303 | + } ?> |
|
304 | 304 | </div> |
305 | 305 | <div class="tab-pane well fade" id="police_lic"> |
306 | 306 | <?php |
307 | - if ($player->cop_licenses !== '"[]"' && $player->cop_licenses !== '') { |
|
308 | - $return = stripArray($player->cop_licenses, 0); |
|
309 | - echo '<h4 style="centred">' . $lang['cop'] . ' ' . $lang['licenses'] . '</h4>'; |
|
310 | - foreach ($return as $value) { |
|
311 | - if (strpos($value, "1") == TRUE) { |
|
312 | - $name = before(',', $value); |
|
313 | - echo "<button type='button' id=" . $name . " class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>" . licName($name, $license) . "</button> "; |
|
314 | - } else { |
|
315 | - $name = before(',', $value); |
|
316 | - echo "<button type='button' id=" . $name . " class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>" . licName($name, $license) . "</button> "; |
|
317 | - } |
|
318 | - } |
|
319 | - } else { |
|
320 | - echo '<h4>' . errorMessage(373, $lang) . '</h4>'; |
|
321 | - } |
|
322 | - ?> |
|
307 | + if ($player->cop_licenses !== '"[]"' && $player->cop_licenses !== '') { |
|
308 | + $return = stripArray($player->cop_licenses, 0); |
|
309 | + echo '<h4 style="centred">' . $lang['cop'] . ' ' . $lang['licenses'] . '</h4>'; |
|
310 | + foreach ($return as $value) { |
|
311 | + if (strpos($value, "1") == TRUE) { |
|
312 | + $name = before(',', $value); |
|
313 | + echo "<button type='button' id=" . $name . " class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>" . licName($name, $license) . "</button> "; |
|
314 | + } else { |
|
315 | + $name = before(',', $value); |
|
316 | + echo "<button type='button' id=" . $name . " class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>" . licName($name, $license) . "</button> "; |
|
317 | + } |
|
318 | + } |
|
319 | + } else { |
|
320 | + echo '<h4>' . errorMessage(373, $lang) . '</h4>'; |
|
321 | + } |
|
322 | + ?> |
|
323 | 323 | </div> |
324 | 324 | <?php } |
325 | 325 | if ($_SESSION['permissions']['edit']['inventory']) { ?> |
326 | 326 | <div class="tab-pane fade well" id="civ_inv"> |
327 | 327 | <?php |
328 | - if ($player->civ_gear !== '"[]"' && $player->civ_gear !== '') { |
|
329 | - echo '<h4 style="centred">' . $lang['civil'] . ' ' . $lang['gear'] . '</h4>'; |
|
330 | - echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='civ_gear' name='civ_gear'>" . $player->civ_gear . "</textarea><br>"; |
|
331 | - |
|
332 | - if ($_SESSION['permissions']['edit']['inventory']) { |
|
333 | - echo '<a data-toggle="modal" href="#edit_civ_inv" class="btn btn-primary btn-xs" style="float: right;">'; |
|
334 | - echo '<i class="fa fa-pencil"></i></a>'; |
|
335 | - } |
|
336 | - } else { |
|
337 | - echo '<h4>' . errorMessage(381, $lang) . '</h4>'; |
|
338 | - } ?> |
|
328 | + if ($player->civ_gear !== '"[]"' && $player->civ_gear !== '') { |
|
329 | + echo '<h4 style="centred">' . $lang['civil'] . ' ' . $lang['gear'] . '</h4>'; |
|
330 | + echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='civ_gear' name='civ_gear'>" . $player->civ_gear . "</textarea><br>"; |
|
331 | + |
|
332 | + if ($_SESSION['permissions']['edit']['inventory']) { |
|
333 | + echo '<a data-toggle="modal" href="#edit_civ_inv" class="btn btn-primary btn-xs" style="float: right;">'; |
|
334 | + echo '<i class="fa fa-pencil"></i></a>'; |
|
335 | + } |
|
336 | + } else { |
|
337 | + echo '<h4>' . errorMessage(381, $lang) . '</h4>'; |
|
338 | + } ?> |
|
339 | 339 | </div> |
340 | 340 | <div class="tab-pane fade well" id="police_inv"> |
341 | 341 | <?php |
342 | - if ($player->cop_gear !== '"[]"' && $player->cop_gear !== '') { |
|
343 | - echo '<h4 style="centred">' . $lang['cop'] . ' ' . $lang['gear'] . '</h4>'; |
|
344 | - echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='cop_gear' name='cop_gear'>" . $player->cop_gear . "</textarea><br>"; |
|
345 | - if ($_SESSION['permissions']['edit']['inventory']) { |
|
346 | - echo '<a data-toggle="modal" href="#edit_cop_inv" class="btn btn-primary btn-xs" style="float: right;">'; |
|
347 | - echo '<i class="fa fa-pencil"></i></a>'; |
|
348 | - } |
|
349 | - } else { |
|
350 | - echo '<h4>' . errorMessage(383, $lang) . '</h4>'; |
|
351 | - } ?> |
|
342 | + if ($player->cop_gear !== '"[]"' && $player->cop_gear !== '') { |
|
343 | + echo '<h4 style="centred">' . $lang['cop'] . ' ' . $lang['gear'] . '</h4>'; |
|
344 | + echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='cop_gear' name='cop_gear'>" . $player->cop_gear . "</textarea><br>"; |
|
345 | + if ($_SESSION['permissions']['edit']['inventory']) { |
|
346 | + echo '<a data-toggle="modal" href="#edit_cop_inv" class="btn btn-primary btn-xs" style="float: right;">'; |
|
347 | + echo '<i class="fa fa-pencil"></i></a>'; |
|
348 | + } |
|
349 | + } else { |
|
350 | + echo '<h4>' . errorMessage(383, $lang) . '</h4>'; |
|
351 | + } ?> |
|
352 | 352 | </div> |
353 | 353 | <div class="tab-pane fade well" id="medic_inv"> |
354 | 354 | <?php |
355 | - if ($player->med_gear !== '"[]"' && $player->med_gear !== '') { |
|
356 | - echo '<h4 style="centred">' . $lang['medic'] . ' ' . $lang['gear'] . '</h4>'; |
|
357 | - echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='med_gear' name='med_gear'>" . $player->med_gear . "</textarea><br>"; |
|
358 | - if ($_SESSION['permissions']['edit']['inventory']) { |
|
359 | - echo '<a data-toggle="modal" href="#edit_med_inv" class="btn btn-primary btn-xs" style="float: right;">'; |
|
360 | - echo '<i class="fa fa-pencil"></i></a>'; |
|
361 | - } |
|
362 | - } else { |
|
363 | - echo '<h4>' . errorMessage(382, $lang) . '</h4>'; |
|
364 | - } ?> |
|
355 | + if ($player->med_gear !== '"[]"' && $player->med_gear !== '') { |
|
356 | + echo '<h4 style="centred">' . $lang['medic'] . ' ' . $lang['gear'] . '</h4>'; |
|
357 | + echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='med_gear' name='med_gear'>" . $player->med_gear . "</textarea><br>"; |
|
358 | + if ($_SESSION['permissions']['edit']['inventory']) { |
|
359 | + echo '<a data-toggle="modal" href="#edit_med_inv" class="btn btn-primary btn-xs" style="float: right;">'; |
|
360 | + echo '<i class="fa fa-pencil"></i></a>'; |
|
361 | + } |
|
362 | + } else { |
|
363 | + echo '<h4>' . errorMessage(382, $lang) . '</h4>'; |
|
364 | + } ?> |
|
365 | 365 | </div> |
366 | 366 | <?php } |
367 | 367 | if ($_SESSION['permissions']['view']['houses'] || $player->playerid == $_SESSION['playerid']) { ?> |
@@ -677,16 +677,16 @@ discard block |
||
677 | 677 | echo "<h4>" . $lang['cop'] . ": "; |
678 | 678 | echo "<select id='player_coplvl' name='player_coplvl'>"; |
679 | 679 | for ($lvl = 0; |
680 | - $lvl <= $settings['maxLevels']['cop']; |
|
681 | - $lvl++) { |
|
680 | + $lvl <= $settings['maxLevels']['cop']; |
|
681 | + $lvl++) { |
|
682 | 682 | echo '<option value="' . $lvl . '"' . select($lvl, $player->coplevel) . '>' . $lvl . '</option>'; |
683 | 683 | } |
684 | 684 | echo "</select>"; |
685 | 685 | echo "<h4>" . $lang['medic'] . ": "; |
686 | 686 | echo "<select id='player_medlvl' name='player_medlvl'>"; |
687 | 687 | for ($lvl = 0; |
688 | - $lvl <= $settings['maxLevels']['medic']; |
|
689 | - $lvl++) { |
|
688 | + $lvl <= $settings['maxLevels']['medic']; |
|
689 | + $lvl++) { |
|
690 | 690 | echo '<option value="' . $lvl . '"' . select($lvl, $player->mediclevel) . '>' . $lvl . '</option>'; |
691 | 691 | } |
692 | 692 | echo "</select>"; |
@@ -695,16 +695,16 @@ discard block |
||
695 | 695 | echo "<h4>" . $lang['admin'] . ": "; |
696 | 696 | echo "<select id='player_adminlvl' name='player_adminlvl'>"; |
697 | 697 | for ($lvl = 0; |
698 | - $lvl <= $settings['maxLevels']['admin']; |
|
699 | - $lvl++) { |
|
698 | + $lvl <= $settings['maxLevels']['admin']; |
|
699 | + $lvl++) { |
|
700 | 700 | echo '<option value="' . $lvl . '"' . select($lvl, $player->adminlevel) . '>' . $lvl . '</option>'; |
701 | 701 | } |
702 | 702 | echo "</select>"; |
703 | 703 | echo "<h4>" . $lang['donator'] . ": "; |
704 | 704 | echo "<select id='player_donlvl' name='player_donlvl'>"; |
705 | 705 | for ($lvl = 0; |
706 | - $lvl <= $settings['maxLevels']['donator']; |
|
707 | - $lvl++) { |
|
706 | + $lvl <= $settings['maxLevels']['donator']; |
|
707 | + $lvl++) { |
|
708 | 708 | echo '<option value="' . $lvl . '"' . select($lvl, $player->$settings['donorFormat']) . '>' . $lvl . '</option>'; |
709 | 709 | } |
710 | 710 | echo "</select>"; |
@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <?php |
2 | -require_once(realpath($settings['url']) . "config/carNames.php"); |
|
3 | -require_once(realpath($settings['url']) . "config/images.php"); |
|
4 | -require_once(realpath($settings['url']) . "config/license.php"); |
|
5 | -require_once(realpath($settings['url']) . "config/crimes.php"); |
|
2 | +require_once(realpath($settings['url'])."config/carNames.php"); |
|
3 | +require_once(realpath($settings['url'])."config/images.php"); |
|
4 | +require_once(realpath($settings['url'])."config/license.php"); |
|
5 | +require_once(realpath($settings['url'])."config/crimes.php"); |
|
6 | 6 | |
7 | 7 | $db_link = serverConnect(); |
8 | 8 | |
@@ -13,24 +13,24 @@ discard block |
||
13 | 13 | $civ_gear_value = $_POST["civ_inv_value"]; |
14 | 14 | $update = "UPDATE `players` SET civ_gear = '$civ_gear_value' WHERE `uid` = '$uID';"; |
15 | 15 | $result_of_query = $db_link->query($update); |
16 | - logAction($_SESSION['user_name'], $lang['edited'] . ' ' . nameID($player->playerid, $db_link) . '(' . $player->playerid . ') ' . $lang['civ'] . ' ' . $lang['inventory'], 1); |
|
17 | - message($lang['edited'] . ' ' . $lang['civ'] . ' ' . $lang['inventory']); |
|
16 | + logAction($_SESSION['user_name'], $lang['edited'].' '.nameID($player->playerid, $db_link).'('.$player->playerid.') '.$lang['civ'].' '.$lang['inventory'], 1); |
|
17 | + message($lang['edited'].' '.$lang['civ'].' '.$lang['inventory']); |
|
18 | 18 | break; |
19 | 19 | |
20 | 20 | case "cop_inv": |
21 | 21 | $cop_gear_value = $_POST["cop_inv_value"]; |
22 | 22 | $update = "UPDATE `players` SET cop_gear = '$cop_gear_value' WHERE `uid` = '$uID';"; |
23 | 23 | $result_of_query = $db_link->query($update); |
24 | - logAction($_SESSION['user_name'], $lang['edited'] . ' ' . nameID($player->playerid, $db_link) . '(' . $player->playerid . ') ' . $lang['cop'] . ' ' . $lang['inventory'], 1); |
|
25 | - message($lang['edited'] . ' ' . $lang['cop'] . ' ' . $lang['inventory']); |
|
24 | + logAction($_SESSION['user_name'], $lang['edited'].' '.nameID($player->playerid, $db_link).'('.$player->playerid.') '.$lang['cop'].' '.$lang['inventory'], 1); |
|
25 | + message($lang['edited'].' '.$lang['cop'].' '.$lang['inventory']); |
|
26 | 26 | break; |
27 | 27 | |
28 | 28 | case "med_inv": |
29 | 29 | $med_gear_value = $_POST["med_inv_value"]; |
30 | 30 | $update = "UPDATE `players` SET med_gear = '$med_gear_value' WHERE `uid` = '$uID';"; |
31 | 31 | $result_of_query = $db_link->query($update); |
32 | - logAction($_SESSION['user_name'], $lang['edited'] . ' ' . nameID($player->playerid, $db_link) . '(' . $player->playerid . ') ' . $lang['medic'] . ' ' . $lang['inventory'], 1); |
|
33 | - message($lang['edited'] . ' ' . $lang['medic'] . ' ' . $lang['inventory']); |
|
32 | + logAction($_SESSION['user_name'], $lang['edited'].' '.nameID($player->playerid, $db_link).'('.$player->playerid.') '.$lang['medic'].' '.$lang['inventory'], 1); |
|
33 | + message($lang['edited'].' '.$lang['medic'].' '.$lang['inventory']); |
|
34 | 34 | break; |
35 | 35 | |
36 | 36 | case "player_edit": |
@@ -46,16 +46,16 @@ discard block |
||
46 | 46 | if ($result->num_rows > 0) { |
47 | 47 | $player = $result->fetch_object(); |
48 | 48 | |
49 | - if ($coplevel != $player->coplevel) logAction($_SESSION['user_name'], $lang['edited'] . " " . nameID($player->playerid, $db_link) . "(" . $player->playerid . ") " . $lang['cop'] . " " . $lang['level'] . " " . $lang['from'] . " (" . $player->coplevel . ") " . $lang['to'] . " (" . $coplevel . ")", 2); |
|
50 | - if ($mediclevel != $player->mediclevel) logAction($_SESSION['user_name'], $lang['edited'] . " " . nameID($player->playerid, $db_link) . "(" . $player->playerid . ") " . $lang['medic'] . " " . $lang['level'] . " " . $lang['from'] . " (" . $player->mediclevel . ") " . $lang['to'] . " (" . $mediclevel . ")", 2); |
|
51 | - if ($donorlevel != $player->$settings['donorFormat']) logAction($_SESSION['user_name'], $lang['edited'] . " " . nameID($player->playerid, $db_link) . "(" . $player->playerid . ") " . $lang['donator'] . " " . $lang['level'] . " " . $lang['from'] . " (" . $player->$settings['donorFormat'] . ") " . $lang['to'] . " (" . $donorlevel . ")", 2); |
|
52 | - if ($adminlevel != $player->adminlevel) logAction($_SESSION['user_name'], $lang['edited'] . " " . nameID($player->playerid, $db_link) . "(" . $player->playerid . ") " . $lang['admin'] . " " . $lang['level'] . " " . $lang['from'] . " (" . $player->adminlevel . ") " . $lang['to'] . " (" . $adminlevel . ")", 2); |
|
53 | - if ($cash != $player->cash) logAction($_SESSION['user_name'], $lang['edited'] . " " . nameID($player->playerid, $db_link) . "(" . $player->playerid . ") " . $lang['cash'] . " " . $lang['from'] . " (" . $player->cash . ") " . $lang['to'] . " (" . $cash . ")", 2); |
|
54 | - if ($bankacc != $player->bankacc) logAction($_SESSION['user_name'], $lang['edited'] . " " . nameID($player->playerid, $db_link) . "(" . $player->playerid . ") " . $lang['bank'] . " " . $lang['from'] . " (" . $player->bankacc . ") " . $lang['to'] . " (" . $bankacc . ")", 2); |
|
49 | + if ($coplevel != $player->coplevel) logAction($_SESSION['user_name'], $lang['edited']." ".nameID($player->playerid, $db_link)."(".$player->playerid.") ".$lang['cop']." ".$lang['level']." ".$lang['from']." (".$player->coplevel.") ".$lang['to']." (".$coplevel.")", 2); |
|
50 | + if ($mediclevel != $player->mediclevel) logAction($_SESSION['user_name'], $lang['edited']." ".nameID($player->playerid, $db_link)."(".$player->playerid.") ".$lang['medic']." ".$lang['level']." ".$lang['from']." (".$player->mediclevel.") ".$lang['to']." (".$mediclevel.")", 2); |
|
51 | + if ($donorlevel != $player->$settings['donorFormat']) logAction($_SESSION['user_name'], $lang['edited']." ".nameID($player->playerid, $db_link)."(".$player->playerid.") ".$lang['donator']." ".$lang['level']." ".$lang['from']." (".$player->$settings['donorFormat'].") ".$lang['to']." (".$donorlevel.")", 2); |
|
52 | + if ($adminlevel != $player->adminlevel) logAction($_SESSION['user_name'], $lang['edited']." ".nameID($player->playerid, $db_link)."(".$player->playerid.") ".$lang['admin']." ".$lang['level']." ".$lang['from']." (".$player->adminlevel.") ".$lang['to']." (".$adminlevel.")", 2); |
|
53 | + if ($cash != $player->cash) logAction($_SESSION['user_name'], $lang['edited']." ".nameID($player->playerid, $db_link)."(".$player->playerid.") ".$lang['cash']." ".$lang['from']." (".$player->cash.") ".$lang['to']." (".$cash.")", 2); |
|
54 | + if ($bankacc != $player->bankacc) logAction($_SESSION['user_name'], $lang['edited']." ".nameID($player->playerid, $db_link)."(".$player->playerid.") ".$lang['bank']." ".$lang['from']." (".$player->bankacc.") ".$lang['to']." (".$bankacc.")", 2); |
|
55 | 55 | |
56 | - $update = "UPDATE `players` SET coplevel = '$coplevel', mediclevel = '$mediclevel', " . $settings['donorFormat'] . "= '$donorlevel', adminlevel = '$adminlevel', cash = '$cash', bankacc = '$bankacc' WHERE `uid` = '$uID';"; |
|
56 | + $update = "UPDATE `players` SET coplevel = '$coplevel', mediclevel = '$mediclevel', ".$settings['donorFormat']."= '$donorlevel', adminlevel = '$adminlevel', cash = '$cash', bankacc = '$bankacc' WHERE `uid` = '$uID';"; |
|
57 | 57 | $result_of_query = $db_link->query($update); |
58 | - message($lang['edited'] . ' ' . nameID($player->playerid, $db_link)); |
|
58 | + message($lang['edited'].' '.nameID($player->playerid, $db_link)); |
|
59 | 59 | } else { |
60 | 60 | message("ERROR"); |
61 | 61 | } |
@@ -72,37 +72,37 @@ discard block |
||
72 | 72 | if (is_null($donorlevel)) { |
73 | 73 | $donorlevel = $player->$settings['donorFormat']; |
74 | 74 | } |
75 | - if ($coplevel != $player->coplevel) logAction($_SESSION['user_name'], $lang['edited'] . " " . nameID($player->playerid, $db_link) . "(" . $player->playerid . ") " . $lang['cop'] . " " . $lang['level'] . " " . $lang['from'] . " (" . $player->coplevel . ") " . $lang['to'] . " (" . $coplevel . ")", 2); |
|
76 | - if ($mediclevel != $player->mediclevel) logAction($_SESSION['user_name'], $lang['edited'] . " " . nameID($player->playerid, $db_link) . "(" . $player->playerid . ") " . $lang['medic'] . " " . $lang['level'] . " " . $lang['from'] . " (" . $player->mediclevel . ") " . $lang['to'] . " (" . $mediclevel . ")", 2); |
|
77 | - if ($donorlevel != $player->$settings['donorFormat']) logAction($_SESSION['user_name'], $lang['edited'] . " " . nameID($player->playerid, $db_link) . "(" . $player->playerid . ") " . $lang['donator'] . " " . $lang['level'] . " " . $lang['from'] . " (" . $player->$settings['donorFormat'] . ") " . $lang['to'] . " (" . $donorlevel . ")", 2); |
|
78 | - if ($cash != $player->cash) logAction($_SESSION['user_name'], $lang['edited'] . " " . nameID($player->playerid, $db_link) . "(" . $player->playerid . ") " . $lang['cash'] . " " . $lang['from'] . " (" . $player->cash . ") " . $lang['to'] . " (" . $cash . ")", 2); |
|
79 | - if ($bankacc != $player->bankacc) logAction($_SESSION['user_name'], $lang['edited'] . " " . nameID($player->playerid, $db_link) . "(" . $player->playerid . ") " . $lang['bank'] . " " . $lang['from'] . " (" . $player->bankacc . ") " . $lang['to'] . " (" . $bankacc . ")", 2); |
|
75 | + if ($coplevel != $player->coplevel) logAction($_SESSION['user_name'], $lang['edited']." ".nameID($player->playerid, $db_link)."(".$player->playerid.") ".$lang['cop']." ".$lang['level']." ".$lang['from']." (".$player->coplevel.") ".$lang['to']." (".$coplevel.")", 2); |
|
76 | + if ($mediclevel != $player->mediclevel) logAction($_SESSION['user_name'], $lang['edited']." ".nameID($player->playerid, $db_link)."(".$player->playerid.") ".$lang['medic']." ".$lang['level']." ".$lang['from']." (".$player->mediclevel.") ".$lang['to']." (".$mediclevel.")", 2); |
|
77 | + if ($donorlevel != $player->$settings['donorFormat']) logAction($_SESSION['user_name'], $lang['edited']." ".nameID($player->playerid, $db_link)."(".$player->playerid.") ".$lang['donator']." ".$lang['level']." ".$lang['from']." (".$player->$settings['donorFormat'].") ".$lang['to']." (".$donorlevel.")", 2); |
|
78 | + if ($cash != $player->cash) logAction($_SESSION['user_name'], $lang['edited']." ".nameID($player->playerid, $db_link)."(".$player->playerid.") ".$lang['cash']." ".$lang['from']." (".$player->cash.") ".$lang['to']." (".$cash.")", 2); |
|
79 | + if ($bankacc != $player->bankacc) logAction($_SESSION['user_name'], $lang['edited']." ".nameID($player->playerid, $db_link)."(".$player->playerid.") ".$lang['bank']." ".$lang['from']." (".$player->bankacc.") ".$lang['to']." (".$bankacc.")", 2); |
|
80 | 80 | |
81 | - $update = "UPDATE `players` SET coplevel = '$coplevel', mediclevel = '$mediclevel', " . $settings['donorFormat'] . "= '$donorlevel', cash = '$cash', bankacc = '$bankacc' WHERE `uid` = '$uID';"; |
|
81 | + $update = "UPDATE `players` SET coplevel = '$coplevel', mediclevel = '$mediclevel', ".$settings['donorFormat']."= '$donorlevel', cash = '$cash', bankacc = '$bankacc' WHERE `uid` = '$uID';"; |
|
82 | 82 | $result_of_query = $db_link->query($update); |
83 | - logAction($_SESSION['user_name'], $lang['edited'] . ' ' . nameID($player->playerid, $db_link) . '(' . $player->playerid . ') ' . $lang['levels'], 2); |
|
84 | - message($lang['edited'] . ' ' . nameID($player->playerid, $db_link)); |
|
83 | + logAction($_SESSION['user_name'], $lang['edited'].' '.nameID($player->playerid, $db_link).'('.$player->playerid.') '.$lang['levels'], 2); |
|
84 | + message($lang['edited'].' '.nameID($player->playerid, $db_link)); |
|
85 | 85 | } else { |
86 | 86 | message("ERROR"); |
87 | 87 | } |
88 | 88 | } elseif ($_SESSION['user_level'] >= 2) { |
89 | 89 | $coplevel = intval($_POST["player_coplvl"]); |
90 | 90 | $mediclevel = intval($_POST["player_medlvl"]); |
91 | - if ($coplevel != $player->coplevel) logAction($_SESSION['user_name'], $lang['edited'] . " " . nameID($player->playerid, $db_link) . "(" . $player->playerid . ") " . $lang['cop'] . " " . $lang['level'] . " " . $lang['from'] . " (" . $player->coplevel . ") " . $lang['to'] . " (" . $coplevel . ")", 2); |
|
92 | - if ($mediclevel != $player->mediclevel) logAction($_SESSION['user_name'], $lang['edited'] . " " . nameID($player->playerid, $db_link) . "(" . $player->playerid . ") " . $lang['medic'] . " " . $lang['level'] . " " . $lang['from'] . " (" . $player->mediclevel . ") " . $lang['to'] . " (" . $mediclevel . ")", 2); |
|
91 | + if ($coplevel != $player->coplevel) logAction($_SESSION['user_name'], $lang['edited']." ".nameID($player->playerid, $db_link)."(".$player->playerid.") ".$lang['cop']." ".$lang['level']." ".$lang['from']." (".$player->coplevel.") ".$lang['to']." (".$coplevel.")", 2); |
|
92 | + if ($mediclevel != $player->mediclevel) logAction($_SESSION['user_name'], $lang['edited']." ".nameID($player->playerid, $db_link)."(".$player->playerid.") ".$lang['medic']." ".$lang['level']." ".$lang['from']." (".$player->mediclevel.") ".$lang['to']." (".$mediclevel.")", 2); |
|
93 | 93 | |
94 | 94 | $update = "UPDATE `players` SET coplevel = '$coplevel', mediclevel = '$mediclevel' WHERE `uid` = '$uID';"; |
95 | 95 | $result_of_query = $db_link->query($update); |
96 | - logAction($_SESSION['user_name'], $lang['edited'] . ' ' . nameID($player->playerid, $db_link) . '(' . $player->playerid . ') ' . $lang['levels'], 2); |
|
97 | - message($lang['edited'] . ' ' . nameID($player->playerid, $db_link)); |
|
96 | + logAction($_SESSION['user_name'], $lang['edited'].' '.nameID($player->playerid, $db_link).'('.$player->playerid.') '.$lang['levels'], 2); |
|
97 | + message($lang['edited'].' '.nameID($player->playerid, $db_link)); |
|
98 | 98 | } |
99 | 99 | break; |
100 | 100 | case "add_note": |
101 | 101 | $note_text = $_POST["note_text"]; |
102 | - $update = "INSERT INTO `notes` (`uid`, `staff_name`, `note_text`, `note_updated`) VALUES ('$uID', '" . $_SESSION['user_name'] . "', '$note_text', CURRENT_TIMESTAMP);"; |
|
102 | + $update = "INSERT INTO `notes` (`uid`, `staff_name`, `note_text`, `note_updated`) VALUES ('$uID', '".$_SESSION['user_name']."', '$note_text', CURRENT_TIMESTAMP);"; |
|
103 | 103 | $result_of_query = $db_link->query($update); |
104 | - logAction($_SESSION['user_name'], $lang['edited'] . ' ' . nameID($player->playerid, $db_link) . '(' . $player->playerid . ') ' . $lang['notes'], 1); |
|
105 | - message($lang['edited'] . ' ' . $lang['notes']); |
|
104 | + logAction($_SESSION['user_name'], $lang['edited'].' '.nameID($player->playerid, $db_link).'('.$player->playerid.') '.$lang['notes'], 1); |
|
105 | + message($lang['edited'].' '.$lang['notes']); |
|
106 | 106 | break; |
107 | 107 | } |
108 | 108 | } else { |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | $temp .= chr($pGID & 0xFF); |
122 | 122 | $pGID >>= 8; |
123 | 123 | } |
124 | - $pGID = md5('BE' . $temp); |
|
124 | + $pGID = md5('BE'.$temp); |
|
125 | 125 | ?> |
126 | 126 | <div class="col-md-3" style="float:left; padding-top:20px;"> |
127 | 127 | <div class="panel panel-default"> |
@@ -134,46 +134,46 @@ discard block |
||
134 | 134 | $alias = str_replace('"[`', "", $player->aliases); |
135 | 135 | $alias = str_replace('`]"', "", $alias); |
136 | 136 | |
137 | - echo '<center><img alt="' . $alias . '" src="' . $settings['url'] . skinImage($player->civ_gear) . '">'; |
|
138 | - echo "<h5 style='word-wrap: break-word; '> <a href='http://playerindex.de/check.aspx?id=" . $pGID . "' class='btn btn-xs btn-warning' target='_blank' role='button'>Check Playerindex Ban </a></h5>"; |
|
137 | + echo '<center><img alt="'.$alias.'" src="'.$settings['url'].skinImage($player->civ_gear).'">'; |
|
138 | + echo "<h5 style='word-wrap: break-word; '> <a href='http://playerindex.de/check.aspx?id=".$pGID."' class='btn btn-xs btn-warning' target='_blank' role='button'>Check Playerindex Ban </a></h5>"; |
|
139 | 139 | if ($_SESSION['permissions']['view']['steam'] && $settings['vacTest']) { |
140 | 140 | echo '<div id="vacBan"></div>'; |
141 | 141 | } |
142 | - echo "<h4>" . $lang['aliases'] . ": " . $alias . "</h4>"; |
|
143 | - echo "<h4>" . $lang['uid'] . ": " . $player->uid . "</h4>"; |
|
144 | - echo "<h4>" . $lang['playerID'] . ": " . $player->playerid . "</h4>"; |
|
145 | - echo "<h4 style='word-wrap: break-word;'>" . $lang['GUID'] . ": " . $pGID . "</h4>"; |
|
142 | + echo "<h4>".$lang['aliases'].": ".$alias."</h4>"; |
|
143 | + echo "<h4>".$lang['uid'].": ".$player->uid."</h4>"; |
|
144 | + echo "<h4>".$lang['playerID'].": ".$player->playerid."</h4>"; |
|
145 | + echo "<h4 style='word-wrap: break-word;'>".$lang['GUID'].": ".$pGID."</h4>"; |
|
146 | 146 | ?> |
147 | 147 | <i class="fa fa-2x fa-money"></i> |
148 | - <h4><?php echo $lang['cash'] . ": " . $player->cash; ?> </h4> |
|
148 | + <h4><?php echo $lang['cash'].": ".$player->cash; ?> </h4> |
|
149 | 149 | <i class="fa fa-2x fa-bank"></i> |
150 | - <h4> <?php echo $lang['bank'] . ": " . $player->bankacc; ?> </h4> |
|
150 | + <h4> <?php echo $lang['bank'].": ".$player->bankacc; ?> </h4> |
|
151 | 151 | <?php |
152 | 152 | if ($player->arrested == 0) { |
153 | - echo "<h4><button type='button' id='arrested' class='arrest btn btn-xs btn-success'>" . $lang["not"] . " " . $lang["arrested"] . "</button></h4>"; |
|
153 | + echo "<h4><button type='button' id='arrested' class='arrest btn btn-xs btn-success'>".$lang["not"]." ".$lang["arrested"]."</button></h4>"; |
|
154 | 154 | } else { |
155 | - echo "<h4><button type='button' id='arrested' class='arrest btn btn-xs btn-theme01'>" . $lang["arrested"] . "</button></h4>"; |
|
155 | + echo "<h4><button type='button' id='arrested' class='arrest btn btn-xs btn-theme01'>".$lang["arrested"]."</button></h4>"; |
|
156 | 156 | } |
157 | 157 | |
158 | 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>"; |
|
159 | + echo "<h4><button type='button' id='blacklist' class='arrest btn btn-xs btn-success'>".$lang["not"]." ".$lang["blacklisted"]."</button></h4>"; |
|
160 | 160 | } else { |
161 | - echo "<h4><button type='button' id='blacklist' class='arrest btn btn-xs btn-theme01'>" . $lang["blacklisted"] . "</button></h4>"; |
|
161 | + echo "<h4><button type='button' id='blacklist' class='arrest btn btn-xs btn-theme01'>".$lang["blacklisted"]."</button></h4>"; |
|
162 | 162 | } |
163 | 163 | |
164 | 164 | if ($settings['wanted'] && ($_SESSION['permissions']['view']['wanted'] || $player->playerid == $_SESSION['playerid'])) { |
165 | - $sql = "SELECT `active` FROM `wanted` WHERE `wantedID` = '" . $player->playerid . "'"; |
|
165 | + $sql = "SELECT `active` FROM `wanted` WHERE `wantedID` = '".$player->playerid."'"; |
|
166 | 166 | $result_of_query = $db_link->query($sql); |
167 | 167 | if ($result_of_query->num_rows > 0) { |
168 | 168 | while ($row = mysqli_fetch_assoc($result_of_query)) { |
169 | 169 | if ($row["active"] == 1) { |
170 | - echo "<h4><a href='" . $settings['url'] . "editwanted/" . $player->playerid . "' class='label label-danger'>" . $lang["wanted"] . "</span></h4>"; |
|
170 | + echo "<h4><a href='".$settings['url']."editwanted/".$player->playerid."' class='label label-danger'>".$lang["wanted"]."</span></h4>"; |
|
171 | 171 | } else { |
172 | - echo "<h4><span class='label label-success'>" . $lang["not"] . " " . $lang["wanted"] . "</span></h4>"; |
|
172 | + echo "<h4><span class='label label-success'>".$lang["not"]." ".$lang["wanted"]."</span></h4>"; |
|
173 | 173 | } |
174 | 174 | } |
175 | 175 | } else { |
176 | - echo "<h4><span class='label label-success'>" . $lang["not"] . " " . $lang["wanted"] . "</span></h4>"; |
|
176 | + echo "<h4><span class='label label-success'>".$lang["not"]." ".$lang["wanted"]."</span></h4>"; |
|
177 | 177 | } |
178 | 178 | } |
179 | 179 | |
@@ -194,31 +194,31 @@ discard block |
||
194 | 194 | <div class="col-md-2 col-sm-2 col-md-offset-1 box0"> |
195 | 195 | <div class="box1"> |
196 | 196 | <span class="fa fa-3x fa-taxi"></span> |
197 | - <h3> <?php echo $lang['police'] . ": " . $player->coplevel; ?> </h3> |
|
197 | + <h3> <?php echo $lang['police'].": ".$player->coplevel; ?> </h3> |
|
198 | 198 | </div> |
199 | 199 | </div> |
200 | 200 | <div class="col-md-2 col-sm-2 box0"> |
201 | 201 | <div class="box1"> |
202 | 202 | <span class="fa fa-3x fa-ambulance"></span> |
203 | - <h3> <?php echo $lang['medic'] . ": " . $player->mediclevel; ?> </h3> |
|
203 | + <h3> <?php echo $lang['medic'].": ".$player->mediclevel; ?> </h3> |
|
204 | 204 | </div> |
205 | 205 | </div> |
206 | 206 | <div class="col-md-2 col-sm-2 box0"> |
207 | 207 | <div class="box1"> |
208 | 208 | <span class="fa fa-3x fa-usd"></span> |
209 | - <h3> <?php echo $lang['donator'] . ": " . $player->$settings['donorFormat']; ?> </h3> |
|
209 | + <h3> <?php echo $lang['donator'].": ".$player->$settings['donorFormat']; ?> </h3> |
|
210 | 210 | </div> |
211 | 211 | </div> |
212 | 212 | <div class="col-md-2 col-sm-2 box0"> |
213 | 213 | <div class="box1"> |
214 | 214 | <span class="fa fa-3x fa-group"></span> |
215 | - <h3> <?php echo $lang['admin'] . ": " . $player->adminlevel; ?> </h3> |
|
215 | + <h3> <?php echo $lang['admin'].": ".$player->adminlevel; ?> </h3> |
|
216 | 216 | </div> |
217 | 217 | </div> |
218 | 218 | <?php |
219 | 219 | if ($_SESSION['permissions']['view']['steam'] || $player->playerid == $_SESSION['playerid']) { |
220 | 220 | echo '<div class="col-md-2 col-sm-2 box0">'; |
221 | - echo '<a href="http://steamcommunity.com/profiles/' . $player->playerid . '"'; |
|
221 | + echo '<a href="http://steamcommunity.com/profiles/'.$player->playerid.'"'; |
|
222 | 222 | echo 'target="_blank">'; |
223 | 223 | echo '<div class="box1">'; |
224 | 224 | echo '<span class="fa fa-3x fa-steam"></span>'; |
@@ -250,16 +250,16 @@ discard block |
||
250 | 250 | </li> |
251 | 251 | <?php |
252 | 252 | if ($_SESSION['permissions']['edit']['houses']) { |
253 | - echo '<li><a href="#house" data-toggle="tab">' . $lang['houses'] . '</a></li>'; |
|
253 | + echo '<li><a href="#house" data-toggle="tab">'.$lang['houses'].'</a></li>'; |
|
254 | 254 | } |
255 | 255 | if ($_SESSION['permissions']['edit']['vehicles']) { |
256 | - echo '<li><a href="#veh" data-toggle="tab">' . $lang['vehicles'] . '</a></li>'; |
|
256 | + echo '<li><a href="#veh" data-toggle="tab">'.$lang['vehicles'].'</a></li>'; |
|
257 | 257 | } |
258 | 258 | if ($_SESSION['permissions']['edit']['notes']) { |
259 | 259 | echo '<li><a href="#notes" data-toggle="tab"> Notes</a></li>'; |
260 | 260 | } |
261 | 261 | if ($_SESSION['permissions']['view']['wanted'] && $settings['wanted']) { |
262 | - echo '<li><a href="#wanted" data-toggle="tab">' . $lang['wanted'] . '</a></li>'; |
|
262 | + echo '<li><a href="#wanted" data-toggle="tab">'.$lang['wanted'].'</a></li>'; |
|
263 | 263 | } |
264 | 264 | ?> |
265 | 265 | </ul> |
@@ -269,55 +269,55 @@ discard block |
||
269 | 269 | <div class="tab-pane fade in active well" id="civ_lic"> |
270 | 270 | <?php |
271 | 271 | if ($player->civ_licenses !== '"[]"' && $player->civ_licenses !== '') { |
272 | - echo '<h4 style="centred">' . $lang['civil'] . ' ' . $lang['licenses'] . '</h4>'; |
|
272 | + echo '<h4 style="centred">'.$lang['civil'].' '.$lang['licenses'].'</h4>'; |
|
273 | 273 | $return = stripArray($player->civ_licenses, 0); |
274 | 274 | foreach ($return as $value) { |
275 | 275 | if (strpos($value, "1") == TRUE) { |
276 | 276 | $name = before(',', $value); |
277 | - echo "<button type='button' id=" . $name . " class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>" . licName($name, $license) . "</button> "; |
|
277 | + echo "<button type='button' id=".$name." class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>".licName($name, $license)."</button> "; |
|
278 | 278 | } else { |
279 | 279 | $name = before(',', $value); |
280 | - echo "<button type='button' id=" . $name . " class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>" . licName($name, $license) . "</button> "; |
|
280 | + echo "<button type='button' id=".$name." class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>".licName($name, $license)."</button> "; |
|
281 | 281 | } |
282 | 282 | } |
283 | 283 | } else { |
284 | - echo '<h4>' . errorMessage(371, $lang) . '</h4>'; |
|
284 | + echo '<h4>'.errorMessage(371, $lang).'</h4>'; |
|
285 | 285 | } ?> |
286 | 286 | </div> |
287 | 287 | <div class="tab-pane well fade" id="medic_lic"> |
288 | 288 | <?php |
289 | 289 | if ($player->med_licenses !== '"[]"' && $player->med_licenses !== '') { |
290 | - echo '<h4 style="centred">' . $lang['medic'] . ' ' . $lang['licenses'] . '</h4>'; |
|
290 | + echo '<h4 style="centred">'.$lang['medic'].' '.$lang['licenses'].'</h4>'; |
|
291 | 291 | $return = stripArray($player->med_licenses, 0); |
292 | 292 | foreach ($return as $value) { |
293 | 293 | if (strpos($value, "1") == TRUE) { |
294 | 294 | $name = before(',', $value); |
295 | - echo "<button type='button' id=" . $name . " class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>" . licName($name, $license) . "</button> "; |
|
295 | + echo "<button type='button' id=".$name." class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>".licName($name, $license)."</button> "; |
|
296 | 296 | } else { |
297 | 297 | $name = before(',', $value); |
298 | - echo "<button type='button' id=" . $name . " class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>" . licName($name, $license) . "</button> "; |
|
298 | + echo "<button type='button' id=".$name." class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>".licName($name, $license)."</button> "; |
|
299 | 299 | } |
300 | 300 | } |
301 | 301 | } else { |
302 | - echo '<h4>' . errorMessage(372, $lang) . '</h4>'; |
|
302 | + echo '<h4>'.errorMessage(372, $lang).'</h4>'; |
|
303 | 303 | } ?> |
304 | 304 | </div> |
305 | 305 | <div class="tab-pane well fade" id="police_lic"> |
306 | 306 | <?php |
307 | 307 | if ($player->cop_licenses !== '"[]"' && $player->cop_licenses !== '') { |
308 | 308 | $return = stripArray($player->cop_licenses, 0); |
309 | - echo '<h4 style="centred">' . $lang['cop'] . ' ' . $lang['licenses'] . '</h4>'; |
|
309 | + echo '<h4 style="centred">'.$lang['cop'].' '.$lang['licenses'].'</h4>'; |
|
310 | 310 | foreach ($return as $value) { |
311 | 311 | if (strpos($value, "1") == TRUE) { |
312 | 312 | $name = before(',', $value); |
313 | - echo "<button type='button' id=" . $name . " class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>" . licName($name, $license) . "</button> "; |
|
313 | + echo "<button type='button' id=".$name." class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>".licName($name, $license)."</button> "; |
|
314 | 314 | } else { |
315 | 315 | $name = before(',', $value); |
316 | - echo "<button type='button' id=" . $name . " class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>" . licName($name, $license) . "</button> "; |
|
316 | + echo "<button type='button' id=".$name." class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>".licName($name, $license)."</button> "; |
|
317 | 317 | } |
318 | 318 | } |
319 | 319 | } else { |
320 | - echo '<h4>' . errorMessage(373, $lang) . '</h4>'; |
|
320 | + echo '<h4>'.errorMessage(373, $lang).'</h4>'; |
|
321 | 321 | } |
322 | 322 | ?> |
323 | 323 | </div> |
@@ -326,41 +326,41 @@ discard block |
||
326 | 326 | <div class="tab-pane fade well" id="civ_inv"> |
327 | 327 | <?php |
328 | 328 | if ($player->civ_gear !== '"[]"' && $player->civ_gear !== '') { |
329 | - echo '<h4 style="centred">' . $lang['civil'] . ' ' . $lang['gear'] . '</h4>'; |
|
330 | - echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='civ_gear' name='civ_gear'>" . $player->civ_gear . "</textarea><br>"; |
|
329 | + echo '<h4 style="centred">'.$lang['civil'].' '.$lang['gear'].'</h4>'; |
|
330 | + echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='civ_gear' name='civ_gear'>".$player->civ_gear."</textarea><br>"; |
|
331 | 331 | |
332 | 332 | if ($_SESSION['permissions']['edit']['inventory']) { |
333 | 333 | echo '<a data-toggle="modal" href="#edit_civ_inv" class="btn btn-primary btn-xs" style="float: right;">'; |
334 | 334 | echo '<i class="fa fa-pencil"></i></a>'; |
335 | 335 | } |
336 | 336 | } else { |
337 | - echo '<h4>' . errorMessage(381, $lang) . '</h4>'; |
|
337 | + echo '<h4>'.errorMessage(381, $lang).'</h4>'; |
|
338 | 338 | } ?> |
339 | 339 | </div> |
340 | 340 | <div class="tab-pane fade well" id="police_inv"> |
341 | 341 | <?php |
342 | 342 | if ($player->cop_gear !== '"[]"' && $player->cop_gear !== '') { |
343 | - echo '<h4 style="centred">' . $lang['cop'] . ' ' . $lang['gear'] . '</h4>'; |
|
344 | - echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='cop_gear' name='cop_gear'>" . $player->cop_gear . "</textarea><br>"; |
|
343 | + echo '<h4 style="centred">'.$lang['cop'].' '.$lang['gear'].'</h4>'; |
|
344 | + echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='cop_gear' name='cop_gear'>".$player->cop_gear."</textarea><br>"; |
|
345 | 345 | if ($_SESSION['permissions']['edit']['inventory']) { |
346 | 346 | echo '<a data-toggle="modal" href="#edit_cop_inv" class="btn btn-primary btn-xs" style="float: right;">'; |
347 | 347 | echo '<i class="fa fa-pencil"></i></a>'; |
348 | 348 | } |
349 | 349 | } else { |
350 | - echo '<h4>' . errorMessage(383, $lang) . '</h4>'; |
|
350 | + echo '<h4>'.errorMessage(383, $lang).'</h4>'; |
|
351 | 351 | } ?> |
352 | 352 | </div> |
353 | 353 | <div class="tab-pane fade well" id="medic_inv"> |
354 | 354 | <?php |
355 | 355 | if ($player->med_gear !== '"[]"' && $player->med_gear !== '') { |
356 | - echo '<h4 style="centred">' . $lang['medic'] . ' ' . $lang['gear'] . '</h4>'; |
|
357 | - echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='med_gear' name='med_gear'>" . $player->med_gear . "</textarea><br>"; |
|
356 | + echo '<h4 style="centred">'.$lang['medic'].' '.$lang['gear'].'</h4>'; |
|
357 | + echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='med_gear' name='med_gear'>".$player->med_gear."</textarea><br>"; |
|
358 | 358 | if ($_SESSION['permissions']['edit']['inventory']) { |
359 | 359 | echo '<a data-toggle="modal" href="#edit_med_inv" class="btn btn-primary btn-xs" style="float: right;">'; |
360 | 360 | echo '<i class="fa fa-pencil"></i></a>'; |
361 | 361 | } |
362 | 362 | } else { |
363 | - echo '<h4>' . errorMessage(382, $lang) . '</h4>'; |
|
363 | + echo '<h4>'.errorMessage(382, $lang).'</h4>'; |
|
364 | 364 | } ?> |
365 | 365 | </div> |
366 | 366 | <?php } |
@@ -368,7 +368,7 @@ discard block |
||
368 | 368 | <div class="tab-pane fade" id="house"> |
369 | 369 | <div class="table-responsive"> |
370 | 370 | <?php |
371 | - $sql = "SELECT `pos`,`id` FROM `houses` WHERE `pid` = '" . $player->playerid . "' ORDER BY `id` DESC LIMIT 8"; |
|
371 | + $sql = "SELECT `pos`,`id` FROM `houses` WHERE `pid` = '".$player->playerid."' ORDER BY `id` DESC LIMIT 8"; |
|
372 | 372 | $result_of_query = $db_link->query($sql); |
373 | 373 | if ($result_of_query->num_rows > 0) { |
374 | 374 | ?> |
@@ -383,15 +383,15 @@ discard block |
||
383 | 383 | <?php |
384 | 384 | while ($row = mysqli_fetch_assoc($result_of_query)) { |
385 | 385 | echo "<tr>"; |
386 | - echo "<td>" . substr($row["pos"], 1, -1) . "</td>"; |
|
387 | - echo "<td><a class='btn btn-primary btn-xs' href='" . $settings['url'] . "editHouse/" . $row["id"] . "'>"; |
|
386 | + echo "<td>".substr($row["pos"], 1, -1)."</td>"; |
|
387 | + echo "<td><a class='btn btn-primary btn-xs' href='".$settings['url']."editHouse/".$row["id"]."'>"; |
|
388 | 388 | echo "<i class='fa fa-pencil'></i></a></td>"; |
389 | 389 | echo "</tr>"; |
390 | 390 | } ?> |
391 | 391 | </tbody> |
392 | 392 | </table> |
393 | - <?php echo '<a style="float: right;" href="' . $settings['url'] . 'houses/' . $player->playerid . '"><h4>' . $lang['more'] . ' <i class="fa fa-arrow-circle-right"></i></h4></a>'; |
|
394 | - } else echo '<h4>' . errorMessage(31, $lang) . '</h4>'; ?> |
|
393 | + <?php echo '<a style="float: right;" href="'.$settings['url'].'houses/'.$player->playerid.'"><h4>'.$lang['more'].' <i class="fa fa-arrow-circle-right"></i></h4></a>'; |
|
394 | + } else echo '<h4>'.errorMessage(31, $lang).'</h4>'; ?> |
|
395 | 395 | </div> |
396 | 396 | </div> |
397 | 397 | <?php } |
@@ -399,45 +399,45 @@ discard block |
||
399 | 399 | <div class="tab-pane fade" id="veh"> |
400 | 400 | <div class="table-responsive"> |
401 | 401 | <?php |
402 | - $sql = "SELECT `classname`,`type`,`id`,`plate` FROM `vehicles` WHERE `pid` = '" . $player->playerid . "' ORDER BY `id` DESC LIMIT 8"; |
|
402 | + $sql = "SELECT `classname`,`type`,`id`,`plate` FROM `vehicles` WHERE `pid` = '".$player->playerid."' ORDER BY `id` DESC LIMIT 8"; |
|
403 | 403 | $result_of_query = $db_link->query($sql); |
404 | 404 | if ($result_of_query->num_rows > 0) { |
405 | 405 | $veh = $result_of_query->fetch_object(); |
406 | 406 | echo '<table class="table table-bordered table-hover table-striped" style="margin-bottom: 0px;">'; |
407 | 407 | echo '<thead><tr>'; |
408 | - echo '<th>' . $lang['class'] . '</th>'; |
|
409 | - echo '<th class="hidden-xs">' . $lang['type'] . '</th>'; |
|
410 | - echo '<th class="hidden-xs">' . $lang['plate'] . '</th>'; |
|
408 | + echo '<th>'.$lang['class'].'</th>'; |
|
409 | + echo '<th class="hidden-xs">'.$lang['type'].'</th>'; |
|
410 | + echo '<th class="hidden-xs">'.$lang['plate'].'</th>'; |
|
411 | 411 | if ($_SESSION['permissions']['edit']['vehicles']) { |
412 | - echo "<th>" . $lang['edit'] . "</th>"; |
|
412 | + echo "<th>".$lang['edit']."</th>"; |
|
413 | 413 | } |
414 | 414 | echo '</tr></thead><tbody'; |
415 | 415 | echo '<tr>'; |
416 | - echo '<td>' . carName($veh->classname) . '</td>'; |
|
417 | - echo '<td class="hidden-xs">' . carType($veh->type, $lang) . '</td>'; |
|
418 | - echo '<td class="hidden-xs">' . $veh->plate . '</td>'; |
|
416 | + echo '<td>'.carName($veh->classname).'</td>'; |
|
417 | + echo '<td class="hidden-xs">'.carType($veh->type, $lang).'</td>'; |
|
418 | + echo '<td class="hidden-xs">'.$veh->plate.'</td>'; |
|
419 | 419 | |
420 | 420 | if ($_SESSION['permissions']['edit']['vehicles']) { |
421 | - echo "<td><a class='btn btn-primary btn-xs' href='" . $settings['url'] . "editVeh/" . $veh->id . "'>"; |
|
421 | + echo "<td><a class='btn btn-primary btn-xs' href='".$settings['url']."editVeh/".$veh->id."'>"; |
|
422 | 422 | echo "<i class='fa fa-pencil'></i></a></td>"; |
423 | 423 | } |
424 | 424 | |
425 | 425 | while ($row = mysqli_fetch_assoc($result_of_query)) { |
426 | 426 | echo "<tr>"; |
427 | - echo "<td>" . carName($row["classname"]) . "</td>"; |
|
428 | - echo "<td class='hidden-xs'> " . carType($row["type"], $lang) . "</td>"; |
|
429 | - echo "<td class='hidden-xs'> " . $row["plate"] . "</td>"; |
|
427 | + echo "<td>".carName($row["classname"])."</td>"; |
|
428 | + echo "<td class='hidden-xs'> ".carType($row["type"], $lang)."</td>"; |
|
429 | + echo "<td class='hidden-xs'> ".$row["plate"]."</td>"; |
|
430 | 430 | if ($_SESSION['permissions']['edit']['vehicles']) { |
431 | - echo "<td><a class='btn btn-primary btn-xs' href='" . $settings['url'] . "editVeh/" . $row["id"] . "'>"; |
|
431 | + echo "<td><a class='btn btn-primary btn-xs' href='".$settings['url']."editVeh/".$row["id"]."'>"; |
|
432 | 432 | echo "<i class='fa fa-pencil'></i></a></td>"; |
433 | 433 | } |
434 | 434 | echo "</tr>"; |
435 | 435 | } |
436 | 436 | |
437 | 437 | echo '</tr></tbody></table>'; |
438 | - echo '<a style="float: right; padding-right:15px;" href="' . $settings['url'] . 'vehicles/' . $player->playerid . '"><h4>' . $lang['more'] . ' <i class="fa fa-arrow-circle-right"></i></h4></a>'; |
|
438 | + echo '<a style="float: right; padding-right:15px;" href="'.$settings['url'].'vehicles/'.$player->playerid.'"><h4>'.$lang['more'].' <i class="fa fa-arrow-circle-right"></i></h4></a>'; |
|
439 | 439 | |
440 | - } else echo '<h4>' . errorMessage(32, $lang) . '</h4>'; |
|
440 | + } else echo '<h4>'.errorMessage(32, $lang).'</h4>'; |
|
441 | 441 | ?> |
442 | 442 | </div> |
443 | 443 | </div> |
@@ -446,7 +446,7 @@ discard block |
||
446 | 446 | <div class="tab-pane fade" id="notes"> |
447 | 447 | <div class="table-responsive"> |
448 | 448 | <?php |
449 | - $sql = 'SELECT * FROM `notes` WHERE `uid` = "' . $uID . '" ORDER BY `note_updated` DESC LIMIT 10'; |
|
449 | + $sql = 'SELECT * FROM `notes` WHERE `uid` = "'.$uID.'" ORDER BY `note_updated` DESC LIMIT 10'; |
|
450 | 450 | $result_of_query = $db_link->query($sql); |
451 | 451 | if ($result_of_query->num_rows > 0) { |
452 | 452 | ?> |
@@ -461,8 +461,8 @@ discard block |
||
461 | 461 | <?php |
462 | 462 | while ($row = mysqli_fetch_assoc($result_of_query)) { |
463 | 463 | echo "<tr>"; |
464 | - echo "<td>" . $row["staff_name"] . "</td>"; |
|
465 | - echo "<td>" . $row["note_text"] . "</td>"; |
|
464 | + echo "<td>".$row["staff_name"]."</td>"; |
|
465 | + echo "<td>".$row["note_text"]."</td>"; |
|
466 | 466 | echo "</tr>"; |
467 | 467 | }; |
468 | 468 | ?> |
@@ -474,7 +474,7 @@ discard block |
||
474 | 474 | <i class="fa fa-file-o"></i></a>'; |
475 | 475 | } |
476 | 476 | } else { |
477 | - echo '<h1>' . $lang['noNotes'] . '</h1>'; |
|
477 | + echo '<h1>'.$lang['noNotes'].'</h1>'; |
|
478 | 478 | if ($_SESSION['permissions']['edit']['notes']) { |
479 | 479 | echo '<a data-toggle="modal" href="#add_note" class="btn btn-primary btn-xs" style="float: right; margin-right:5px; margin-bottom:5px;"> |
480 | 480 | <i class="fa fa-file-o"></i></a>'; |
@@ -488,22 +488,22 @@ discard block |
||
488 | 488 | <div class="tab-pane fade well" id="wanted"> |
489 | 489 | <div class="table-responsive"> |
490 | 490 | <?php |
491 | - $sql = "SELECT `wantedCrimes` FROM `wanted` WHERE `wantedID`='" . $player->playerid . "'"; |
|
491 | + $sql = "SELECT `wantedCrimes` FROM `wanted` WHERE `wantedID`='".$player->playerid."'"; |
|
492 | 492 | $result_of_query = $db_link->query($sql); |
493 | 493 | if ($result_of_query->num_rows > 0) { |
494 | - echo "<h3>" . $lang['crimes'] . "</h3>"; |
|
494 | + echo "<h3>".$lang['crimes']."</h3>"; |
|
495 | 495 | while ($row = mysqli_fetch_assoc($result_of_query)) { |
496 | 496 | if ($row['wantedCrimes'] !== "[]") { |
497 | 497 | $return = stripArray($row['wantedCrimes'], 3); |
498 | 498 | foreach ($return as $value) { |
499 | - echo "<button type='button' id=" . $value . " class='wanted btn btn-xs btn-theme01' style='margin-bottom: 3px;'>" . crimeName($value) . "</button> "; |
|
499 | + echo "<button type='button' id=".$value." class='wanted btn btn-xs btn-theme01' style='margin-bottom: 3px;'>".crimeName($value)."</button> "; |
|
500 | 500 | } |
501 | 501 | } else { |
502 | - echo "<h3>" . errorMessage(34, $lang) . "</h3>"; |
|
502 | + echo "<h3>".errorMessage(34, $lang)."</h3>"; |
|
503 | 503 | |
504 | 504 | } |
505 | 505 | } |
506 | - } else echo "<h3>" . errorMessage(34, $lang) . "</h3>"; |
|
506 | + } else echo "<h3>".errorMessage(34, $lang)."</h3>"; |
|
507 | 507 | ?> |
508 | 508 | |
509 | 509 | </div> |
@@ -522,11 +522,11 @@ discard block |
||
522 | 522 | <div class="modal-header"> |
523 | 523 | <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> |
524 | 524 | <h4 class="modal-title"><i class="fa fa-pencil"></i> |
525 | - <?php echo $lang['edit'] . " " . $lang['civ'] . " " . $lang['inventory']; ?> |
|
525 | + <?php echo $lang['edit']." ".$lang['civ']." ".$lang['inventory']; ?> |
|
526 | 526 | </h4> |
527 | 527 | </div> |
528 | 528 | <?php if ($_SESSION['permissions']['edit']['inventory']) { ?> |
529 | - <form method="post" action="<?php echo $settings['url'] . 'editPlayer/' . $uID; ?>" |
|
529 | + <form method="post" action="<?php echo $settings['url'].'editPlayer/'.$uID; ?>" |
|
530 | 530 | <?php echo formtoken::getField() ?> |
531 | 531 | role="form"> |
532 | 532 | <div class="modal-body"> |
@@ -556,11 +556,11 @@ discard block |
||
556 | 556 | <div class="modal-header"> |
557 | 557 | <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> |
558 | 558 | <h4 class="modal-title"><i class="fa fa-pencil"></i> |
559 | - <?php echo $lang['edit'] . " " . $lang['medic'] . " " . $lang['inventory']; ?> |
|
559 | + <?php echo $lang['edit']." ".$lang['medic']." ".$lang['inventory']; ?> |
|
560 | 560 | </h4> |
561 | 561 | </div> |
562 | 562 | <?php if ($_SESSION['permissions']['edit']['inventory']) { ?> |
563 | - <form method="post" action="<?php echo $settings['url'] . 'editPlayer/' . $uID; ?>" |
|
563 | + <form method="post" action="<?php echo $settings['url'].'editPlayer/'.$uID; ?>" |
|
564 | 564 | <?php echo formtoken::getField() ?> |
565 | 565 | role="form"> |
566 | 566 | <div class="modal-body"> |
@@ -590,11 +590,11 @@ discard block |
||
590 | 590 | <div class="modal-header"> |
591 | 591 | <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> |
592 | 592 | <h4 class="modal-title"><i class="fa fa-pencil"></i> |
593 | - <?php echo $lang['edit'] . " " . $lang['police'] . " " . $lang['inventory']; ?> |
|
593 | + <?php echo $lang['edit']." ".$lang['police']." ".$lang['inventory']; ?> |
|
594 | 594 | </h4> |
595 | 595 | </div> |
596 | 596 | <?php if ($_SESSION['permissions']['edit']['inventory']) { ?> |
597 | - <form method="post" action="<?php echo $settings['url'] . 'editPlayer/' . $uID; ?>" |
|
597 | + <form method="post" action="<?php echo $settings['url'].'editPlayer/'.$uID; ?>" |
|
598 | 598 | role="form"> |
599 | 599 | <?php echo formtoken::getField() ?> |
600 | 600 | <div class="modal-body"> |
@@ -623,11 +623,11 @@ discard block |
||
623 | 623 | <div class="modal-header"> |
624 | 624 | <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> |
625 | 625 | <h4 class="modal-title"><i class="fa fa-pencil"></i> |
626 | - <?php echo $lang['new'] . " " . $lang['note']; ?> |
|
626 | + <?php echo $lang['new']." ".$lang['note']; ?> |
|
627 | 627 | </h4> |
628 | 628 | </div> |
629 | 629 | <?php if ($_SESSION['permissions']['edit']['notes']) { ?> |
630 | - <form method="post" action="<?php echo $settings['url'] . 'editPlayer/' . $uID; ?>" role="form"> |
|
630 | + <form method="post" action="<?php echo $settings['url'].'editPlayer/'.$uID; ?>" role="form"> |
|
631 | 631 | <div class="modal-body"> |
632 | 632 | <?php echo formtoken::getField() ?> |
633 | 633 | <div class="form-group"> |
@@ -657,11 +657,11 @@ discard block |
||
657 | 657 | <div class="modal-header"> |
658 | 658 | <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> |
659 | 659 | <h4 class="modal-title"><i class="fa fa-pencil"></i> |
660 | - <?php echo $lang['edit'] . " " . $lang['player']; ?> |
|
660 | + <?php echo $lang['edit']." ".$lang['player']; ?> |
|
661 | 661 | </h4> |
662 | 662 | </div> |
663 | 663 | <?php if ($_SESSION['permissions']['edit']['player']) { ?> |
664 | - <form method="post" action="<?php echo $settings['url'] . 'editPlayer/' . $uID; ?>" role="form"> |
|
664 | + <form method="post" action="<?php echo $settings['url'].'editPlayer/'.$uID; ?>" role="form"> |
|
665 | 665 | <div class="modal-body"> |
666 | 666 | <?php echo formtoken::getField() ?> |
667 | 667 | <div class="form-group"> |
@@ -670,42 +670,42 @@ discard block |
||
670 | 670 | <div class="row"> |
671 | 671 | <center> |
672 | 672 | <?php if ($_SESSION['permissions']['edit']['bank']) { |
673 | - echo "<h4>" . $lang['cash'] . ": <input id='player_cash' name='player_cash' type='number' value='" . $player->cash . "'>"; |
|
674 | - echo "<h4>" . $lang['bank'] . ": <input id='player_bank' name='player_bank' type='number' value='" . $player->bankacc . "'>"; |
|
673 | + echo "<h4>".$lang['cash'].": <input id='player_cash' name='player_cash' type='number' value='".$player->cash."'>"; |
|
674 | + echo "<h4>".$lang['bank'].": <input id='player_bank' name='player_bank' type='number' value='".$player->bankacc."'>"; |
|
675 | 675 | } ?> |
676 | 676 | <?php if ($_SESSION['permissions']['edit']['ranks']) { |
677 | - echo "<h4>" . $lang['cop'] . ": "; |
|
677 | + echo "<h4>".$lang['cop'].": "; |
|
678 | 678 | echo "<select id='player_coplvl' name='player_coplvl'>"; |
679 | 679 | for ($lvl = 0; |
680 | 680 | $lvl <= $settings['maxLevels']['cop']; |
681 | 681 | $lvl++) { |
682 | - echo '<option value="' . $lvl . '"' . select($lvl, $player->coplevel) . '>' . $lvl . '</option>'; |
|
682 | + echo '<option value="'.$lvl.'"'.select($lvl, $player->coplevel).'>'.$lvl.'</option>'; |
|
683 | 683 | } |
684 | 684 | echo "</select>"; |
685 | - echo "<h4>" . $lang['medic'] . ": "; |
|
685 | + echo "<h4>".$lang['medic'].": "; |
|
686 | 686 | echo "<select id='player_medlvl' name='player_medlvl'>"; |
687 | 687 | for ($lvl = 0; |
688 | 688 | $lvl <= $settings['maxLevels']['medic']; |
689 | 689 | $lvl++) { |
690 | - echo '<option value="' . $lvl . '"' . select($lvl, $player->mediclevel) . '>' . $lvl . '</option>'; |
|
690 | + echo '<option value="'.$lvl.'"'.select($lvl, $player->mediclevel).'>'.$lvl.'</option>'; |
|
691 | 691 | } |
692 | 692 | echo "</select>"; |
693 | 693 | |
694 | 694 | if ($_SESSION['permissions']['edit']['ignLVL']) { |
695 | - echo "<h4>" . $lang['admin'] . ": "; |
|
695 | + echo "<h4>".$lang['admin'].": "; |
|
696 | 696 | echo "<select id='player_adminlvl' name='player_adminlvl'>"; |
697 | 697 | for ($lvl = 0; |
698 | 698 | $lvl <= $settings['maxLevels']['admin']; |
699 | 699 | $lvl++) { |
700 | - echo '<option value="' . $lvl . '"' . select($lvl, $player->adminlevel) . '>' . $lvl . '</option>'; |
|
700 | + echo '<option value="'.$lvl.'"'.select($lvl, $player->adminlevel).'>'.$lvl.'</option>'; |
|
701 | 701 | } |
702 | 702 | echo "</select>"; |
703 | - echo "<h4>" . $lang['donator'] . ": "; |
|
703 | + echo "<h4>".$lang['donator'].": "; |
|
704 | 704 | echo "<select id='player_donlvl' name='player_donlvl'>"; |
705 | 705 | for ($lvl = 0; |
706 | 706 | $lvl <= $settings['maxLevels']['donator']; |
707 | 707 | $lvl++) { |
708 | - echo '<option value="' . $lvl . '"' . select($lvl, $player->$settings['donorFormat']) . '>' . $lvl . '</option>'; |
|
708 | + echo '<option value="'.$lvl.'"'.select($lvl, $player->$settings['donorFormat']).'>'.$lvl.'</option>'; |
|
709 | 709 | } |
710 | 710 | echo "</select>"; |
711 | 711 | } |
@@ -719,7 +719,7 @@ discard block |
||
719 | 719 | <button class="btn btn-primary" type="submit"><?php echo $lang['subChange']; ?></button> |
720 | 720 | </div> |
721 | 721 | </form> |
722 | - <?php } else "<h1>" . errorMessage(5, $lang) . "/<h1>"; ?> |
|
722 | + <?php } else "<h1>".errorMessage(5, $lang)."/<h1>"; ?> |
|
723 | 723 | </div> |
724 | 724 | </div> |
725 | 725 | </div> |
@@ -765,4 +765,4 @@ discard block |
||
765 | 765 | }); |
766 | 766 | </script> |
767 | 767 | |
768 | -<?php } else echo "<h1>" . errorMessage(36, $lang) . "</h1>"; |
|
769 | 768 | \ No newline at end of file |
769 | +<?php } else echo "<h1>".errorMessage(36, $lang)."</h1>"; |
|
770 | 770 | \ No newline at end of file |
@@ -46,12 +46,24 @@ discard block |
||
46 | 46 | if ($result->num_rows > 0) { |
47 | 47 | $player = $result->fetch_object(); |
48 | 48 | |
49 | - if ($coplevel != $player->coplevel) logAction($_SESSION['user_name'], $lang['edited'] . " " . nameID($player->playerid, $db_link) . "(" . $player->playerid . ") " . $lang['cop'] . " " . $lang['level'] . " " . $lang['from'] . " (" . $player->coplevel . ") " . $lang['to'] . " (" . $coplevel . ")", 2); |
|
50 | - if ($mediclevel != $player->mediclevel) logAction($_SESSION['user_name'], $lang['edited'] . " " . nameID($player->playerid, $db_link) . "(" . $player->playerid . ") " . $lang['medic'] . " " . $lang['level'] . " " . $lang['from'] . " (" . $player->mediclevel . ") " . $lang['to'] . " (" . $mediclevel . ")", 2); |
|
51 | - if ($donorlevel != $player->$settings['donorFormat']) logAction($_SESSION['user_name'], $lang['edited'] . " " . nameID($player->playerid, $db_link) . "(" . $player->playerid . ") " . $lang['donator'] . " " . $lang['level'] . " " . $lang['from'] . " (" . $player->$settings['donorFormat'] . ") " . $lang['to'] . " (" . $donorlevel . ")", 2); |
|
52 | - if ($adminlevel != $player->adminlevel) logAction($_SESSION['user_name'], $lang['edited'] . " " . nameID($player->playerid, $db_link) . "(" . $player->playerid . ") " . $lang['admin'] . " " . $lang['level'] . " " . $lang['from'] . " (" . $player->adminlevel . ") " . $lang['to'] . " (" . $adminlevel . ")", 2); |
|
53 | - if ($cash != $player->cash) logAction($_SESSION['user_name'], $lang['edited'] . " " . nameID($player->playerid, $db_link) . "(" . $player->playerid . ") " . $lang['cash'] . " " . $lang['from'] . " (" . $player->cash . ") " . $lang['to'] . " (" . $cash . ")", 2); |
|
54 | - if ($bankacc != $player->bankacc) logAction($_SESSION['user_name'], $lang['edited'] . " " . nameID($player->playerid, $db_link) . "(" . $player->playerid . ") " . $lang['bank'] . " " . $lang['from'] . " (" . $player->bankacc . ") " . $lang['to'] . " (" . $bankacc . ")", 2); |
|
49 | + if ($coplevel != $player->coplevel) { |
|
50 | + logAction($_SESSION['user_name'], $lang['edited'] . " " . nameID($player->playerid, $db_link) . "(" . $player->playerid . ") " . $lang['cop'] . " " . $lang['level'] . " " . $lang['from'] . " (" . $player->coplevel . ") " . $lang['to'] . " (" . $coplevel . ")", 2); |
|
51 | + } |
|
52 | + if ($mediclevel != $player->mediclevel) { |
|
53 | + logAction($_SESSION['user_name'], $lang['edited'] . " " . nameID($player->playerid, $db_link) . "(" . $player->playerid . ") " . $lang['medic'] . " " . $lang['level'] . " " . $lang['from'] . " (" . $player->mediclevel . ") " . $lang['to'] . " (" . $mediclevel . ")", 2); |
|
54 | + } |
|
55 | + if ($donorlevel != $player->$settings['donorFormat']) { |
|
56 | + logAction($_SESSION['user_name'], $lang['edited'] . " " . nameID($player->playerid, $db_link) . "(" . $player->playerid . ") " . $lang['donator'] . " " . $lang['level'] . " " . $lang['from'] . " (" . $player->$settings['donorFormat'] . ") " . $lang['to'] . " (" . $donorlevel . ")", 2); |
|
57 | + } |
|
58 | + if ($adminlevel != $player->adminlevel) { |
|
59 | + logAction($_SESSION['user_name'], $lang['edited'] . " " . nameID($player->playerid, $db_link) . "(" . $player->playerid . ") " . $lang['admin'] . " " . $lang['level'] . " " . $lang['from'] . " (" . $player->adminlevel . ") " . $lang['to'] . " (" . $adminlevel . ")", 2); |
|
60 | + } |
|
61 | + if ($cash != $player->cash) { |
|
62 | + logAction($_SESSION['user_name'], $lang['edited'] . " " . nameID($player->playerid, $db_link) . "(" . $player->playerid . ") " . $lang['cash'] . " " . $lang['from'] . " (" . $player->cash . ") " . $lang['to'] . " (" . $cash . ")", 2); |
|
63 | + } |
|
64 | + if ($bankacc != $player->bankacc) { |
|
65 | + logAction($_SESSION['user_name'], $lang['edited'] . " " . nameID($player->playerid, $db_link) . "(" . $player->playerid . ") " . $lang['bank'] . " " . $lang['from'] . " (" . $player->bankacc . ") " . $lang['to'] . " (" . $bankacc . ")", 2); |
|
66 | + } |
|
55 | 67 | |
56 | 68 | $update = "UPDATE `players` SET coplevel = '$coplevel', mediclevel = '$mediclevel', " . $settings['donorFormat'] . "= '$donorlevel', adminlevel = '$adminlevel', cash = '$cash', bankacc = '$bankacc' WHERE `uid` = '$uID';"; |
57 | 69 | $result_of_query = $db_link->query($update); |
@@ -72,11 +84,21 @@ discard block |
||
72 | 84 | if (is_null($donorlevel)) { |
73 | 85 | $donorlevel = $player->$settings['donorFormat']; |
74 | 86 | } |
75 | - if ($coplevel != $player->coplevel) logAction($_SESSION['user_name'], $lang['edited'] . " " . nameID($player->playerid, $db_link) . "(" . $player->playerid . ") " . $lang['cop'] . " " . $lang['level'] . " " . $lang['from'] . " (" . $player->coplevel . ") " . $lang['to'] . " (" . $coplevel . ")", 2); |
|
76 | - if ($mediclevel != $player->mediclevel) logAction($_SESSION['user_name'], $lang['edited'] . " " . nameID($player->playerid, $db_link) . "(" . $player->playerid . ") " . $lang['medic'] . " " . $lang['level'] . " " . $lang['from'] . " (" . $player->mediclevel . ") " . $lang['to'] . " (" . $mediclevel . ")", 2); |
|
77 | - if ($donorlevel != $player->$settings['donorFormat']) logAction($_SESSION['user_name'], $lang['edited'] . " " . nameID($player->playerid, $db_link) . "(" . $player->playerid . ") " . $lang['donator'] . " " . $lang['level'] . " " . $lang['from'] . " (" . $player->$settings['donorFormat'] . ") " . $lang['to'] . " (" . $donorlevel . ")", 2); |
|
78 | - if ($cash != $player->cash) logAction($_SESSION['user_name'], $lang['edited'] . " " . nameID($player->playerid, $db_link) . "(" . $player->playerid . ") " . $lang['cash'] . " " . $lang['from'] . " (" . $player->cash . ") " . $lang['to'] . " (" . $cash . ")", 2); |
|
79 | - if ($bankacc != $player->bankacc) logAction($_SESSION['user_name'], $lang['edited'] . " " . nameID($player->playerid, $db_link) . "(" . $player->playerid . ") " . $lang['bank'] . " " . $lang['from'] . " (" . $player->bankacc . ") " . $lang['to'] . " (" . $bankacc . ")", 2); |
|
87 | + if ($coplevel != $player->coplevel) { |
|
88 | + logAction($_SESSION['user_name'], $lang['edited'] . " " . nameID($player->playerid, $db_link) . "(" . $player->playerid . ") " . $lang['cop'] . " " . $lang['level'] . " " . $lang['from'] . " (" . $player->coplevel . ") " . $lang['to'] . " (" . $coplevel . ")", 2); |
|
89 | + } |
|
90 | + if ($mediclevel != $player->mediclevel) { |
|
91 | + logAction($_SESSION['user_name'], $lang['edited'] . " " . nameID($player->playerid, $db_link) . "(" . $player->playerid . ") " . $lang['medic'] . " " . $lang['level'] . " " . $lang['from'] . " (" . $player->mediclevel . ") " . $lang['to'] . " (" . $mediclevel . ")", 2); |
|
92 | + } |
|
93 | + if ($donorlevel != $player->$settings['donorFormat']) { |
|
94 | + logAction($_SESSION['user_name'], $lang['edited'] . " " . nameID($player->playerid, $db_link) . "(" . $player->playerid . ") " . $lang['donator'] . " " . $lang['level'] . " " . $lang['from'] . " (" . $player->$settings['donorFormat'] . ") " . $lang['to'] . " (" . $donorlevel . ")", 2); |
|
95 | + } |
|
96 | + if ($cash != $player->cash) { |
|
97 | + logAction($_SESSION['user_name'], $lang['edited'] . " " . nameID($player->playerid, $db_link) . "(" . $player->playerid . ") " . $lang['cash'] . " " . $lang['from'] . " (" . $player->cash . ") " . $lang['to'] . " (" . $cash . ")", 2); |
|
98 | + } |
|
99 | + if ($bankacc != $player->bankacc) { |
|
100 | + logAction($_SESSION['user_name'], $lang['edited'] . " " . nameID($player->playerid, $db_link) . "(" . $player->playerid . ") " . $lang['bank'] . " " . $lang['from'] . " (" . $player->bankacc . ") " . $lang['to'] . " (" . $bankacc . ")", 2); |
|
101 | + } |
|
80 | 102 | |
81 | 103 | $update = "UPDATE `players` SET coplevel = '$coplevel', mediclevel = '$mediclevel', " . $settings['donorFormat'] . "= '$donorlevel', cash = '$cash', bankacc = '$bankacc' WHERE `uid` = '$uID';"; |
82 | 104 | $result_of_query = $db_link->query($update); |
@@ -88,8 +110,12 @@ discard block |
||
88 | 110 | } elseif ($_SESSION['user_level'] >= 2) { |
89 | 111 | $coplevel = intval($_POST["player_coplvl"]); |
90 | 112 | $mediclevel = intval($_POST["player_medlvl"]); |
91 | - if ($coplevel != $player->coplevel) logAction($_SESSION['user_name'], $lang['edited'] . " " . nameID($player->playerid, $db_link) . "(" . $player->playerid . ") " . $lang['cop'] . " " . $lang['level'] . " " . $lang['from'] . " (" . $player->coplevel . ") " . $lang['to'] . " (" . $coplevel . ")", 2); |
|
92 | - if ($mediclevel != $player->mediclevel) logAction($_SESSION['user_name'], $lang['edited'] . " " . nameID($player->playerid, $db_link) . "(" . $player->playerid . ") " . $lang['medic'] . " " . $lang['level'] . " " . $lang['from'] . " (" . $player->mediclevel . ") " . $lang['to'] . " (" . $mediclevel . ")", 2); |
|
113 | + if ($coplevel != $player->coplevel) { |
|
114 | + logAction($_SESSION['user_name'], $lang['edited'] . " " . nameID($player->playerid, $db_link) . "(" . $player->playerid . ") " . $lang['cop'] . " " . $lang['level'] . " " . $lang['from'] . " (" . $player->coplevel . ") " . $lang['to'] . " (" . $coplevel . ")", 2); |
|
115 | + } |
|
116 | + if ($mediclevel != $player->mediclevel) { |
|
117 | + logAction($_SESSION['user_name'], $lang['edited'] . " " . nameID($player->playerid, $db_link) . "(" . $player->playerid . ") " . $lang['medic'] . " " . $lang['level'] . " " . $lang['from'] . " (" . $player->mediclevel . ") " . $lang['to'] . " (" . $mediclevel . ")", 2); |
|
118 | + } |
|
93 | 119 | |
94 | 120 | $update = "UPDATE `players` SET coplevel = '$coplevel', mediclevel = '$mediclevel' WHERE `uid` = '$uID';"; |
95 | 121 | $result_of_query = $db_link->query($update); |
@@ -391,7 +417,10 @@ discard block |
||
391 | 417 | </tbody> |
392 | 418 | </table> |
393 | 419 | <?php echo '<a style="float: right;" href="' . $settings['url'] . 'houses/' . $player->playerid . '"><h4>' . $lang['more'] . ' <i class="fa fa-arrow-circle-right"></i></h4></a>'; |
394 | - } else echo '<h4>' . errorMessage(31, $lang) . '</h4>'; ?> |
|
420 | + } else { |
|
421 | + echo '<h4>' . errorMessage(31, $lang) . '</h4>'; |
|
422 | + } |
|
423 | + ?> |
|
395 | 424 | </div> |
396 | 425 | </div> |
397 | 426 | <?php } |
@@ -437,7 +466,9 @@ discard block |
||
437 | 466 | echo '</tr></tbody></table>'; |
438 | 467 | echo '<a style="float: right; padding-right:15px;" href="' . $settings['url'] . 'vehicles/' . $player->playerid . '"><h4>' . $lang['more'] . ' <i class="fa fa-arrow-circle-right"></i></h4></a>'; |
439 | 468 | |
440 | - } else echo '<h4>' . errorMessage(32, $lang) . '</h4>'; |
|
469 | + } else { |
|
470 | + echo '<h4>' . errorMessage(32, $lang) . '</h4>'; |
|
471 | + } |
|
441 | 472 | ?> |
442 | 473 | </div> |
443 | 474 | </div> |
@@ -503,7 +534,9 @@ discard block |
||
503 | 534 | |
504 | 535 | } |
505 | 536 | } |
506 | - } else echo "<h3>" . errorMessage(34, $lang) . "</h3>"; |
|
537 | + } else { |
|
538 | + echo "<h3>" . errorMessage(34, $lang) . "</h3>"; |
|
539 | + } |
|
507 | 540 | ?> |
508 | 541 | |
509 | 542 | </div> |
@@ -544,7 +577,10 @@ discard block |
||
544 | 577 | <button class="btn btn-primary" type="submit"><?php echo $lang['subChange']; ?></button> |
545 | 578 | </div> |
546 | 579 | </form> |
547 | - <?php } else errorMessage(5, $lang); ?> |
|
580 | + <?php } else { |
|
581 | + errorMessage(5, $lang); |
|
582 | +} |
|
583 | +?> |
|
548 | 584 | </div> |
549 | 585 | </div> |
550 | 586 | </div> |
@@ -578,7 +614,10 @@ discard block |
||
578 | 614 | <button class="btn btn-primary" type="submit"><?php echo $lang['subChange']; ?></button> |
579 | 615 | </div> |
580 | 616 | </form> |
581 | - <?php } else errorMessage(5, $lang); ?> |
|
617 | + <?php } else { |
|
618 | + errorMessage(5, $lang); |
|
619 | +} |
|
620 | +?> |
|
582 | 621 | </div> |
583 | 622 | </div> |
584 | 623 | </div> |
@@ -612,7 +651,10 @@ discard block |
||
612 | 651 | <button class="btn btn-primary" type="submit"><?php echo $lang['subChange']; ?></button> |
613 | 652 | </div> |
614 | 653 | </form> |
615 | - <?php } else errorMessage(5, $lang); ?> |
|
654 | + <?php } else { |
|
655 | + errorMessage(5, $lang); |
|
656 | +} |
|
657 | +?> |
|
616 | 658 | </div> |
617 | 659 | </div> |
618 | 660 | </div> |
@@ -645,7 +687,10 @@ discard block |
||
645 | 687 | <button class="btn btn-primary" type="submit"><?php echo $lang['subChange']; ?></button> |
646 | 688 | </div> |
647 | 689 | </form> |
648 | - <?php } else errorMessage(5, $lang); ?> |
|
690 | + <?php } else { |
|
691 | + errorMessage(5, $lang); |
|
692 | +} |
|
693 | +?> |
|
649 | 694 | </div> |
650 | 695 | </div> |
651 | 696 | </div> |
@@ -719,7 +764,10 @@ discard block |
||
719 | 764 | <button class="btn btn-primary" type="submit"><?php echo $lang['subChange']; ?></button> |
720 | 765 | </div> |
721 | 766 | </form> |
722 | - <?php } else "<h1>" . errorMessage(5, $lang) . "/<h1>"; ?> |
|
767 | + <?php } else { |
|
768 | + "<h1>" . errorMessage(5, $lang) . "/<h1>"; |
|
769 | +} |
|
770 | +?> |
|
723 | 771 | </div> |
724 | 772 | </div> |
725 | 773 | </div> |
@@ -765,4 +813,6 @@ discard block |
||
765 | 813 | }); |
766 | 814 | </script> |
767 | 815 | |
768 | -<?php } else echo "<h1>" . errorMessage(36, $lang) . "</h1>"; |
|
769 | 816 | \ No newline at end of file |
817 | +<?php } else { |
|
818 | + echo "<h1>" . errorMessage(36, $lang) . "</h1>"; |
|
819 | +} |