@@ -1,15 +1,15 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | $db_link = serverConnect(); |
3 | 3 | |
4 | -$max = 'LIMIT ' . ($pageNum - 1) * $_SESSION['items'] . ',' . $_SESSION['items']; |
|
4 | +$max = 'LIMIT '.($pageNum - 1) * $_SESSION['items'].','.$_SESSION['items']; |
|
5 | 5 | |
6 | 6 | if (isset($search)) { |
7 | 7 | $sql = "SELECT `uid` FROM `players` WHERE `uid` LIKE '$search' OR `name` LIKE '%$search%' OR $playerIdColumn LIKE '$search' AND `mediclevel` >= '1' ORDER BY `mediclevel` DESC;"; |
8 | 8 | $result_of_query = $db_link->query($sql); |
9 | 9 | $total_records = mysqli_num_rows($result_of_query); |
10 | 10 | if ($pageNum > $total_records) $pageNum = $total_records; |
11 | - $sql = "SELECT `name`, `mediclevel`, `uid`, $playerIdColumn as `playerid` FROM `players` WHERE `uid` LIKE '" . $search . "' OR `name` LIKE '%$search%' OR $playerIdColumn LIKE '$search' AND `mediclevel` >= '1' ORDER BY `mediclevel` DESC $max;"; |
|
12 | - logAction($_SESSION['user_name'], $lang['searched'] . ' (' . $search . ') ' . $lang['in'] . ' ' . $lang['players'], 1); |
|
11 | + $sql = "SELECT `name`, `mediclevel`, `uid`, $playerIdColumn as `playerid` FROM `players` WHERE `uid` LIKE '".$search."' OR `name` LIKE '%$search%' OR $playerIdColumn LIKE '$search' AND `mediclevel` >= '1' ORDER BY `mediclevel` DESC $max;"; |
|
12 | + logAction($_SESSION['user_name'], $lang['searched'].' ('.$search.') '.$lang['in'].' '.$lang['players'], 1); |
|
13 | 13 | } else { |
14 | 14 | $sql = "SELECT `uid` FROM `players` WHERE `mediclevel` >= '1' ORDER BY `mediclevel` DESC;"; |
15 | 15 | $result_of_query = $db_link->query($sql); |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | } |
26 | 26 | $pids = implode(',', $pids); |
27 | 27 | if ($settings['steamAPI'] && $_SESSION['permissions']['view']['steam'] && !$settings['performance'] && $settings['vacTest']) { |
28 | - $api = "http://api.steampowered.com/ISteamUser/GetPlayerBans/v1/?key=" . $settings['steamAPI'] . "&steamids=" . $pids; |
|
28 | + $api = "http://api.steampowered.com/ISteamUser/GetPlayerBans/v1/?key=".$settings['steamAPI']."&steamids=".$pids; |
|
29 | 29 | $bans = get_object_vars(json_decode(file_get_contents($api))); |
30 | 30 | $bans = $bans['players']; |
31 | 31 | $steamPlayers = count($bans); |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | <th><i class="fa fa-eye"></i><?php echo $lang['playerID']; ?></th> |
54 | 54 | <th><i class="fa fa-user"></i><?php echo $lang['rank']; ?></th> |
55 | 55 | <?php if ($_SESSION['permissions']['edit']['player']) { |
56 | - echo '<th><i class="fa fa-pencil"></i> ' . $lang['edit'] . '</th>'; |
|
56 | + echo '<th><i class="fa fa-pencil"></i> '.$lang['edit'].'</th>'; |
|
57 | 57 | } |
58 | 58 | ?> |
59 | 59 | </tr> |
@@ -63,26 +63,26 @@ discard block |
||
63 | 63 | while ($row = mysqli_fetch_assoc($result_of_query)) { |
64 | 64 | $playersID = $row["playerid"]; |
65 | 65 | echo "<tr>"; |
66 | - echo "<td>" . $row["name"] . "</td>"; |
|
67 | - echo "<td>" . $row["playerid"] . "</td>"; |
|
68 | - echo "<td class='hidden-xs'>" . $row["mediclevel"] . "</td>"; |
|
66 | + echo "<td>".$row["name"]."</td>"; |
|
67 | + echo "<td>".$row["playerid"]."</td>"; |
|
68 | + echo "<td class='hidden-xs'>".$row["mediclevel"]."</td>"; |
|
69 | 69 | if ($_SESSION['permissions']['edit']['player']) { |
70 | - echo "<td><a class='btn btn-primary btn-xs' href='" . $settings['url'] . "editPlayer/" . $row["uid"] . "'>"; |
|
70 | + echo "<td><a class='btn btn-primary btn-xs' href='".$settings['url']."editPlayer/".$row["uid"]."'>"; |
|
71 | 71 | echo "<i class='fa fa-pencil'></i></a></td>"; |
72 | 72 | } else { |
73 | - echo "<td><a class='btn btn-primary btn-xs' href='" . $settings['url'] . "editPlayer/" . $row["uid"] . "'>"; |
|
73 | + echo "<td><a class='btn btn-primary btn-xs' href='".$settings['url']."editPlayer/".$row["uid"]."'>"; |
|
74 | 74 | echo "<i class='fa fa-eye'></i></a></td>"; |
75 | 75 | } |
76 | 76 | if ($_SESSION['permissions']['view']['steam'] && $steamPlayers > 0) { |
77 | - echo "<td><a href='http://steamcommunity.com/profiles/" . $row["playerid"] . "' "; |
|
77 | + echo "<td><a href='http://steamcommunity.com/profiles/".$row["playerid"]."' "; |
|
78 | 78 | for ($player = 0; $player <= $steamPlayers; $player++) { |
79 | 79 | if ($bans[$player]->SteamId == $row['playerid']) { |
80 | 80 | if ($bans[$player]->VACBanned == true) { |
81 | - echo "<td><a href='http://steamcommunity.com/profiles/" . $row["playerid"] . "' "; |
|
81 | + echo "<td><a href='http://steamcommunity.com/profiles/".$row["playerid"]."' "; |
|
82 | 82 | echo "class='btn btn-danger btn-xs hidden-xs' target='_blank'><i class='fa fa-steam'></i></a>"; |
83 | 83 | |
84 | 84 | } else { |
85 | - echo "<td><a href='http://steamcommunity.com/profiles/" . $row["playerid"] . "' "; |
|
85 | + echo "<td><a href='http://steamcommunity.com/profiles/".$row["playerid"]."' "; |
|
86 | 86 | echo "class='btn btn-primary btn-xs hidden-xs' target='_blank'><i class='fa fa-steam'></i></a>"; } |
87 | 87 | } |
88 | 88 | } |
@@ -95,4 +95,4 @@ discard block |
||
95 | 95 | ?> |
96 | 96 | </div> |
97 | 97 | <?php |
98 | -} else echo '<h3>' . errorMessage(36, $lang) . '</h3>'; |
|
98 | +} else echo '<h3>'.errorMessage(36, $lang).'</h3>'; |
@@ -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 | +} |
@@ -262,7 +262,7 @@ |
||
262 | 262 | </table> |
263 | 263 | <?php echo '<a class="fa fa-caret-right fa-2x" style="float: right; padding-right:15px;" href="' . $settings['url'] . 'houses/' . $player->playerid . '"> More</a>'; |
264 | 264 | } else { |
265 | - echo errorMessage(31, $lang); |
|
265 | + echo errorMessage(31, $lang); |
|
266 | 266 | } ?> |
267 | 267 | </div> |
268 | 268 | </div> |
@@ -5,14 +5,14 @@ discard block |
||
5 | 5 | require_once("config/images.php"); |
6 | 6 | require_once("config/license.php"); |
7 | 7 | } else { |
8 | - require_once(realpath($settings['url']) . "config/carNames.php"); |
|
9 | - require_once(realpath($settings['url']) . "config/images.php"); |
|
10 | - require_once(realpath($settings['url']) . "config/license.php"); |
|
8 | + require_once(realpath($settings['url'])."config/carNames.php"); |
|
9 | + require_once(realpath($settings['url'])."config/images.php"); |
|
10 | + require_once(realpath($settings['url'])."config/license.php"); |
|
11 | 11 | } |
12 | 12 | |
13 | 13 | $db_link = serverConnect(); |
14 | 14 | |
15 | -$sql = "SELECT *, $playerIdColumn as playerid FROM `players` WHERE $playerIdColumn = '" . $_SESSION['playerid'] . "'"; |
|
15 | +$sql = "SELECT *, $playerIdColumn as playerid FROM `players` WHERE $playerIdColumn = '".$_SESSION['playerid']."'"; |
|
16 | 16 | $result = $db_link->query($sql); |
17 | 17 | if ($result->num_rows > 0) { |
18 | 18 | $player = $result->fetch_object(); |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | $temp .= chr($pGID & 0xFF); |
24 | 24 | $pGID >>= 8; |
25 | 25 | } |
26 | - $pGID = md5('BE' . $temp); |
|
26 | + $pGID = md5('BE'.$temp); |
|
27 | 27 | ?> |
28 | 28 | <div class="col-md-3" style="float:left; padding-top:20px;"> |
29 | 29 | <div class="panel panel-default"> |
@@ -37,27 +37,27 @@ discard block |
||
37 | 37 | $alias = str_replace('"[`', "", $player->aliases); |
38 | 38 | $alias = str_replace('`]"', "", $alias); |
39 | 39 | |
40 | - echo '<center><img alt="' . $alias . '" src="'. skinImage($player->civ_gear) .'">'; |
|
41 | - echo "<h4>" . $lang['aliases'] . ": " . $alias . "</h4>"; |
|
42 | - echo "<h4>" . $lang['uid'] . ": " . $player->uid . "</h4>"; |
|
43 | - echo "<h4>" . $lang['playerID'] . ": " . $player->playerid . "</h4>"; |
|
44 | - echo "<h4 style='word-wrap: break-word;'>" . $lang['GUID'] . ": " . $pGID . "</h4>"; |
|
40 | + echo '<center><img alt="'.$alias.'" src="'.skinImage($player->civ_gear).'">'; |
|
41 | + echo "<h4>".$lang['aliases'].": ".$alias."</h4>"; |
|
42 | + echo "<h4>".$lang['uid'].": ".$player->uid."</h4>"; |
|
43 | + echo "<h4>".$lang['playerID'].": ".$player->playerid."</h4>"; |
|
44 | + echo "<h4 style='word-wrap: break-word;'>".$lang['GUID'].": ".$pGID."</h4>"; |
|
45 | 45 | ?> |
46 | 46 | <i class="fa fa-2x fa-money"></i> |
47 | - <h4> <?php echo $lang['cash'] . ": " . $player->cash; ?> </h4> |
|
47 | + <h4> <?php echo $lang['cash'].": ".$player->cash; ?> </h4> |
|
48 | 48 | <i style="padding-left:15px;" class="fa fa-2x fa-bank"></i> |
49 | - <h4> <?php echo $lang['bank'] . ": " . $player->bankacc; ?> </h4> |
|
49 | + <h4> <?php echo $lang['bank'].": ".$player->bankacc; ?> </h4> |
|
50 | 50 | <?php |
51 | 51 | if ($player->arrested == 0) { |
52 | - echo "<h4><button type='button' id='arrested' class='arrest btn btn-xs btn-success'>" . $lang["not"] . " " . $lang["arrested"] . "</button></h4>"; |
|
52 | + echo "<h4><button type='button' id='arrested' class='arrest btn btn-xs btn-success'>".$lang["not"]." ".$lang["arrested"]."</button></h4>"; |
|
53 | 53 | } else { |
54 | - echo "<h4><button type='button' id='arrested' class='arrest btn btn-xs btn-theme01'>" . $lang["arrested"] . "</button></h4>"; |
|
54 | + echo "<h4><button type='button' id='arrested' class='arrest btn btn-xs btn-theme01'>".$lang["arrested"]."</button></h4>"; |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | if ($player->blacklist == 0) { |
58 | - echo "<h4><button type='button' id='blacklist' class='arrest btn btn-xs btn-success'>" . $lang["not"] . " " . $lang["blacklisted"] . "</button></h4>"; |
|
58 | + echo "<h4><button type='button' id='blacklist' class='arrest btn btn-xs btn-success'>".$lang["not"]." ".$lang["blacklisted"]."</button></h4>"; |
|
59 | 59 | } else { |
60 | - echo "<h4><button type='button' id='blacklist' class='arrest btn btn-xs btn-theme01'>" . $lang["blacklisted"] . "</button></h4>"; |
|
60 | + echo "<h4><button type='button' id='blacklist' class='arrest btn btn-xs btn-theme01'>".$lang["blacklisted"]."</button></h4>"; |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | echo "</center>"; |
@@ -74,34 +74,34 @@ discard block |
||
74 | 74 | <div class="box1"> |
75 | 75 | <span class="fa fa-3x fa-taxi"></span> |
76 | 76 | |
77 | - <h3> <?php echo $lang['police'] . ": " . $player->coplevel; ?> </h3> |
|
77 | + <h3> <?php echo $lang['police'].": ".$player->coplevel; ?> </h3> |
|
78 | 78 | </div> |
79 | 79 | </div> |
80 | 80 | <div class="col-md-2 col-sm-2 box0"> |
81 | 81 | <div class="box1"> |
82 | 82 | <span class="fa fa-3x fa-ambulance"></span> |
83 | 83 | |
84 | - <h3> <?php echo $lang['medic'] . ": " . $player->mediclevel; ?> </h3> |
|
84 | + <h3> <?php echo $lang['medic'].": ".$player->mediclevel; ?> </h3> |
|
85 | 85 | </div> |
86 | 86 | </div> |
87 | 87 | <div class="col-md-2 col-sm-2 box0"> |
88 | 88 | <div class="box1"> |
89 | 89 | <span class="fa fa-3x fa-usd"></span> |
90 | 90 | |
91 | - <h3> <?php echo $lang['donator'] . ": " . $player->$settings['donorFormat']; ?> </h3> |
|
91 | + <h3> <?php echo $lang['donator'].": ".$player->$settings['donorFormat']; ?> </h3> |
|
92 | 92 | </div> |
93 | 93 | </div> |
94 | 94 | <div class="col-md-2 col-sm-2 box0"> |
95 | 95 | <div class="box1"> |
96 | 96 | <span class="fa fa-3x fa-group"></span> |
97 | 97 | |
98 | - <h3> <?php echo $lang['admin'] . ": " . $player->adminlevel; ?> </h3> |
|
98 | + <h3> <?php echo $lang['admin'].": ".$player->adminlevel; ?> </h3> |
|
99 | 99 | </div> |
100 | 100 | </div> |
101 | 101 | <?php |
102 | 102 | if ($_SESSION['permissions']['view']['steam'] || $uID == $_SESSION['playerid']) { |
103 | 103 | echo '<div class="col-md-2 col-sm-2 box0">'; |
104 | - echo '<a href="http://steamcommunity.com/profiles/' . $row["playerid"] . '"'; |
|
104 | + echo '<a href="http://steamcommunity.com/profiles/'.$row["playerid"].'"'; |
|
105 | 105 | echo 'target="_blank">'; |
106 | 106 | echo '<div class="box1">'; |
107 | 107 | echo '<span class="fa fa-3x fa-steam"></span>'; |
@@ -136,59 +136,59 @@ discard block |
||
136 | 136 | <div id="myTabContent" class="tab-content"> |
137 | 137 | <?php if ($player->playerid == $_SESSION['playerid']) { ?> |
138 | 138 | <div class="tab-pane fade in active well" id="civ_lic"> |
139 | - <h4 style="centred"><?php echo $lang['civ'] . " " . $lang['licenses']; ?> </h4> |
|
139 | + <h4 style="centred"><?php echo $lang['civ']." ".$lang['licenses']; ?> </h4> |
|
140 | 140 | <?php |
141 | 141 | if ($player->civ_licenses !== '"[]"') { |
142 | 142 | $return = stripArray($player->civ_licenses, 0); |
143 | 143 | foreach ($return as $value) { |
144 | 144 | if (strpos($value, "1") == TRUE) { |
145 | 145 | $name = before(',', $value); |
146 | - echo "<button class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>" . licName($name, $license) . "</button> "; |
|
146 | + echo "<button class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>".licName($name, $license)."</button> "; |
|
147 | 147 | } else { |
148 | 148 | $name = before(',', $value); |
149 | - echo "<button class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>" . licName($name, $license) . "</button> "; |
|
149 | + echo "<button class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>".licName($name, $license)."</button> "; |
|
150 | 150 | } |
151 | 151 | } |
152 | 152 | } else { |
153 | - echo errorMessage(37,$lang); |
|
153 | + echo errorMessage(37, $lang); |
|
154 | 154 | }?> |
155 | 155 | </div> |
156 | 156 | <div class="tab-pane well fade" id="medic_lic"> |
157 | - <h4 style="centred"><?php echo $lang['medic'] . " " . $lang['licenses']; ?> </h4> |
|
157 | + <h4 style="centred"><?php echo $lang['medic']." ".$lang['licenses']; ?> </h4> |
|
158 | 158 | <?php |
159 | 159 | if ($player->med_licenses !== '"[]"') { |
160 | - $return = stripArray($player->med_licenses,0); |
|
160 | + $return = stripArray($player->med_licenses, 0); |
|
161 | 161 | |
162 | 162 | foreach ($return as $value) { |
163 | 163 | if (strpos($value, "1") == TRUE) { |
164 | 164 | $name = before(',', $value); |
165 | - echo "<button class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>" . licName($name, $license) . "</button> "; |
|
165 | + echo "<button class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>".licName($name, $license)."</button> "; |
|
166 | 166 | } else { |
167 | 167 | $name = before(',', $value); |
168 | - echo "<button class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>" . licName($name, $license) . "</button> "; |
|
168 | + echo "<button class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>".licName($name, $license)."</button> "; |
|
169 | 169 | } |
170 | 170 | } |
171 | 171 | } else { |
172 | - echo errorMessage(37,$lang); |
|
172 | + echo errorMessage(37, $lang); |
|
173 | 173 | } ?> |
174 | 174 | </div> |
175 | 175 | <div class="tab-pane well fade" id="police_lic"> |
176 | - <h4 style="centred"><?php echo $lang['cop'] . " " . $lang['licenses']; ?> </h4> |
|
176 | + <h4 style="centred"><?php echo $lang['cop']." ".$lang['licenses']; ?> </h4> |
|
177 | 177 | <?php |
178 | 178 | if ($player->cop_licenses !== '"[]"') { |
179 | - $return = stripArray($player->cop_licenses,0); |
|
179 | + $return = stripArray($player->cop_licenses, 0); |
|
180 | 180 | |
181 | 181 | foreach ($return as $value) { |
182 | 182 | if (strpos($value, "1") == TRUE) { |
183 | 183 | $name = before(',', $value); |
184 | - echo "<button class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>" . licName($name, $license) . "</button> "; |
|
184 | + echo "<button class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>".licName($name, $license)."</button> "; |
|
185 | 185 | } else { |
186 | 186 | $name = before(',', $value); |
187 | - echo "<button class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>" . licName($name, $license) . "</button> "; |
|
187 | + echo "<button class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>".licName($name, $license)."</button> "; |
|
188 | 188 | } |
189 | 189 | } |
190 | 190 | } else { |
191 | - echo errorMessage(37,$lang); |
|
191 | + echo errorMessage(37, $lang); |
|
192 | 192 | } |
193 | 193 | ?> |
194 | 194 | </div> |
@@ -196,9 +196,9 @@ discard block |
||
196 | 196 | |
197 | 197 | <?php if ($player->playerid == $_SESSION['playerid']) { ?> |
198 | 198 | <div class="tab-pane fade well" id="civ_inv"> |
199 | - <h4 style="centred"><?php echo $lang['civ'] . " " . $lang['gear']; ?> </h4> |
|
199 | + <h4 style="centred"><?php echo $lang['civ']." ".$lang['gear']; ?> </h4> |
|
200 | 200 | <?php |
201 | - echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='civ_gear' name='civ_gear'>" . $player->civ_gear . "</textarea>"; |
|
201 | + echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='civ_gear' name='civ_gear'>".$player->civ_gear."</textarea>"; |
|
202 | 202 | echo '<br>'; |
203 | 203 | |
204 | 204 | if ($_SESSION['permissions']['edit']['inventory']) { |
@@ -209,9 +209,9 @@ discard block |
||
209 | 209 | <br> |
210 | 210 | </div> |
211 | 211 | <div class="tab-pane fade well" id="police_inv"> |
212 | - <h4 style="centred"><?php echo $lang['police'] . " " . $lang['gear']; ?> </h4> |
|
212 | + <h4 style="centred"><?php echo $lang['police']." ".$lang['gear']; ?> </h4> |
|
213 | 213 | <?php |
214 | - echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='civ_gear' name='cop_gear'>" . $player->cop_gear . "</textarea>"; |
|
214 | + echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='civ_gear' name='cop_gear'>".$player->cop_gear."</textarea>"; |
|
215 | 215 | echo '<br>'; |
216 | 216 | if ($_SESSION['permissions']['edit']['inventory']) { |
217 | 217 | echo '<a data-toggle="modal" href="#edit_cop_inv" class="btn btn-primary btn-xs" style="float: right;">'; |
@@ -221,9 +221,9 @@ discard block |
||
221 | 221 | <br> |
222 | 222 | </div> |
223 | 223 | <div class="tab-pane fade well" id="medic_inv"> |
224 | - <h4 style="centred"><?php echo $lang['medic'] . " " . $lang['gear']; ?> </h4> |
|
224 | + <h4 style="centred"><?php echo $lang['medic']." ".$lang['gear']; ?> </h4> |
|
225 | 225 | <?php |
226 | - echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='civ_gear' name='med_gear'>" . $player->med_gear . "</textarea>"; |
|
226 | + echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='civ_gear' name='med_gear'>".$player->med_gear."</textarea>"; |
|
227 | 227 | echo '<br>'; |
228 | 228 | if ($_SESSION['permissions']['edit']['inventory']) { |
229 | 229 | echo '<a data-toggle="modal" href="#edit_med_inv" class="btn btn-primary btn-xs" style="float: right;">'; |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | <div class="tab-pane fade" id="house"> |
238 | 238 | <div class="table-responsive"> |
239 | 239 | <?php |
240 | - $sql = "SELECT `pos`,`id` FROM `houses` WHERE `pid` = '" . $player->playerid . "' ORDER BY `id` DESC LIMIT 8"; |
|
240 | + $sql = "SELECT `pos`,`id` FROM `houses` WHERE `pid` = '".$player->playerid."' ORDER BY `id` DESC LIMIT 8"; |
|
241 | 241 | $result_of_query = $db_link->query($sql); |
242 | 242 | if ($result_of_query->num_rows > 0) { |
243 | 243 | ?> |
@@ -252,15 +252,15 @@ discard block |
||
252 | 252 | <?php |
253 | 253 | while ($row = mysqli_fetch_assoc($result_of_query)) { |
254 | 254 | echo "<tr>"; |
255 | - echo "<td>" . $row["pos"] . "</td>"; |
|
256 | - echo "<td><a class='btn btn-primary btn-xs' href='" . $settings['url'] . "editHouse/" . $row["id"] . "'>"; |
|
255 | + echo "<td>".$row["pos"]."</td>"; |
|
256 | + echo "<td><a class='btn btn-primary btn-xs' href='".$settings['url']."editHouse/".$row["id"]."'>"; |
|
257 | 257 | echo "<i class='fa fa-pencil'></i></a></td>"; |
258 | 258 | echo "</tr>"; |
259 | 259 | }; |
260 | 260 | ?> |
261 | 261 | </tbody> |
262 | 262 | </table> |
263 | - <?php echo '<a class="fa fa-caret-right fa-2x" style="float: right; padding-right:15px;" href="' . $settings['url'] . 'houses/' . $player->playerid . '"> More</a>'; |
|
263 | + <?php echo '<a class="fa fa-caret-right fa-2x" style="float: right; padding-right:15px;" href="'.$settings['url'].'houses/'.$player->playerid.'"> More</a>'; |
|
264 | 264 | } else { |
265 | 265 | echo errorMessage(31, $lang); |
266 | 266 | } ?> |
@@ -272,32 +272,32 @@ discard block |
||
272 | 272 | <div class="tab-pane fade" id="veh"> |
273 | 273 | <div class="table-responsive"> |
274 | 274 | <?php |
275 | - $sql = "SELECT `classname`,`type`,`id`,`plate` FROM `vehicles` WHERE `pid` = '" . $player->playerid . "' ORDER BY `id` DESC LIMIT 8"; |
|
275 | + $sql = "SELECT `classname`,`type`,`id`,`plate` FROM `vehicles` WHERE `pid` = '".$player->playerid."' ORDER BY `id` DESC LIMIT 8"; |
|
276 | 276 | $result_of_query = $db_link->query($sql); |
277 | 277 | if ($result_of_query->num_rows > 0) { |
278 | 278 | $veh = $result_of_query->fetch_object(); |
279 | 279 | echo '<table class="table table-bordered table-hover table-striped">'; |
280 | 280 | echo '<thead><tr>'; |
281 | - echo '<th>' . $lang['class'] . '</th>'; |
|
282 | - echo '<th>' . $lang['type'] . '</th>'; |
|
283 | - echo '<th>' . $lang['plate'] . '</th>'; |
|
281 | + echo '<th>'.$lang['class'].'</th>'; |
|
282 | + echo '<th>'.$lang['type'].'</th>'; |
|
283 | + echo '<th>'.$lang['plate'].'</th>'; |
|
284 | 284 | if ($_SESSION['permissions']['edit']['vehicles']) { |
285 | - echo "<th>" . $lang['edit'] . "</th>"; |
|
285 | + echo "<th>".$lang['edit']."</th>"; |
|
286 | 286 | } |
287 | 287 | echo '</tr></thead><tbody'; |
288 | 288 | echo '<tr>'; |
289 | - echo '<td>' . carName($veh->classname) . '</td>'; |
|
290 | - echo '<td>' . carType($veh->type, $lang) . '</td>'; |
|
291 | - echo '<td>' . $veh->plate . '</td>'; |
|
289 | + echo '<td>'.carName($veh->classname).'</td>'; |
|
290 | + echo '<td>'.carType($veh->type, $lang).'</td>'; |
|
291 | + echo '<td>'.$veh->plate.'</td>'; |
|
292 | 292 | |
293 | 293 | if ($_SESSION['permissions']['edit']['vehicles']) { |
294 | - echo "<td><a class='btn btn-primary btn-xs' href='" . $settings['url'] . "editVeh.php?ID=" . $veh->id . "'>"; |
|
294 | + echo "<td><a class='btn btn-primary btn-xs' href='".$settings['url']."editVeh.php?ID=".$veh->id."'>"; |
|
295 | 295 | echo "<i class='fa fa-pencil'></i></a></td>"; |
296 | 296 | } |
297 | 297 | |
298 | 298 | echo '</tr>'; |
299 | 299 | echo '</tbody></table>'; |
300 | - echo '<a class="fa fa-caret-right fa-2x" style="float: right; padding-right:15px;" href="' . $settings['url'] . 'vehicles/' . $player->playerid . '"> More</a>'; |
|
300 | + echo '<a class="fa fa-caret-right fa-2x" style="float: right; padding-right:15px;" href="'.$settings['url'].'vehicles/'.$player->playerid.'"> More</a>'; |
|
301 | 301 | |
302 | 302 | } else echo errorMessage(31, $lang); |
303 | 303 | ?> |
@@ -299,7 +299,9 @@ |
||
299 | 299 | echo '</tbody></table>'; |
300 | 300 | echo '<a class="fa fa-caret-right fa-2x" style="float: right; padding-right:15px;" href="' . $settings['url'] . 'vehicles/' . $player->playerid . '"> More</a>'; |
301 | 301 | |
302 | - } else echo errorMessage(31, $lang); |
|
302 | + } else { |
|
303 | + echo errorMessage(31, $lang); |
|
304 | + } |
|
303 | 305 | ?> |
304 | 306 | </div> |
305 | 307 | </div> |
@@ -2,22 +2,22 @@ discard block |
||
2 | 2 | $db_link = serverConnect(); |
3 | 3 | require_once("config/carNames.php"); |
4 | 4 | |
5 | -$max = 'LIMIT ' . ($pageNum - 1) * $_SESSION['items'] . ',' . $_SESSION['items']; |
|
5 | +$max = 'LIMIT '.($pageNum - 1) * $_SESSION['items'].','.$_SESSION['items']; |
|
6 | 6 | |
7 | 7 | if (isset($search)) { |
8 | - logAction($_SESSION['user_name'], $lang['searched'] . ' (' . $search . ') ' . $lang['in'] . ' ' . $lang['vehicles'], 1); |
|
8 | + logAction($_SESSION['user_name'], $lang['searched'].' ('.$search.') '.$lang['in'].' '.$lang['vehicles'], 1); |
|
9 | 9 | |
10 | - $sql = "SELECT `id`,`pid`,`classname`,`active`,`type`,`plate`,`alive`,`active` FROM `vehicles` INNER JOIN `players` ON vehicles.pid=players.$playerIdColumn WHERE `pid` LIKE '" . $_SESSION['playerid'] . "' OR `classname` LIKE '%$search%' OR `name` LIKE '%$search%' OR `plate` LIKE '$search' OR `inventory` LIKE '%$search%';"; |
|
10 | + $sql = "SELECT `id`,`pid`,`classname`,`active`,`type`,`plate`,`alive`,`active` FROM `vehicles` INNER JOIN `players` ON vehicles.pid=players.$playerIdColumn WHERE `pid` LIKE '".$_SESSION['playerid']."' OR `classname` LIKE '%$search%' OR `name` LIKE '%$search%' OR `plate` LIKE '$search' OR `inventory` LIKE '%$search%';"; |
|
11 | 11 | $result_of_query = $db_link->query($sql); |
12 | 12 | $total_records = mysqli_num_rows($result_of_query); |
13 | 13 | if ($pageNum > $total_records) $pageNum = $total_records; |
14 | - $sql = "SELECT `id`,`pid`,`classname`,`active`,`type`,`plate`,`alive`,`active` FROM `vehicles` INNER JOIN `players` ON vehicles.pid=players.$playerIdColumn WHERE `pid` LIKE '" . $_SESSION['playerid'] . "' OR `classname` LIKE '%$search%' OR `name` LIKE '%$search%' OR `plate` LIKE '$search' OR `inventory` LIKE '%$search%' $max;"; |
|
14 | + $sql = "SELECT `id`,`pid`,`classname`,`active`,`type`,`plate`,`alive`,`active` FROM `vehicles` INNER JOIN `players` ON vehicles.pid=players.$playerIdColumn WHERE `pid` LIKE '".$_SESSION['playerid']."' OR `classname` LIKE '%$search%' OR `name` LIKE '%$search%' OR `plate` LIKE '$search' OR `inventory` LIKE '%$search%' $max;"; |
|
15 | 15 | } else { |
16 | - $sql = "SELECT `id` FROM `vehicles` INNER JOIN `players` ON vehicles.pid=players.playerid WHERE `pid` LIKE '" . $_SESSION['playerid'] . "';"; |
|
16 | + $sql = "SELECT `id` FROM `vehicles` INNER JOIN `players` ON vehicles.pid=players.playerid WHERE `pid` LIKE '".$_SESSION['playerid']."';"; |
|
17 | 17 | $result_of_query = $db_link->query($sql); |
18 | 18 | $total_records = mysqli_num_rows($result_of_query); |
19 | 19 | if ($pageNum > $total_records) $pageNum = $total_records; |
20 | - $sql = "SELECT `id`,`pid`,`classname`,`active`,`type`,`plate`,`alive`,`active` FROM `vehicles` INNER JOIN `players` ON vehicles.pid=players.$playerIdColumn WHERE `pid` LIKE '" . $_SESSION['playerid'] . "' $max;"; |
|
20 | + $sql = "SELECT `id`,`pid`,`classname`,`active`,`type`,`plate`,`alive`,`active` FROM `vehicles` INNER JOIN `players` ON vehicles.pid=players.$playerIdColumn WHERE `pid` LIKE '".$_SESSION['playerid']."' $max;"; |
|
21 | 21 | } |
22 | 22 | $result_of_query = $db_link->query($sql); |
23 | 23 | if ($result_of_query->num_rows > 0) { ?> |
@@ -54,14 +54,14 @@ discard block |
||
54 | 54 | <?php |
55 | 55 | while ($row = mysqli_fetch_assoc($result_of_query)) { |
56 | 56 | echo "<tr>"; |
57 | - echo "<td>" . nameID($row["pid"], $db_link) . "</td>"; |
|
58 | - echo "<td>" . carName($row["classname"]) . "</td>"; |
|
59 | - echo "<td class='hidden-xs'> " . carType($row["type"], $lang) . "</td>"; |
|
60 | - echo "<td class='hidden-xs'> " . $row["plate"] . "</td>"; |
|
61 | - echo "<td class='hidden-xs'> " . yesNo($row["alive"], $lang) . "</td>"; |
|
62 | - echo "<td class='hidden-xs'> " . yesNo($row["active"], $lang) . "</td>"; |
|
57 | + echo "<td>".nameID($row["pid"], $db_link)."</td>"; |
|
58 | + echo "<td>".carName($row["classname"])."</td>"; |
|
59 | + echo "<td class='hidden-xs'> ".carType($row["type"], $lang)."</td>"; |
|
60 | + echo "<td class='hidden-xs'> ".$row["plate"]."</td>"; |
|
61 | + echo "<td class='hidden-xs'> ".yesNo($row["alive"], $lang)."</td>"; |
|
62 | + echo "<td class='hidden-xs'> ".yesNo($row["active"], $lang)."</td>"; |
|
63 | 63 | if ($row["pid"] == $_SESSION['playerid']) { |
64 | - echo "<td><a class='btn btn-primary btn-xs' href='" . $settings['url'] . "editVeh/" . $row["id"] . "'>"; |
|
64 | + echo "<td><a class='btn btn-primary btn-xs' href='".$settings['url']."editVeh/".$row["id"]."'>"; |
|
65 | 65 | echo "<i class='fa fa-pencil'></i></a></td>"; |
66 | 66 | } |
67 | 67 | echo "</tr>"; |
@@ -1,20 +1,20 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | $db_link = serverConnect(); |
3 | -$max = 'LIMIT ' . ($pageNum - 1) * $_SESSION['items'] . ',' . $_SESSION['items']; |
|
3 | +$max = 'LIMIT '.($pageNum - 1) * $_SESSION['items'].','.$_SESSION['items']; |
|
4 | 4 | |
5 | 5 | if (isset($search)) { |
6 | - logAction($_SESSION['user_name'], $lang['searched'] . ' (' . $search . ') ' . $lang['in'] . ' ' . $lang['vehicles'], 1); |
|
7 | - $sql = "SELECT `id` FROM `houses` INNER JOIN `players` ON houses.pid=players.$playerIdColumn WHERE `id` LIKE '" . $search . "' OR `pos` LIKE '$search' OR `inventory` LIKE '%$search%' OR `name` LIKE '%$search%' AND `pid` = '" . $_SESSION['playerid'] . "';"; |
|
6 | + logAction($_SESSION['user_name'], $lang['searched'].' ('.$search.') '.$lang['in'].' '.$lang['vehicles'], 1); |
|
7 | + $sql = "SELECT `id` FROM `houses` INNER JOIN `players` ON houses.pid=players.$playerIdColumn WHERE `id` LIKE '".$search."' OR `pos` LIKE '$search' OR `inventory` LIKE '%$search%' OR `name` LIKE '%$search%' AND `pid` = '".$_SESSION['playerid']."';"; |
|
8 | 8 | $result_of_query = $db_link->query($sql); |
9 | 9 | $total_records = mysqli_num_rows($result_of_query); |
10 | 10 | if ($pageNum > $total_records) $pageNum = $total_records; |
11 | - $sql = "SELECT `id`,`pid`,`pos`,`name`,`owned` FROM `houses` INNER JOIN `players` ON houses.pid=players.$playerIdColumn WHERE `id` LIKE '$search' OR `pos` LIKE '$search' OR `inventory` LIKE '%$search %' OR `name` LIKE '%$search%' AND `pid` = '" . $_SESSION['playerid'] . "' $max;"; |
|
11 | + $sql = "SELECT `id`,`pid`,`pos`,`name`,`owned` FROM `houses` INNER JOIN `players` ON houses.pid=players.$playerIdColumn WHERE `id` LIKE '$search' OR `pos` LIKE '$search' OR `inventory` LIKE '%$search %' OR `name` LIKE '%$search%' AND `pid` = '".$_SESSION['playerid']."' $max;"; |
|
12 | 12 | } else { |
13 | 13 | $sql = "SELECT `id` FROM `houses`;"; |
14 | 14 | $result_of_query = $db_link->query($sql); |
15 | 15 | $total_records = mysqli_num_rows($result_of_query); |
16 | 16 | if ($pageNum > $total_records) $pageNum = $total_records; |
17 | - $sql = "SELECT `id`,`pid`,`pos`,`name`,`owned` FROM `houses` INNER JOIN `players` ON houses.pid=players.$playerIdColumn AND `pid` = '" . $_SESSION['playerid'] . "' $max;"; |
|
17 | + $sql = "SELECT `id`,`pid`,`pos`,`name`,`owned` FROM `houses` INNER JOIN `players` ON houses.pid=players.$playerIdColumn AND `pid` = '".$_SESSION['playerid']."' $max;"; |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | $result_of_query = $db_link->query($sql); |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | <th><i class="fa fa-user"></i> <?php echo $lang['position']; ?></th> |
42 | 42 | <th class="hidden-xs"><i class="fa fa-user"></i> <?php echo $lang['owned']; ?></th> |
43 | 43 | <?php if ($_SESSION['permissions']['edit']['houses']) { |
44 | - echo '<th>' . $lang['edit'] . '</th>'; |
|
44 | + echo '<th>'.$lang['edit'].'</th>'; |
|
45 | 45 | } |
46 | 46 | ?> |
47 | 47 | </tr> |
@@ -50,11 +50,11 @@ discard block |
||
50 | 50 | <?php |
51 | 51 | while ($row = mysqli_fetch_assoc($result_of_query)) { |
52 | 52 | echo "<tr>"; |
53 | - echo "<td>" . $row["name"] . "</td>"; |
|
54 | - echo "<td>" . substr($row["pos"], 1, -1) . "</td>"; |
|
55 | - echo "<td class='hidden-xs'>" . yesNo($row["owned"], $lang) . "</td>"; |
|
53 | + echo "<td>".$row["name"]."</td>"; |
|
54 | + echo "<td>".substr($row["pos"], 1, -1)."</td>"; |
|
55 | + echo "<td class='hidden-xs'>".yesNo($row["owned"], $lang)."</td>"; |
|
56 | 56 | if ($_SESSION['permissions']['edit']['houses']) { |
57 | - echo "<td><a class='btn btn-primary btn-xs' href='" . $settings['url'] . "editHouse/" . $row["id"] . "'>"; |
|
57 | + echo "<td><a class='btn btn-primary btn-xs' href='".$settings['url']."editHouse/".$row["id"]."'>"; |
|
58 | 58 | echo "<i class='fa fa-pencil'></i></a></td>"; |
59 | 59 | } |
60 | 60 | echo "</tr>"; |
@@ -5,9 +5,9 @@ discard block |
||
5 | 5 | require_once("config/images.php"); |
6 | 6 | require_once("config/license.php"); |
7 | 7 | } else { |
8 | - require_once(realpath($settings['url']) . "config/carNames.php"); |
|
9 | - require_once(realpath($settings['url']) . "config/images.php"); |
|
10 | - require_once(realpath($settings['url']) . "config/license.php"); |
|
8 | + require_once(realpath($settings['url'])."config/carNames.php"); |
|
9 | + require_once(realpath($settings['url'])."config/images.php"); |
|
10 | + require_once(realpath($settings['url'])."config/license.php"); |
|
11 | 11 | } |
12 | 12 | |
13 | 13 | $db_link = serverConnect(); |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | } |
29 | 29 | } |
30 | 30 | |
31 | -$sql = "SELECT *, $playerIdColumn as playerid FROM `players` WHERE $playerIdColumn = '" . $_SESSION['playerid'] . "'"; |
|
31 | +$sql = "SELECT *, $playerIdColumn as playerid FROM `players` WHERE $playerIdColumn = '".$_SESSION['playerid']."'"; |
|
32 | 32 | $result = $db_link->query($sql); |
33 | 33 | if ($result->num_rows > 0) { |
34 | 34 | $player = $result->fetch_object(); |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | $temp .= chr($pGID & 0xFF); |
40 | 40 | $pGID >>= 8; |
41 | 41 | } |
42 | - $pGID = md5('BE' . $temp); |
|
42 | + $pGID = md5('BE'.$temp); |
|
43 | 43 | ?> |
44 | 44 | <div class="col-md-3" style="float:left; padding-top:20px;"> |
45 | 45 | <div class="panel panel-default"> |
@@ -53,26 +53,26 @@ discard block |
||
53 | 53 | $alias = str_replace('"[`', "", $player->aliases); |
54 | 54 | $alias = str_replace('`]"', "", $alias); |
55 | 55 | |
56 | - echo '<center><img alt="' . $alias . '" src="' . $settings['url'] . 'assets/img/uniform/' . getPlayerSkin($player->civ_gear, $playerSkins) . '.jpg">'; |
|
57 | - echo "<h4>" . $lang['aliases'] . ": " . $alias . "</h4>"; |
|
58 | - echo "<h4>" . $lang['playerID'] . ": " . $player->playerid . "</h4>"; |
|
59 | - echo "<h4 style='word-wrap: break-word;'>" . $lang['GUID'] . ": " . $pGID . "</h4>"; |
|
56 | + echo '<center><img alt="'.$alias.'" src="'.$settings['url'].'assets/img/uniform/'.getPlayerSkin($player->civ_gear, $playerSkins).'.jpg">'; |
|
57 | + echo "<h4>".$lang['aliases'].": ".$alias."</h4>"; |
|
58 | + echo "<h4>".$lang['playerID'].": ".$player->playerid."</h4>"; |
|
59 | + echo "<h4 style='word-wrap: break-word;'>".$lang['GUID'].": ".$pGID."</h4>"; |
|
60 | 60 | ?> |
61 | 61 | <i class="fa fa-2x fa-money"></i> |
62 | - <h4> <?php echo $lang['cash'] . ": " . $player->cash; ?> </h4> |
|
62 | + <h4> <?php echo $lang['cash'].": ".$player->cash; ?> </h4> |
|
63 | 63 | <i style="padding-left:15px;" class="fa fa-2x fa-bank"></i> |
64 | - <h4> <?php echo $lang['bank'] . ": " . $player->bankacc; ?> </h4> |
|
64 | + <h4> <?php echo $lang['bank'].": ".$player->bankacc; ?> </h4> |
|
65 | 65 | <?php |
66 | 66 | if ($player->arrested == 0) { |
67 | - echo "<h4><button type='button' id='arrested' class='arrest btn btn-xs btn-success'>" . $lang["not"] . " " . $lang["arrested"] . "</button></h4>"; |
|
67 | + echo "<h4><button type='button' id='arrested' class='arrest btn btn-xs btn-success'>".$lang["not"]." ".$lang["arrested"]."</button></h4>"; |
|
68 | 68 | } else { |
69 | - echo "<h4><button type='button' id='arrested' class='arrest btn btn-xs btn-theme01'>" . $lang["arrested"] . "</button></h4>"; |
|
69 | + echo "<h4><button type='button' id='arrested' class='arrest btn btn-xs btn-theme01'>".$lang["arrested"]."</button></h4>"; |
|
70 | 70 | } |
71 | 71 | |
72 | 72 | if ($player->blacklist == 0) { |
73 | - echo "<h4><button type='button' id='blacklist' class='arrest btn btn-xs btn-success'>" . $lang["not"] . " " . $lang["blacklisted"] . "</button></h4>"; |
|
73 | + echo "<h4><button type='button' id='blacklist' class='arrest btn btn-xs btn-success'>".$lang["not"]." ".$lang["blacklisted"]."</button></h4>"; |
|
74 | 74 | } else { |
75 | - echo "<h4><button type='button' id='blacklist' class='arrest btn btn-xs btn-theme01'>" . $lang["blacklisted"] . "</button></h4>"; |
|
75 | + echo "<h4><button type='button' id='blacklist' class='arrest btn btn-xs btn-theme01'>".$lang["blacklisted"]."</button></h4>"; |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | echo "</center>"; |
@@ -89,34 +89,34 @@ discard block |
||
89 | 89 | <div class="box1"> |
90 | 90 | <span class="fa fa-3x fa-taxi"></span> |
91 | 91 | |
92 | - <h3> <?php echo $lang['police'] . ": " . $player->coplevel; ?> </h3> |
|
92 | + <h3> <?php echo $lang['police'].": ".$player->coplevel; ?> </h3> |
|
93 | 93 | </div> |
94 | 94 | </div> |
95 | 95 | <div class="col-md-2 col-sm-2 box0"> |
96 | 96 | <div class="box1"> |
97 | 97 | <span class="fa fa-3x fa-ambulance"></span> |
98 | 98 | |
99 | - <h3> <?php echo $lang['medic'] . ": " . $player->mediclevel; ?> </h3> |
|
99 | + <h3> <?php echo $lang['medic'].": ".$player->mediclevel; ?> </h3> |
|
100 | 100 | </div> |
101 | 101 | </div> |
102 | 102 | <div class="col-md-2 col-sm-2 box0"> |
103 | 103 | <div class="box1"> |
104 | 104 | <span class="fa fa-3x fa-usd"></span> |
105 | 105 | |
106 | - <h3> <?php echo $lang['donator'] . ": " . $player->$settings['donorFormat']; ?> </h3> |
|
106 | + <h3> <?php echo $lang['donator'].": ".$player->$settings['donorFormat']; ?> </h3> |
|
107 | 107 | </div> |
108 | 108 | </div> |
109 | 109 | <div class="col-md-2 col-sm-2 box0"> |
110 | 110 | <div class="box1"> |
111 | 111 | <span class="fa fa-3x fa-group"></span> |
112 | 112 | |
113 | - <h3> <?php echo $lang['admin'] . ": " . $player->adminlevel; ?> </h3> |
|
113 | + <h3> <?php echo $lang['admin'].": ".$player->adminlevel; ?> </h3> |
|
114 | 114 | </div> |
115 | 115 | </div> |
116 | 116 | <?php |
117 | 117 | if ($player->playerid == $_SESSION['playerid']) { |
118 | 118 | echo '<div class="col-md-2 col-sm-2 box0">'; |
119 | - echo '<a href="http://steamcommunity.com/profiles/' . $player->playerid . '"'; |
|
119 | + echo '<a href="http://steamcommunity.com/profiles/'.$player->playerid.'"'; |
|
120 | 120 | echo 'target="_blank">'; |
121 | 121 | echo '<div class="box1">'; |
122 | 122 | echo '<span class="fa fa-3x fa-steam"></span>'; |
@@ -151,25 +151,25 @@ discard block |
||
151 | 151 | <div id="myTabContent" class="tab-content"> |
152 | 152 | <?php if ($player->playerid == $_SESSION['playerid']) { ?> |
153 | 153 | <div class="tab-pane fade in active well" id="civ_lic"> |
154 | - <h4 style="centred"><?php echo $lang['civ'] . " " . $lang['licenses']; ?> </h4> |
|
154 | + <h4 style="centred"><?php echo $lang['civ']." ".$lang['licenses']; ?> </h4> |
|
155 | 155 | <?php |
156 | 156 | if ($player->civ_licenses !== '"[]"') { |
157 | 157 | $return = stripArray($player->civ_licenses, 0); |
158 | 158 | foreach ($return as $value) { |
159 | 159 | if (strpos($value, "1") == TRUE) { |
160 | 160 | $name = before(',', $value); |
161 | - echo "<button class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>" . licName($name, $license) . "</button> "; |
|
161 | + echo "<button class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>".licName($name, $license)."</button> "; |
|
162 | 162 | } else { |
163 | 163 | $name = before(',', $value); |
164 | - echo "<button class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>" . licName($name, $license) . "</button> "; |
|
164 | + echo "<button class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>".licName($name, $license)."</button> "; |
|
165 | 165 | } |
166 | 166 | } |
167 | 167 | } else { |
168 | - echo $lang['no'] . " " . $lang['licenses']; |
|
168 | + echo $lang['no']." ".$lang['licenses']; |
|
169 | 169 | }?> |
170 | 170 | </div> |
171 | 171 | <div class="tab-pane well fade" id="medic_lic"> |
172 | - <h4 style="centred"><?php echo $lang['medic'] . " " . $lang['licenses']; ?> </h4> |
|
172 | + <h4 style="centred"><?php echo $lang['medic']." ".$lang['licenses']; ?> </h4> |
|
173 | 173 | <?php |
174 | 174 | if ($player->med_licenses !== '"[]"') { |
175 | 175 | $return = stripArray($player->med_licenses, 0); |
@@ -177,18 +177,18 @@ discard block |
||
177 | 177 | foreach ($return as $value) { |
178 | 178 | if (strpos($value, "1") == TRUE) { |
179 | 179 | $name = before(',', $value); |
180 | - echo "<button class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>" . licName($name, $license) . "</button> "; |
|
180 | + echo "<button class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>".licName($name, $license)."</button> "; |
|
181 | 181 | } else { |
182 | 182 | $name = before(',', $value); |
183 | - echo "<button class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>" . licName($name, $license) . "</button> "; |
|
183 | + echo "<button class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>".licName($name, $license)."</button> "; |
|
184 | 184 | } |
185 | 185 | } |
186 | 186 | } else { |
187 | - echo $lang['no'] . " " . $lang['licenses']; |
|
187 | + echo $lang['no']." ".$lang['licenses']; |
|
188 | 188 | } ?> |
189 | 189 | </div> |
190 | 190 | <div class="tab-pane well fade" id="police_lic"> |
191 | - <h4 style="centred"><?php echo $lang['cop'] . " " . $lang['licenses']; ?> </h4> |
|
191 | + <h4 style="centred"><?php echo $lang['cop']." ".$lang['licenses']; ?> </h4> |
|
192 | 192 | <?php |
193 | 193 | if ($player->cop_licenses !== '"[]"') { |
194 | 194 | $return = stripArray($player->cop_licenses, 0); |
@@ -196,22 +196,22 @@ discard block |
||
196 | 196 | foreach ($return as $value) { |
197 | 197 | if (strpos($value, "1") == TRUE) { |
198 | 198 | $name = before(',', $value); |
199 | - echo "<button class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>" . licName($name, $license) . "</button> "; |
|
199 | + echo "<button class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>".licName($name, $license)."</button> "; |
|
200 | 200 | } else { |
201 | 201 | $name = before(',', $value); |
202 | - echo "<button class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>" . licName($name, $license) . "</button> "; |
|
202 | + echo "<button class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>".licName($name, $license)."</button> "; |
|
203 | 203 | } |
204 | 204 | } |
205 | 205 | } else { |
206 | - echo $lang['no'] . " " . $lang['licenses']; |
|
206 | + echo $lang['no']." ".$lang['licenses']; |
|
207 | 207 | } |
208 | 208 | ?> |
209 | 209 | </div> |
210 | 210 | <?php } if ($player->playerid == $_SESSION['playerid']) { ?> |
211 | 211 | <div class="tab-pane fade well" id="civ_inv"> |
212 | - <h4 style="centred"><?php echo $lang['civ'] . " " . $lang['gear']; ?> </h4> |
|
212 | + <h4 style="centred"><?php echo $lang['civ']." ".$lang['gear']; ?> </h4> |
|
213 | 213 | <?php |
214 | - echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='civ_gear' name='civ_gear'>" . $player->civ_gear . "</textarea>"; |
|
214 | + echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='civ_gear' name='civ_gear'>".$player->civ_gear."</textarea>"; |
|
215 | 215 | echo '<br>'; |
216 | 216 | |
217 | 217 | if ($_SESSION['permissions']['edit']['inventory']) { |
@@ -222,9 +222,9 @@ discard block |
||
222 | 222 | <br> |
223 | 223 | </div> |
224 | 224 | <div class="tab-pane fade well" id="police_inv"> |
225 | - <h4 style="centred"><?php echo $lang['police'] . " " . $lang['gear']; ?> </h4> |
|
225 | + <h4 style="centred"><?php echo $lang['police']." ".$lang['gear']; ?> </h4> |
|
226 | 226 | <?php |
227 | - echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='civ_gear' name='cop_gear'>" . $player->cop_gear . "</textarea>"; |
|
227 | + echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='civ_gear' name='cop_gear'>".$player->cop_gear."</textarea>"; |
|
228 | 228 | echo '<br>'; |
229 | 229 | if ($_SESSION['permissions']['edit']['inventory']) { |
230 | 230 | echo '<a data-toggle="modal" href="#edit_cop_inv" class="btn btn-primary btn-xs" style="float: right;">'; |
@@ -234,9 +234,9 @@ discard block |
||
234 | 234 | <br> |
235 | 235 | </div> |
236 | 236 | <div class="tab-pane fade well" id="medic_inv"> |
237 | - <h4 style="centred"><?php echo $lang['medic'] . " " . $lang['gear']; ?> </h4> |
|
237 | + <h4 style="centred"><?php echo $lang['medic']." ".$lang['gear']; ?> </h4> |
|
238 | 238 | <?php |
239 | - echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='civ_gear' name='med_gear'>" . $player->med_gear . "</textarea>"; |
|
239 | + echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='civ_gear' name='med_gear'>".$player->med_gear."</textarea>"; |
|
240 | 240 | echo '<br>'; |
241 | 241 | if ($_SESSION['permissions']['edit']['inventory']) { |
242 | 242 | echo '<a data-toggle="modal" href="#edit_med_inv" class="btn btn-primary btn-xs" style="float: right;">'; |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | <div class="tab-pane fade" id="house"> |
249 | 249 | <div class="table-responsive"> |
250 | 250 | <?php |
251 | - $sql = "SELECT `pos`,`id` FROM `houses` WHERE `pid` = '" . $player->playerid . "' ORDER BY `id` DESC LIMIT 8"; |
|
251 | + $sql = "SELECT `pos`,`id` FROM `houses` WHERE `pid` = '".$player->playerid."' ORDER BY `id` DESC LIMIT 8"; |
|
252 | 252 | $result_of_query = $db_link->query($sql); |
253 | 253 | if ($result_of_query->num_rows > 0) { |
254 | 254 | ?> |
@@ -263,15 +263,15 @@ discard block |
||
263 | 263 | <?php |
264 | 264 | while ($row = mysqli_fetch_assoc($result_of_query)) { |
265 | 265 | echo "<tr>"; |
266 | - echo "<td>" . $row["pos"] . "</td>"; |
|
267 | - echo "<td><a class='btn btn-primary btn-xs' href='" . $settings['url'] . "editHouse/" . $row["id"] . "'>"; |
|
266 | + echo "<td>".$row["pos"]."</td>"; |
|
267 | + echo "<td><a class='btn btn-primary btn-xs' href='".$settings['url']."editHouse/".$row["id"]."'>"; |
|
268 | 268 | echo "<i class='fa fa-pencil'></i></a></td>"; |
269 | 269 | echo "</tr>"; |
270 | 270 | }; |
271 | 271 | ?> |
272 | 272 | </tbody> |
273 | 273 | </table> |
274 | - <?php echo '<a class="fa fa-caret-right fa-2x" style="float: right; padding-right:15px;" href="' . $settings['url'] . 'houses/' . $player->playerid . '"> More</a>'; |
|
274 | + <?php echo '<a class="fa fa-caret-right fa-2x" style="float: right; padding-right:15px;" href="'.$settings['url'].'houses/'.$player->playerid.'"> More</a>'; |
|
275 | 275 | } else echo $lang['noHouse'] ?> |
276 | 276 | </div> |
277 | 277 | </div> |
@@ -279,33 +279,33 @@ discard block |
||
279 | 279 | <div class="tab-pane fade" id="veh"> |
280 | 280 | <div class="table-responsive"> |
281 | 281 | <?php |
282 | - $sql = "SELECT `classname`,`type`,`id`,`plate` FROM `vehicles` WHERE `pid` = '" . $player->playerid . "' ORDER BY `id` DESC LIMIT 8"; |
|
282 | + $sql = "SELECT `classname`,`type`,`id`,`plate` FROM `vehicles` WHERE `pid` = '".$player->playerid."' ORDER BY `id` DESC LIMIT 8"; |
|
283 | 283 | } |
284 | 284 | $result_of_query = $db_link->query($sql); |
285 | 285 | if ($result_of_query->num_rows > 0) { |
286 | 286 | $veh = $result_of_query->fetch_object(); |
287 | 287 | echo '<table class="table table-bordered table-hover table-striped">'; |
288 | 288 | echo '<thead><tr>'; |
289 | - echo '<th>' . $lang['class'] . '</th>'; |
|
290 | - echo '<th>' . $lang['type'] . '</th>'; |
|
291 | - echo '<th>' . $lang['plate'] . '</th>'; |
|
289 | + echo '<th>'.$lang['class'].'</th>'; |
|
290 | + echo '<th>'.$lang['type'].'</th>'; |
|
291 | + echo '<th>'.$lang['plate'].'</th>'; |
|
292 | 292 | if ($_SESSION['permissions']['edit']['vehicles']) { |
293 | - echo "<th>" . $lang['edit'] . "</th>"; |
|
293 | + echo "<th>".$lang['edit']."</th>"; |
|
294 | 294 | } |
295 | 295 | echo '</tr></thead><tbody'; |
296 | 296 | echo '<tr>'; |
297 | - echo '<td>' . carName($veh->classname) . '</td>'; |
|
298 | - echo '<td>' . carType($veh->type, $lang) . '</td>'; |
|
299 | - echo '<td>' . $veh->plate . '</td>'; |
|
297 | + echo '<td>'.carName($veh->classname).'</td>'; |
|
298 | + echo '<td>'.carType($veh->type, $lang).'</td>'; |
|
299 | + echo '<td>'.$veh->plate.'</td>'; |
|
300 | 300 | |
301 | 301 | if ($_SESSION['permissions']['edit']['vehicles']) { |
302 | - echo "<td><a class='btn btn-primary btn-xs' href='" . $settings['url'] . "editVeh.php?ID=" . $veh->id . "'>"; |
|
302 | + echo "<td><a class='btn btn-primary btn-xs' href='".$settings['url']."editVeh.php?ID=".$veh->id."'>"; |
|
303 | 303 | echo "<i class='fa fa-pencil'></i></a></td>"; |
304 | 304 | } |
305 | 305 | |
306 | 306 | echo '</tr>'; |
307 | 307 | echo '</tbody></table>'; |
308 | - echo '<a class="fa fa-caret-right fa-2x" style="float: right; padding-right:15px;" href="' . $settings['url'] . 'vehicles/' . $player->playerid . '"> More</a>'; |
|
308 | + echo '<a class="fa fa-caret-right fa-2x" style="float: right; padding-right:15px;" href="'.$settings['url'].'vehicles/'.$player->playerid.'"> More</a>'; |
|
309 | 309 | |
310 | 310 | } else { |
311 | 311 | echo $lang['noVeh']; |
@@ -323,6 +323,6 @@ discard block |
||
323 | 323 | if ($settings['url'] == "/") { |
324 | 324 | include("views/steam/errors/noData.php"); |
325 | 325 | } else { |
326 | - include(realpath($settings['url']) . "views/steam/errors/noData.php"); |
|
326 | + include(realpath($settings['url'])."views/steam/errors/noData.php"); |
|
327 | 327 | } |
328 | 328 | } ?> |
329 | 329 | \ No newline at end of file |