Completed
Push — master ( 3e8c65...634410 )
by Jason
02:26
created
hooks/license.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -3,31 +3,31 @@
 block discarded – undo
3 3
 session_set_cookie_params(1209600);
4 4
 session_start();
5 5
 
6
-include_once( __DIR__ . '/../config/english.php');
6
+include_once(__DIR__.'/../config/english.php');
7 7
 
8 8
 if (isset($_SESSION['permissions']['edit']['licences'])) {
9 9
     if ($_SESSION['permissions']['edit']['licences'] && isset($_POST['player']) && isset($_POST['id'])) {
10
-        require_once( __DIR__ . '/../gfunctions.php');
11
-        require_once( __DIR__ . '/../config/license.php');
12
-        $settings = require( __DIR__ . '/../config/settings.php');
10
+        require_once(__DIR__.'/../gfunctions.php');
11
+        require_once(__DIR__.'/../config/license.php');
12
+        $settings = require(__DIR__.'/../config/settings.php');
13 13
         if (isset($_SESSION['dbid'])) {
14 14
             $db_link = serverConnect($_SESSION['dbid']);
15 15
     
16 16
             $change = explode("_", $_POST['id']);
17
-            $col = $change['1'] . "_licenses";
18
-            $sql = "SELECT `" . $col . "` FROM `players` WHERE `uid` = '" . $_POST['player'] . "';"; //todo: innerjoin
17
+            $col = $change['1']."_licenses";
18
+            $sql = "SELECT `".$col."` FROM `players` WHERE `uid` = '".$_POST['player']."';"; //todo: innerjoin
19 19
             $result = $db_link->query($sql);
20 20
             if ($result->num_rows > 0) {
21 21
                 $lic = $result->fetch_object()->$col;
22 22
                 $num = strpos($lic, $change['2']) + strlen($change['2']) + 2;
23 23
                 if ($lic[$num] == '1') {
24 24
                     $lic[$num] = '0';
25
-                    logAction($_SESSION['user_name'], $lang['removed'] . ' ' . uIDname($_POST['player'], $db_link) . ' ' . $lang['licenses'] . ' (has removed ' . licName($_POST['id'], $license) . ')', 2);
25
+                    logAction($_SESSION['user_name'], $lang['removed'].' '.uIDname($_POST['player'], $db_link).' '.$lang['licenses'].' (has removed '.licName($_POST['id'], $license).')', 2);
26 26
                 } elseif ($lic[$num] == '0') {
27 27
                     $lic[$num] = '1';
28
-                    logAction($_SESSION['user_name'], $lang['added'] . ' ' . uIDname($_POST['player'], $db_link) . ' ' . $lang['licenses'] . ' (has added ' . licName($_POST['id'], $license) . ')', 2);
28
+                    logAction($_SESSION['user_name'], $lang['added'].' '.uIDname($_POST['player'], $db_link).' '.$lang['licenses'].' (has added '.licName($_POST['id'], $license).')', 2);
29 29
                 }
30
-                $sql = "UPDATE `players` SET `" . $col . "`='$lic' WHERE `uid` = '" . $_POST['player'] . "';";
30
+                $sql = "UPDATE `players` SET `".$col."`='$lic' WHERE `uid` = '".$_POST['player']."';";
31 31
                 $db_link->query($sql);
32 32
             }
33 33
         }
Please login to merge, or discard this patch.
hooks/arrest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -11,26 +11,26 @@
 block discarded – undo
11 11
             $db_link = serverConnect($_SESSION['dbid']);
12 12
 
13 13
             if ($_POST['id'] == 'arrested') {
14
-                $sql = "SELECT `arrested` FROM `players` WHERE `uid` = '" . $_POST['player'] . "';";
14
+                $sql = "SELECT `arrested` FROM `players` WHERE `uid` = '".$_POST['player']."';";
15 15
                 $result = $db_link->query($sql);
16 16
                 if ($result->num_rows > 0) {
17 17
                     $switch = $result->fetch_object();
18 18
                     if ($switch->arrested == '1') {
19
-                        $sql = "UPDATE `players` SET `arrested`='0' WHERE `uid` = '" . $_POST['player'] . "';";
19
+                        $sql = "UPDATE `players` SET `arrested`='0' WHERE `uid` = '".$_POST['player']."';";
20 20
                     } elseif ($switch->arrested == '0') {
21
-                        $sql = "UPDATE `players` SET `arrested`='1' WHERE `uid` = '" . $_POST['player'] . "';";
21
+                        $sql = "UPDATE `players` SET `arrested`='1' WHERE `uid` = '".$_POST['player']."';";
22 22
                     }
23 23
                     $db_link->query($sql);
24 24
                 }
25 25
             } elseif ($_POST['id'] == 'blacklist') {
26
-                $sql = "SELECT `blacklist` FROM `players` WHERE `uid` = '" . $_POST['player'] . "';";
26
+                $sql = "SELECT `blacklist` FROM `players` WHERE `uid` = '".$_POST['player']."';";
27 27
                 $result = $db_link->query($sql);
28 28
                 if ($result->num_rows > 0) {
29 29
                     $switch = $result->fetch_object();
30 30
                     if ($switch->blacklist == '1') {
31
-                        $sql = "UPDATE `players` SET `blacklist`='0' WHERE `uid` = '" . $_POST['player'] . "';";
31
+                        $sql = "UPDATE `players` SET `blacklist`='0' WHERE `uid` = '".$_POST['player']."';";
32 32
                     } elseif ($switch->blacklist == '0') {
33
-                        $sql = "UPDATE `players` SET `blacklist`='1' WHERE `uid` = '" . $_POST['player'] . "';";
33
+                        $sql = "UPDATE `players` SET `blacklist`='1' WHERE `uid` = '".$_POST['player']."';";
34 34
                     }
35 35
                     $db_link->query($sql);
36 36
                 }
Please login to merge, or discard this patch.
hooks/gangActive.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,24 +11,24 @@
 block discarded – undo
11 11
         if (isset($_SESSION['dbid'])) {
12 12
             $db_link = serverConnect($_SESSION['dbid']);
13 13
 
14
-            $sql = "SELECT `active` FROM `gangs` WHERE `id` = '" . $_POST['gang'] . "';";
14
+            $sql = "SELECT `active` FROM `gangs` WHERE `id` = '".$_POST['gang']."';";
15 15
             $result = $db_link->query($sql);
16 16
             if ($result->num_rows > 0) {
17 17
                 $active = $result->fetch_object();
18 18
                 if ($active == '1') {
19 19
                     $active = '0';
20 20
                     if ($settings['logging']) {
21
-                        logAction($_SESSION['user_name'], $lang['edited'] . ' ' . uIDname($_POST['player'], $db_link) . ' ' . $lang['gang'] . ' ' . $lang['deactive'], 1);
21
+                        logAction($_SESSION['user_name'], $lang['edited'].' '.uIDname($_POST['player'], $db_link).' '.$lang['gang'].' '.$lang['deactive'], 1);
22 22
                     }
23 23
                 } elseif ($active == '0') {
24 24
                     $active = '1';
25 25
                     if ($settings['logging']) {
26
-                        logAction($_SESSION['user_name'], $lang['edited'] . ' ' . uIDname($_POST['player'], $db_link) . ' ' . $lang['gang'] . ' ' . $lang['active'], 1);
26
+                        logAction($_SESSION['user_name'], $lang['edited'].' '.uIDname($_POST['player'], $db_link).' '.$lang['gang'].' '.$lang['active'], 1);
27 27
                     }
28 28
                 } else {
29 29
                     $active = '0';
30 30
                 }
31
-                $sql = "UPDATE `gangs` SET `active`='$active' WHERE `id` = '" . $_POST['gang'] . "';";
31
+                $sql = "UPDATE `gangs` SET `active`='$active' WHERE `id` = '".$_POST['gang']."';";
32 32
                 $db_link->query($sql);
33 33
             }
34 34
         }
Please login to merge, or discard this patch.
gfunctions.php 3 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -286,6 +286,9 @@
 block discarded – undo
286 286
     return substr(str_shuffle('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'), 0, $length);
287 287
 }
288 288
 
289
+/**
290
+ * @param integer $type
291
+ */
289 292
 function stripArray($input, $type)
290 293
 {
291 294
     switch ($type) {
Please login to merge, or discard this patch.
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -174,12 +174,12 @@  discard block
 block discarded – undo
174 174
     echo "<br><div class='row'><div class='col-lg-12'>";
175 175
     echo "<div class='alert alert-danger alert-dismissable'>";
176 176
     echo "<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;</button>";
177
-    echo "<i class='fa fa-info-circle'></i> " . $text . "</div></div></div>";
177
+    echo "<i class='fa fa-info-circle'></i> ".$text."</div></div></div>";
178 178
 }
179 179
 
180 180
 function error($errno, $errstr, $errfile, $errline)
181 181
 {
182
-    echo '<h4><b>PHP ERROR ' . $errno . '</b> ' . $errstr . ' - ' . $errfile . ':' . $errline . '</h4>';
182
+    echo '<h4><b>PHP ERROR '.$errno.'</b> '.$errstr.' - '.$errfile.':'.$errline.'</h4>';
183 183
 }
184 184
 
185 185
 /**
@@ -226,19 +226,19 @@  discard block
 block discarded – undo
226 226
         case 37:
227 227
             return $lang['noLic']; //No License
228 228
         case 371:
229
-            return $lang['no'] . ' ' . $lang['civil'] . ' ' . $lang['licenses']; //No Civillian Licenses
229
+            return $lang['no'].' '.$lang['civil'].' '.$lang['licenses']; //No Civillian Licenses
230 230
         case 372:
231
-            return $lang['no'] . ' ' . $lang['medic'] . ' ' . $lang['licenses']; //No Medic Licenses
231
+            return $lang['no'].' '.$lang['medic'].' '.$lang['licenses']; //No Medic Licenses
232 232
         case 373:
233
-            return $lang['no'] . ' ' . $lang['police'] . ' ' . $lang['licenses']; //No Police Licenses
233
+            return $lang['no'].' '.$lang['police'].' '.$lang['licenses']; //No Police Licenses
234 234
         case 38:
235
-            return $lang['no'] . ' ' . $lang['gear']; //No License
235
+            return $lang['no'].' '.$lang['gear']; //No License
236 236
         case 381:
237
-            return $lang['no'] . ' ' . $lang['civil'] . ' ' . $lang['gear']; //No Civillian Licenses
237
+            return $lang['no'].' '.$lang['civil'].' '.$lang['gear']; //No Civillian Licenses
238 238
         case 382:
239
-            return $lang['no'] . ' ' . $lang['medic'] . ' ' . $lang['gear']; //No Medic Licenses
239
+            return $lang['no'].' '.$lang['medic'].' '.$lang['gear']; //No Medic Licenses
240 240
         case 383:
241
-            return $lang['no'] . ' ' . $lang['police'] . ' ' . $lang['gear']; //No Police Licenses
241
+            return $lang['no'].' '.$lang['police'].' '.$lang['gear']; //No Police Licenses
242 242
     }
243 243
 }
244 244
 
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
     $max = ceil($length / 40);
248 248
     $random = '';
249 249
     for ($i = 0; $i < $max; $i++) {
250
-        $random .= sha1(microtime(true) . mt_rand(10000, 90000));
250
+        $random .= sha1(microtime(true).mt_rand(10000, 90000));
251 251
     }
252 252
     return substr($random, 0, $length);
253 253
 }
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
 {
257 257
     $settings = require('config/settings.php');
258 258
     if (!empty($settings['steamAPI'])) {
259
-        $api = "http://api.steampowered.com/ISteamUser/GetPlayerBans/v1/?key=" . $settings['steamAPI'] . "&steamids=" . $PID;
259
+        $api = "http://api.steampowered.com/ISteamUser/GetPlayerBans/v1/?key=".$settings['steamAPI']."&steamids=".$PID;
260 260
         $bans = json_decode(file_get_contents($api), true);
261 261
         if ($bans['players']['0']['VACBanned']) {
262 262
             return '<h4><span class="label label-danger" style="margin-left:3px; line-height:2;">VAC BANNED</span></h4>';
@@ -356,14 +356,14 @@  discard block
 block discarded – undo
356 356
     }
357 357
 }
358 358
 
359
-function getGravatar($email, $s = 80, $d = 'mm', $r = 'x', $img = false, $atts = array() ) {
359
+function getGravatar($email, $s = 80, $d = 'mm', $r = 'x', $img = false, $atts = array()) {
360 360
     $url = 'https://www.gravatar.com/avatar/';
361
-    $url .= md5( strtolower( trim( $email ) ) );
361
+    $url .= md5(strtolower(trim($email)));
362 362
     $url .= "?s=$s&d=$d&r=$r";
363
-    if ( $img ) {
364
-        $url = '<img src="' . $url . '"';
365
-        foreach ( $atts as $key => $val )
366
-            $url .= ' ' . $key . '="' . $val . '"';
363
+    if ($img) {
364
+        $url = '<img src="'.$url.'"';
365
+        foreach ($atts as $key => $val)
366
+            $url .= ' '.$key.'="'.$val.'"';
367 367
         $url .= ' />';
368 368
     }
369 369
     return $url;
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -362,8 +362,9 @@
 block discarded – undo
362 362
     $url .= "?s=$s&d=$d&r=$r";
363 363
     if ( $img ) {
364 364
         $url = '<img src="' . $url . '"';
365
-        foreach ( $atts as $key => $val )
366
-            $url .= ' ' . $key . '="' . $val . '"';
365
+        foreach ( $atts as $key => $val ) {
366
+                    $url .= ' ' . $key . '="' . $val . '"';
367
+        }
367 368
         $url .= ' />';
368 369
     }
369 370
     return $url;
Please login to merge, or discard this patch.
views/steam/life/player.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -262,7 +262,7 @@
 block discarded – undo
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>
Please login to merge, or discard this patch.
Spacing   +55 added lines, -55 removed lines patch added patch discarded remove patch
@@ -5,14 +5,14 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
                         ?>
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -299,7 +299,9 @@
 block discarded – undo
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>
Please login to merge, or discard this patch.
views/life/editPlayer.php 1 patch
Indentation   +93 added lines, -93 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
 
157 157
       <div class="panel-body">
158 158
           <?php
159
-          $alias = str_replace('"[`', '', $player->aliases);
159
+            $alias = str_replace('"[`', '', $player->aliases);
160 160
     $alias = str_replace('`]"', '', $alias);
161 161
 
162 162
     echo '<center><img alt="'.$alias.'" src="'.$settings['url'].skinImage($player->civ_gear).'">';
@@ -173,11 +173,11 @@  discard block
 block discarded – undo
173 173
         <i class="fa fa-2x fa-bank"></i>
174 174
         <h4> <?php echo $lang['bank'].': '.$player->bankacc; ?> </h4>
175 175
           <?php
176
-          if ($player->arrested == 0) {
177
-              echo "<h4><button type='button' id='arrested' class='arrest btn btn-xs btn-success'>".$lang['not'].' '.$lang['arrested'].'</button></h4>';
178
-          } else {
179
-              echo "<h4><button type='button' id='arrested' class='arrest btn btn-xs btn-theme01'>".$lang['arrested'].'</button></h4>';
180
-          }
176
+            if ($player->arrested == 0) {
177
+                echo "<h4><button type='button' id='arrested' class='arrest btn btn-xs btn-success'>".$lang['not'].' '.$lang['arrested'].'</button></h4>';
178
+            } else {
179
+                echo "<h4><button type='button' id='arrested' class='arrest btn btn-xs btn-theme01'>".$lang['arrested'].'</button></h4>';
180
+            }
181 181
 
182 182
     if ($player->blacklist == 0) {
183 183
         echo "<h4><button type='button' id='blacklist' class='arrest btn btn-xs btn-success'>".$lang['not'].' '.$lang['blacklisted'].'</button></h4>';
@@ -272,9 +272,9 @@  discard block
 block discarded – undo
272 272
           </ul>
273 273
         </li>
274 274
           <?php
275
-          if ($_SESSION['permissions']['edit']['houses']) {
276
-              echo '<li><a href="#house" data-toggle="tab">'.$lang['houses'].'</a></li>';
277
-          }
275
+            if ($_SESSION['permissions']['edit']['houses']) {
276
+                echo '<li><a href="#house" data-toggle="tab">'.$lang['houses'].'</a></li>';
277
+            }
278 278
     if ($_SESSION['permissions']['edit']['vehicles']) {
279 279
         echo '<li><a href="#veh" data-toggle="tab">'.$lang['vehicles'].'</a></li>';
280 280
     }
@@ -291,57 +291,57 @@  discard block
 block discarded – undo
291 291
         ?>
292 292
               <div class="tab-pane fade in active well" id="civ_lic">
293 293
                   <?php
294
-                  if ($player->civ_licenses !== '"[]"' && $player->civ_licenses !== '') {
295
-                      echo '<h4 style="centred">'.$lang['civil'].' '.$lang['licenses'].'</h4>';
296
-                      $return = stripArray($player->civ_licenses, 0);
297
-                      foreach ($return as $value) {
298
-                          if (strpos($value, '1') == true) {
299
-                              $name = before(',', $value);
300
-                              echo "<button type='button' id=".$name." class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>".licName($name, $license).'</button> ';
301
-                          } else {
302
-                              $name = before(',', $value);
303
-                              echo "<button type='button' id=".$name." class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>".licName($name, $license).'</button> ';
304
-                          }
305
-                      }
306
-                  } else {
307
-                      echo '<h4>'.errorMessage(371, $lang).'</h4>';
308
-                  } ?>
294
+                    if ($player->civ_licenses !== '"[]"' && $player->civ_licenses !== '') {
295
+                        echo '<h4 style="centred">'.$lang['civil'].' '.$lang['licenses'].'</h4>';
296
+                        $return = stripArray($player->civ_licenses, 0);
297
+                        foreach ($return as $value) {
298
+                            if (strpos($value, '1') == true) {
299
+                                $name = before(',', $value);
300
+                                echo "<button type='button' id=".$name." class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>".licName($name, $license).'</button> ';
301
+                            } else {
302
+                                $name = before(',', $value);
303
+                                echo "<button type='button' id=".$name." class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>".licName($name, $license).'</button> ';
304
+                            }
305
+                        }
306
+                    } else {
307
+                        echo '<h4>'.errorMessage(371, $lang).'</h4>';
308
+                    } ?>
309 309
               </div>
310 310
               <div class="tab-pane well fade" id="medic_lic">
311 311
                   <?php
312
-                  if ($player->med_licenses !== '"[]"' && $player->med_licenses !== '') {
313
-                      echo '<h4 style="centred">'.$lang['medic'].' '.$lang['licenses'].'</h4>';
314
-                      $return = stripArray($player->med_licenses, 0);
315
-                      foreach ($return as $value) {
316
-                          if (strpos($value, '1') == true) {
317
-                              $name = before(',', $value);
318
-                              echo "<button type='button' id=".$name." class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>".licName($name, $license).'</button> ';
319
-                          } else {
320
-                              $name = before(',', $value);
321
-                              echo "<button type='button' id=".$name." class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>".licName($name, $license).'</button> ';
322
-                          }
323
-                      }
324
-                  } else {
325
-                      echo '<h4>'.errorMessage(372, $lang).'</h4>';
326
-                  } ?>
312
+                    if ($player->med_licenses !== '"[]"' && $player->med_licenses !== '') {
313
+                        echo '<h4 style="centred">'.$lang['medic'].' '.$lang['licenses'].'</h4>';
314
+                        $return = stripArray($player->med_licenses, 0);
315
+                        foreach ($return as $value) {
316
+                            if (strpos($value, '1') == true) {
317
+                                $name = before(',', $value);
318
+                                echo "<button type='button' id=".$name." class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>".licName($name, $license).'</button> ';
319
+                            } else {
320
+                                $name = before(',', $value);
321
+                                echo "<button type='button' id=".$name." class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>".licName($name, $license).'</button> ';
322
+                            }
323
+                        }
324
+                    } else {
325
+                        echo '<h4>'.errorMessage(372, $lang).'</h4>';
326
+                    } ?>
327 327
               </div>
328 328
               <div class="tab-pane well fade" id="police_lic">
329 329
                   <?php
330
-                  if ($player->cop_licenses !== '"[]"' && $player->cop_licenses !== '') {
331
-                      $return = stripArray($player->cop_licenses, 0);
332
-                      echo '<h4 style="centred">'.$lang['cop'].' '.$lang['licenses'].'</h4>';
333
-                      foreach ($return as $value) {
334
-                          if (strpos($value, '1') == true) {
335
-                              $name = before(',', $value);
336
-                              echo "<button type='button' id=".$name." class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>".licName($name, $license).'</button> ';
337
-                          } else {
338
-                              $name = before(',', $value);
339
-                              echo "<button type='button' id=".$name." class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>".licName($name, $license).'</button> ';
340
-                          }
341
-                      }
342
-                  } else {
343
-                      echo '<h4>'.errorMessage(373, $lang).'</h4>';
344
-                  } ?>
330
+                    if ($player->cop_licenses !== '"[]"' && $player->cop_licenses !== '') {
331
+                        $return = stripArray($player->cop_licenses, 0);
332
+                        echo '<h4 style="centred">'.$lang['cop'].' '.$lang['licenses'].'</h4>';
333
+                        foreach ($return as $value) {
334
+                            if (strpos($value, '1') == true) {
335
+                                $name = before(',', $value);
336
+                                echo "<button type='button' id=".$name." class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>".licName($name, $license).'</button> ';
337
+                            } else {
338
+                                $name = before(',', $value);
339
+                                echo "<button type='button' id=".$name." class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>".licName($name, $license).'</button> ';
340
+                            }
341
+                        }
342
+                    } else {
343
+                        echo '<h4>'.errorMessage(373, $lang).'</h4>';
344
+                    } ?>
345 345
               </div>
346 346
             <?php
347 347
     }
@@ -349,43 +349,43 @@  discard block
 block discarded – undo
349 349
         ?>
350 350
               <div class="tab-pane fade well" id="civ_inv">
351 351
                   <?php
352
-                  if ($player->civ_gear !== '"[]"' && $player->civ_gear !== '') {
353
-                      echo '<h4 style="centred">'.$lang['civil'].' '.$lang['gear'].'</h4>';
354
-                      echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='civ_gear' name='civ_gear'>".$player->civ_gear.'</textarea><br>';
355
-
356
-                      if ($_SESSION['permissions']['edit']['inventory']) {
357
-                          echo '<a data-toggle="modal" href="#edit_civ_inv" class="btn btn-primary btn-xs" style="float: right;">';
358
-                          echo '<i class="fa fa-pencil"></i></a>';
359
-                      }
360
-                  } else {
361
-                      echo '<h4>'.errorMessage(381, $lang).'</h4>';
362
-                  } ?>
352
+                    if ($player->civ_gear !== '"[]"' && $player->civ_gear !== '') {
353
+                        echo '<h4 style="centred">'.$lang['civil'].' '.$lang['gear'].'</h4>';
354
+                        echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='civ_gear' name='civ_gear'>".$player->civ_gear.'</textarea><br>';
355
+
356
+                        if ($_SESSION['permissions']['edit']['inventory']) {
357
+                            echo '<a data-toggle="modal" href="#edit_civ_inv" class="btn btn-primary btn-xs" style="float: right;">';
358
+                            echo '<i class="fa fa-pencil"></i></a>';
359
+                        }
360
+                    } else {
361
+                        echo '<h4>'.errorMessage(381, $lang).'</h4>';
362
+                    } ?>
363 363
               </div>
364 364
               <div class="tab-pane fade well" id="police_inv">
365 365
                   <?php
366
-                  if ($player->cop_gear !== '"[]"' && $player->cop_gear !== '') {
367
-                      echo '<h4 style="centred">'.$lang['cop'].' '.$lang['gear'].'</h4>';
368
-                      echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='cop_gear' name='cop_gear'>".$player->cop_gear.'</textarea><br>';
369
-                      if ($_SESSION['permissions']['edit']['inventory']) {
370
-                          echo '<a data-toggle="modal" href="#edit_cop_inv" class="btn btn-primary btn-xs" style="float: right;">';
371
-                          echo '<i class="fa fa-pencil"></i></a>';
372
-                      }
373
-                  } else {
374
-                      echo '<h4>'.errorMessage(383, $lang).'</h4>';
375
-                  } ?>
366
+                    if ($player->cop_gear !== '"[]"' && $player->cop_gear !== '') {
367
+                        echo '<h4 style="centred">'.$lang['cop'].' '.$lang['gear'].'</h4>';
368
+                        echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='cop_gear' name='cop_gear'>".$player->cop_gear.'</textarea><br>';
369
+                        if ($_SESSION['permissions']['edit']['inventory']) {
370
+                            echo '<a data-toggle="modal" href="#edit_cop_inv" class="btn btn-primary btn-xs" style="float: right;">';
371
+                            echo '<i class="fa fa-pencil"></i></a>';
372
+                        }
373
+                    } else {
374
+                        echo '<h4>'.errorMessage(383, $lang).'</h4>';
375
+                    } ?>
376 376
               </div>
377 377
               <div class="tab-pane fade well" id="medic_inv">
378 378
                   <?php
379
-                  if ($player->med_gear !== '"[]"' && $player->med_gear !== '') {
380
-                      echo '<h4 style="centred">'.$lang['medic'].' '.$lang['gear'].'</h4>';
381
-                      echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='med_gear' name='med_gear'>".$player->med_gear.'</textarea><br>';
382
-                      if ($_SESSION['permissions']['edit']['inventory']) {
383
-                          echo '<a data-toggle="modal" href="#edit_med_inv" class="btn btn-primary btn-xs" style="float: right;">';
384
-                          echo '<i class="fa fa-pencil"></i></a>';
385
-                      }
386
-                  } else {
387
-                      echo '<h4>'.errorMessage(382, $lang).'</h4>';
388
-                  } ?>
379
+                    if ($player->med_gear !== '"[]"' && $player->med_gear !== '') {
380
+                        echo '<h4 style="centred">'.$lang['medic'].' '.$lang['gear'].'</h4>';
381
+                        echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='med_gear' name='med_gear'>".$player->med_gear.'</textarea><br>';
382
+                        if ($_SESSION['permissions']['edit']['inventory']) {
383
+                            echo '<a data-toggle="modal" href="#edit_med_inv" class="btn btn-primary btn-xs" style="float: right;">';
384
+                            echo '<i class="fa fa-pencil"></i></a>';
385
+                        }
386
+                    } else {
387
+                        echo '<h4>'.errorMessage(382, $lang).'</h4>';
388
+                    } ?>
389 389
               </div>
390 390
             <?php
391 391
     }
@@ -727,16 +727,16 @@  discard block
 block discarded – undo
727 727
             echo '<h4>'.$lang['cop'].': ';
728 728
             echo "<select id='player_coplvl' name='player_coplvl'>";
729 729
             for ($lvl = 0;
730
-                                 $lvl <= $settings['maxLevels']['cop'];
731
-                                 ++$lvl) {
730
+                                    $lvl <= $settings['maxLevels']['cop'];
731
+                                    ++$lvl) {
732 732
                 echo '<option value="'.$lvl.'"'.select($lvl, $player->coplevel).'>'.$lvl.'</option>';
733 733
             }
734 734
             echo '</select>';
735 735
             echo '<h4>'.$lang['medic'].': ';
736 736
             echo "<select id='player_medlvl' name='player_medlvl'>";
737 737
             for ($lvl = 0;
738
-                                 $lvl <= $settings['maxLevels']['medic'];
739
-                                 ++$lvl) {
738
+                                    $lvl <= $settings['maxLevels']['medic'];
739
+                                    ++$lvl) {
740 740
                 echo '<option value="'.$lvl.'"'.select($lvl, $player->mediclevel).'>'.$lvl.'</option>';
741 741
             }
742 742
             echo '</select>';
@@ -745,16 +745,16 @@  discard block
 block discarded – undo
745 745
                 echo '<h4>'.$lang['admin'].': ';
746 746
                 echo "<select id='player_adminlvl' name='player_adminlvl'>";
747 747
                 for ($lvl = 0;
748
-                                     $lvl <= $settings['maxLevels']['admin'];
749
-                                     ++$lvl) {
748
+                                        $lvl <= $settings['maxLevels']['admin'];
749
+                                        ++$lvl) {
750 750
                     echo '<option value="'.$lvl.'"'.select($lvl, $player->adminlevel).'>'.$lvl.'</option>';
751 751
                 }
752 752
                 echo '</select>';
753 753
                 echo '<h4>'.$lang['donator'].': ';
754 754
                 echo "<select id='player_donlvl' name='player_donlvl'>";
755 755
                 for ($lvl = 0;
756
-                                     $lvl <= $settings['maxLevels']['donator'];
757
-                                     ++$lvl) {
756
+                                        $lvl <= $settings['maxLevels']['donator'];
757
+                                        ++$lvl) {
758 758
                     echo '<option value="'.$lvl.'"'.select($lvl, $player->$settings['donorFormat']).'>'.$lvl.'</option>';
759 759
                 }
760 760
                 echo '</select>';
Please login to merge, or discard this patch.