Completed
Pull Request — master (#82)
by
unknown
02:45
created
classes/login.php 3 patches
Braces   +8 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,7 +108,9 @@  discard block
 block discarded – undo
108 108
                             //if (!isset($verify->verify)) {
109 109
                                 $_SESSION['2factor'] = 0;
110 110
                                 if (!empty($result_row->twoFactor)) {
111
-                                    if ($settings['2factor']) $_SESSION['2factor'] = 1; else {
111
+                                    if ($settings['2factor']) {
112
+                                        $_SESSION['2factor'] = 1;
113
+                                    } else {
112 114
                                     $sql = "UPDATE `users` SET `backup`=NULL,`twoFactor`=NULL WHERE `userid` = '" . $result_row->user_id . "';";
113 115
                                     $this->db_connection->query($sql);
114 116
                                     $this->errors[] = $lang['2factorForceRevoke'];
@@ -130,7 +132,11 @@  discard block
 block discarded – undo
130 132
                                 $_SESSION['user_id'] = $result_row->user_id;
131 133
                                 $_SESSION['steamsignon'] = false;
132 134
                                 $_SESSION['permissions'] = json_decode($result_row->permissions, true);
133
-                                if (isset($result_row->items))$_SESSION['items'] = $result_row->items; else $_SESSION['items'] = $settings['items'];
135
+                                if (isset($result_row->items)) {
136
+                                    $_SESSION['items'] = $result_row->items;
137
+                                } else {
138
+                                    $_SESSION['items'] = $settings['items'];
139
+                                }
134 140
                                 if (isset($_POST['lang'])) {
135 141
                                     setcookie('lang', $_POST['lang'], time() + (3600 * 24 * 30));
136 142
                                     $_SESSION['lang'] = $_POST['lang'];
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 require_once("gfunctions.php");
3 3
 /**
4
-     * Class login
5
-     * handles the user's login and logout process
6
-     */
4
+ * Class login
5
+ * handles the user's login and logout process
6
+ */
7 7
 class Login
8 8
 {
9 9
     /**
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
                 // username field)
90 90
                 $sql = "SELECT user_name, user_email, user_level, user_profile, permissions, user_password_hash, user_id, playerid, twoFactor, token
91 91
                         FROM users
92
-                        WHERE user_name = '" . $user_name . "' OR user_email = '" . $user_name . "';";
92
+                        WHERE user_name = '" . $user_name."' OR user_email = '".$user_name."';";
93 93
                 $result_of_login_check = $this->db_connection->query($sql);
94 94
 
95 95
                 // if this user exists
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
                                 $_SESSION['2factor'] = 0;
109 109
                                 if (!empty($result_row->twoFactor)) {
110 110
                                     if ($settings['2factor']) $_SESSION['2factor'] = 1; else {
111
-                                    $sql = "UPDATE `users` SET `backup`=NULL,`twoFactor`=NULL WHERE `userid` = '" . $result_row->user_id . "';";
111
+                                    $sql = "UPDATE `users` SET `backup`=NULL,`twoFactor`=NULL WHERE `userid` = '".$result_row->user_id."';";
112 112
                                     $this->db_connection->query($sql);
113 113
                                     $this->errors[] = $lang['2factorForceRevoke'];
114 114
                                     }
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
                                 $_SESSION['user_login_status'] = 1;
139 139
 
140 140
                                 multiDB();
141
-                                logAction($_SESSION['user_name'], 'Successful Login (' . $_SERVER['REMOTE_ADDR'] . ')', 2);
141
+                                logAction($_SESSION['user_name'], 'Successful Login ('.$_SERVER['REMOTE_ADDR'].')', 2);
142 142
                             /*} else {
143 143
                                 if (isset($verify->message)) {
144 144
                                     $this->errors[] = $verify->message;
@@ -148,15 +148,15 @@  discard block
 block discarded – undo
148 148
                             }*/
149 149
                         } else {
150 150
                             $this->errors[] = "User is banned.";
151
-                            logAction($_POST['user_name'], 'Login Failed - Banned User (' . $_SERVER['REMOTE_ADDR'] . ')', 3);
151
+                            logAction($_POST['user_name'], 'Login Failed - Banned User ('.$_SERVER['REMOTE_ADDR'].')', 3);
152 152
                         }
153 153
                     } else {
154 154
                         $this->errors[] = "Wrong password. Try again.";
155
-                        logAction($_POST['user_name'], 'Login Failed - Wrong Password (' . $_SERVER['REMOTE_ADDR'] . ')', 3);
155
+                        logAction($_POST['user_name'], 'Login Failed - Wrong Password ('.$_SERVER['REMOTE_ADDR'].')', 3);
156 156
                     }
157 157
                 } else {
158 158
                     $this->errors[] = "This user does not exist.";
159
-                    logAction($_POST['user_name'], 'Login Failed - Wrong Username (' . $_SERVER['REMOTE_ADDR'] . ')', 3);
159
+                    logAction($_POST['user_name'], 'Login Failed - Wrong Username ('.$_SERVER['REMOTE_ADDR'].')', 3);
160 160
                 }
161 161
             } else {
162 162
                 $this->errors[] = "Database connection problem.";
Please login to merge, or discard this patch.
views/life/editVeh.php 2 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -323,4 +323,6 @@
 block discarded – undo
323 323
             </div>
324 324
         </div>
325 325
     </div>
326
-<?php } else echo "<h1>" . errorMessage(32, $lang) . "</h1>";
326
+<?php } else {
327
+    echo "<h1>" . errorMessage(32, $lang) . "</h1>";
328
+}
Please login to merge, or discard this patch.
Spacing   +53 added lines, -53 removed lines patch added patch discarded remove patch
@@ -12,35 +12,35 @@  discard block
 block discarded – undo
12 12
             switch ($_POST["editType"]) {
13 13
                 case "veh_inv":
14 14
                     $vehInv = $_POST["vehInv"];
15
-                    $sql = "UPDATE `vehicles` SET `inventory`='" . $vehInv . "' WHERE `vehicles`.`id` = '" . $vehID . "'";
15
+                    $sql = "UPDATE `vehicles` SET `inventory`='".$vehInv."' WHERE `vehicles`.`id` = '".$vehID."'";
16 16
                     $result_of_query = $db_link->query($sql);
17
-                    message($lang['vehicle'] . ' ' . $lang['edited']);
18
-                    $sql = "SELECT `pid`,`classname` FROM `vehicles` WHERE `id` ='" . $vehID . "';";
17
+                    message($lang['vehicle'].' '.$lang['edited']);
18
+                    $sql = "SELECT `pid`,`classname` FROM `vehicles` WHERE `id` ='".$vehID."';";
19 19
                     $result_of_query = $db_link->query($sql);
20 20
                     $vehTemp = $result_of_query->fetch_object();
21
-                    logAction($_SESSION['user_name'], $lang['edited'] . ' a ' . carName($vehTemp->classname) . ' (' . $vehID . ') ' . $lang['inventory'] . ' belonging to '.  nameID($vehTemp->pid, $db_link), 1);
21
+                    logAction($_SESSION['user_name'], $lang['edited'].' a '.carName($vehTemp->classname).' ('.$vehID.') '.$lang['inventory'].' belonging to '.nameID($vehTemp->pid, $db_link), 1);
22 22
                     break;
23 23
 
24 24
                 case "veh_store":
25
-                    $sql = "UPDATE `vehicles` SET `alive`='1',`active`='0' WHERE `vehicles`.`id` = '" . $vehID . "'";
25
+                    $sql = "UPDATE `vehicles` SET `alive`='1',`active`='0' WHERE `vehicles`.`id` = '".$vehID."'";
26 26
                     $result_of_query = $db_link->query($sql);
27
-                    message($lang['vehicle'] . ' stored');
28
-                    $sql = "SELECT `pid`,`classname` FROM `vehicles` WHERE `id` ='" . $vehID . "';";
27
+                    message($lang['vehicle'].' stored');
28
+                    $sql = "SELECT `pid`,`classname` FROM `vehicles` WHERE `id` ='".$vehID."';";
29 29
                     $result_of_query = $db_link->query($sql);
30 30
                     $vehTemp = $result_of_query->fetch_object();
31
-                    logAction($_SESSION['user_name'], $lang['stored'] . ' ' . nameID($vehTemp->pid, $db_link) . ' ' . carName($vehTemp->classname) . '(' . $vehID . ')', 1);
31
+                    logAction($_SESSION['user_name'], $lang['stored'].' '.nameID($vehTemp->pid, $db_link).' '.carName($vehTemp->classname).'('.$vehID.')', 1);
32 32
 
33 33
                     break;
34 34
 
35 35
                 case "veh_del":
36
-                    $sql = "SELECT `pid`, `classname`  FROM `vehicles` WHERE `id` ='" . $vehID . "';";
36
+                    $sql = "SELECT `pid`, `classname`  FROM `vehicles` WHERE `id` ='".$vehID."';";
37 37
                     $result_of_query = $db_link->query($sql);
38 38
                     $vehTemp = $result_of_query->fetch_object();
39
-                    logAction($_SESSION['user_name'], $lang['deleted'] . ' ' . nameID($vehTemp->pid, $db_link) . ' ' . carName($vehTemp->classname) . '(' . $vehID . ')', 2);
39
+                    logAction($_SESSION['user_name'], $lang['deleted'].' '.nameID($vehTemp->pid, $db_link).' '.carName($vehTemp->classname).'('.$vehID.')', 2);
40 40
 
41
-                    $sql = "DELETE FROM `vehicles` WHERE `vehicles`.`id` = '" . $vehID . "'";
41
+                    $sql = "DELETE FROM `vehicles` WHERE `vehicles`.`id` = '".$vehID."'";
42 42
                     $result_of_query = $db_link->query($sql);
43
-                    message($lang['vehicle'] . ' ' . $lang['deleted']);
43
+                    message($lang['vehicle'].' '.$lang['deleted']);
44 44
                     break;
45 45
 
46 46
                 case "veh_edit":
@@ -49,15 +49,15 @@  discard block
 block discarded – undo
49 49
                     $vehCol = $_POST["vehCol"];
50 50
                     $vehType = $_POST["vehType"];
51 51
 
52
-                    $sql = "UPDATE `vehicles` SET `side`='" . $vehSide . "',`type`='" . $vehType . "',`color`='" . $vehCol . "' WHERE `vehicles`.`id` = '" . $vehID . "'";
52
+                    $sql = "UPDATE `vehicles` SET `side`='".$vehSide."',`type`='".$vehType."',`color`='".$vehCol."' WHERE `vehicles`.`id` = '".$vehID."'";
53 53
                     $result_of_query = $db_link->query($sql);
54 54
 
55
-                    message($lang['vehicle'] . ' ' . $lang['edited']);
55
+                    message($lang['vehicle'].' '.$lang['edited']);
56 56
 
57
-                    $sql = "SELECT `pid`, `classname` FROM `vehicles` WHERE `id` ='" . $vehID . "';";
57
+                    $sql = "SELECT `pid`, `classname` FROM `vehicles` WHERE `id` ='".$vehID."';";
58 58
                     $result_of_query = $db_link->query($sql);
59 59
                     $vehTemp = $result_of_query->fetch_object();
60
-                    logAction($_SESSION['user_name'], $lang['edited'] . ' ' . nameID($vehTemp->pid, $db_link) . ' ' . carName($vehTemp->classname) . '(' . $vehID . ')', 1);
60
+                    logAction($_SESSION['user_name'], $lang['edited'].' '.nameID($vehTemp->pid, $db_link).' '.carName($vehTemp->classname).'('.$vehID.')', 1);
61 61
                     break;
62 62
             }
63 63
         } else {
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     }
67 67
 }
68 68
 
69
-$sql = "SELECT * FROM `vehicles` WHERE `id` ='" . $vehID . "';";
69
+$sql = "SELECT * FROM `vehicles` WHERE `id` ='".$vehID."';";
70 70
 $result_of_query = $db_link->query($sql);
71 71
 if ($result_of_query->num_rows > 0) {
72 72
     $veh = $result_of_query->fetch_object();
@@ -75,27 +75,27 @@  discard block
 block discarded – undo
75 75
     <div class="panel panel-default">
76 76
         <div class="panel-heading">
77 77
             <h2 class="panel-title"><i
78
-                    class="fa fa-child fa-fw"></i><?php echo nameID($veh->pid, $db_link) . "'s " . carName($veh->classname); ?>
78
+                    class="fa fa-child fa-fw"></i><?php echo nameID($veh->pid, $db_link)."'s ".carName($veh->classname); ?>
79 79
             </h2>
80 80
         </div>
81 81
         <div class="panel-body">
82 82
             <?php $carPic = getPic($veh->classname);
83
-            echo '<center><img src="' . $settings['url'] . 'assets/img/cars/' . $carPic . '.jpg" class="img-responsive" alt="' . $veh->classname . '">'; ?>
83
+            echo '<center><img src="'.$settings['url'].'assets/img/cars/'.$carPic.'.jpg" class="img-responsive" alt="'.$veh->classname.'">'; ?>
84 84
             <?php
85
-            echo "<h4>" . $lang['owner'] . ": <a href='" . $settings['url'] . "editPlayer/" . uID($veh->pid, $db_link) . "'>" . nameID($veh->pid, $db_link) . "</a></h4>";
86
-            echo "<h4>" . $lang['class'] . ": " . carName($veh->classname) . "</h4>";
87
-            echo "<h4>" . $lang['plate'] . ": " . $veh->plate . "</h4>";
85
+            echo "<h4>".$lang['owner'].": <a href='".$settings['url']."editPlayer/".uID($veh->pid, $db_link)."'>".nameID($veh->pid, $db_link)."</a></h4>";
86
+            echo "<h4>".$lang['class'].": ".carName($veh->classname)."</h4>";
87
+            echo "<h4>".$lang['plate'].": ".$veh->plate."</h4>";
88 88
 
89 89
             if ($veh->alive == false) {
90
-                echo "<h4><span class='label label-danger'>" . $lang["not"] . " " . $lang["alive"] . "</span></h4>";
90
+                echo "<h4><span class='label label-danger'>".$lang["not"]." ".$lang["alive"]."</span></h4>";
91 91
             } else {
92
-                echo "<h4><span class='label label-success'>" . $lang["alive"] . "</span></h4> ";
92
+                echo "<h4><span class='label label-success'>".$lang["alive"]."</span></h4> ";
93 93
             }
94 94
 
95 95
             if ($veh->active == false) {
96
-                echo " <h4><span class='label label-danger'>" . $lang["not"] . " " . $lang["active"] . "</span></h4>";
96
+                echo " <h4><span class='label label-danger'>".$lang["not"]." ".$lang["active"]."</span></h4>";
97 97
             } else {
98
-                echo " <h4><span class='label label-success'>" . $lang["active"] . "</span></h4>";
98
+                echo " <h4><span class='label label-success'>".$lang["active"]."</span></h4>";
99 99
             }
100 100
             if ($_SESSION['permissions']['edit']['vehicles']) {
101 101
                 echo '
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
             case 'civ':
126 126
                 ?>
127 127
                 <span class="fa fa-3x fa-car"></span>
128
-                <h4> <?php echo $lang['side'] . ": " . $lang['civ']; ?> </h4>
128
+                <h4> <?php echo $lang['side'].": ".$lang['civ']; ?> </h4>
129 129
                 <?php
130 130
                 break;
131 131
             case 'cop':
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
                 <div class="col-md-2 col-sm-2 col-md-offset-1 box0">
134 134
                     <div class="box1">
135 135
                         <span class="fa fa-3x fa-taxi"></span>
136
-                        <h4> <?php echo $lang['side'] . ": " . $lang['police']; ?> </h4>
136
+                        <h4> <?php echo $lang['side'].": ".$lang['police']; ?> </h4>
137 137
                     </div>
138 138
                 </div>
139 139
                 <?php
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
             case 'med':
142 142
                 ?>
143 143
                 <span class="fa fa-3x fa-ambulance"></span>
144
-                <h4> <?php echo $lang['side'] . ": " . $lang['medic']; ?> </h4>
144
+                <h4> <?php echo $lang['side'].": ".$lang['medic']; ?> </h4>
145 145
                 <?php
146 146
                 break;
147 147
         }
@@ -151,15 +151,15 @@  discard block
 block discarded – undo
151 151
         switch ($veh->type) {
152 152
             case 'Car':
153 153
                 echo "<span class='fa fa-3x fa-car'></span>";
154
-                echo "<h4>" . $lang['type'] . ": " . $lang['car'] . "</h4>";
154
+                echo "<h4>".$lang['type'].": ".$lang['car']."</h4>";
155 155
                 break;
156 156
             case 'Air':
157 157
                 echo "<span class='fa fa-3x fa-fighter-jet'></span>";
158
-                echo "<h4>" . $lang['type'] . ": " . $lang['air'] . "</h4>";
158
+                echo "<h4>".$lang['type'].": ".$lang['air']."</h4>";
159 159
                 break;
160 160
             case 'Ship':
161 161
                 echo "<span class='fa fa-3x fa-ship'></span>";
162
-                echo "<h4>" . $lang['type'] . ": " . $lang['ship'] . "</h4>";
162
+                echo "<h4>".$lang['type'].": ".$lang['ship']."</h4>";
163 163
                 break;
164 164
         }
165 165
         echo '</div>
@@ -169,13 +169,13 @@  discard block
 block discarded – undo
169 169
 
170 170
         <div class="panel panel-default" style="float:left; width:100%; margin:0 auto;">
171 171
             <div class="panel-body">
172
-                <h4 style="centred"><?php echo $lang['vehicle'] . " " . $lang['inventory']; ?> </h4>
172
+                <h4 style="centred"><?php echo $lang['vehicle']." ".$lang['inventory']; ?> </h4>
173 173
                 <?php
174 174
                 $inv = str_replace(']"', "", str_replace('"[', "", $veh->inventory));
175 175
                 if (empty($inv)) {
176 176
                     $inv = 'Empty';
177 177
                 }
178
-                echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='civ_gear' name='civ_gear'>" . $inv . "</textarea>";
178
+                echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='civ_gear' name='civ_gear'>".$inv."</textarea>";
179 179
                 ?>
180 180
                 <br>
181 181
                 <a data-toggle="modal" href="#edit_veh_inv" class="btn btn-primary btn-xs" style="float: right;">
@@ -192,10 +192,10 @@  discard block
 block discarded – undo
192 192
             <div class="modal-content">
193 193
                 <div class="modal-header">
194 194
                     <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
195
-                    <h4 class="modal-title"><span class="glyphicon glyphicon-pencil"></span><?php echo " " . $lang['edit'] . " " . $lang['vehicle'] . " " . $lang['inventory']; ?>
195
+                    <h4 class="modal-title"><span class="glyphicon glyphicon-pencil"></span><?php echo " ".$lang['edit']." ".$lang['vehicle']." ".$lang['inventory']; ?>
196 196
                     </h4>
197 197
                 </div>
198
-                <?php  echo '<form method="post" action="' . $settings['url'] . 'editVeh/' . $vehID . '">' ?>
198
+                <?php  echo '<form method="post" action="'.$settings['url'].'editVeh/'.$vehID.'">' ?>
199 199
                         <?php echo formtoken::getField() ?>
200 200
                         <div class="modal-body">
201 201
                             <div class="form-group">
@@ -221,10 +221,10 @@  discard block
 block discarded – undo
221 221
                 <div class="modal-header">
222 222
                     <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
223 223
                     <h4 class="modal-title"><span
224
-                            class="glyphicon glyphicon-pencil"></span><?php echo " " . $lang['delete'] . " " . $lang['vehicle']; ?>
224
+                            class="glyphicon glyphicon-pencil"></span><?php echo " ".$lang['delete']." ".$lang['vehicle']; ?>
225 225
                     </h4>
226 226
                 </div>
227
-                <?php  echo '<form method="post" action="' . $settings['url'] . 'editVeh/' . $vehID . '">' ?>
227
+                <?php  echo '<form method="post" action="'.$settings['url'].'editVeh/'.$vehID.'">' ?>
228 228
                     <?php echo formtoken::getField() ?>
229 229
                     <div class="modal-body">
230 230
                         <div class="form-group">
@@ -251,10 +251,10 @@  discard block
 block discarded – undo
251 251
                 <div class="modal-header">
252 252
                     <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
253 253
                     <h4 class="modal-title"><span
254
-                            class="glyphicon glyphicon-pencil"></span><?php echo " " . $lang['store'] . " " . $lang['vehicle']; ?>
254
+                            class="glyphicon glyphicon-pencil"></span><?php echo " ".$lang['store']." ".$lang['vehicle']; ?>
255 255
                     </h4>
256 256
                 </div>
257
-                <?php  echo '<form method="post" action="' . $settings['url'] . 'editVeh/' . $vehID . '">' ?>
257
+                <?php  echo '<form method="post" action="'.$settings['url'].'editVeh/'.$vehID.'">' ?>
258 258
                     <?php echo formtoken::getField() ?>
259 259
                     <div class="modal-body">
260 260
                         <div class="form-group">
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
                     <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
283 283
                     <h4 class="modal-title"><span class="glyphicon glyphicon-pencil"></span> Edit Player</h4>
284 284
                 </div>
285
-                <?php  echo '<form method="post" action="' . $settings['url'] . 'editVeh/' . $vehID . '">' ?>
285
+                <?php  echo '<form method="post" action="'.$settings['url'].'editVeh/'.$vehID.'">' ?>
286 286
                 <?php echo formtoken::getField() ?>
287 287
                     <div class="modal-body">
288 288
                         <div class="form-group">
@@ -291,21 +291,21 @@  discard block
 block discarded – undo
291 291
                             <div class="row">
292 292
                                 <center>
293 293
                                     <?php
294
-                                    echo "<h4>" . $lang['class'] . ":   <input id='vehClass' name='vehClass' type='text' value='" . $veh->classname . "' readonly></td><br/>";
295
-                                    echo "<h4>" . $lang['plate'] . ":    <input id='vehPlate' name='vehPlate' type='number' value='" . $veh->plate . "'readonly></td><br/>";
296
-                                    echo "<h4>" . $lang['side'] . ":   ";
294
+                                    echo "<h4>".$lang['class'].":   <input id='vehClass' name='vehClass' type='text' value='".$veh->classname."' readonly></td><br/>";
295
+                                    echo "<h4>".$lang['plate'].":    <input id='vehPlate' name='vehPlate' type='number' value='".$veh->plate."'readonly></td><br/>";
296
+                                    echo "<h4>".$lang['side'].":   ";
297 297
                                     echo "<select id='vehSide' name='vehSide'>";
298
-                                    echo '<option value="civ"' . select('civ', $veh->side) . '>' . $lang['civ'] . '</option>';
299
-                                    echo '<option value="cop"' . select('cop', $veh->side) . '>' . $lang['cop'] . '</option>';
300
-                                    echo '<option value="med"' . select('med', $veh->side) . '>' . $lang['medic'] . '</option>';
298
+                                    echo '<option value="civ"'.select('civ', $veh->side).'>'.$lang['civ'].'</option>';
299
+                                    echo '<option value="cop"'.select('cop', $veh->side).'>'.$lang['cop'].'</option>';
300
+                                    echo '<option value="med"'.select('med', $veh->side).'>'.$lang['medic'].'</option>';
301 301
                                     echo "</select>";
302
-                                    echo "<h4>" . $lang['type'] . ":   ";
302
+                                    echo "<h4>".$lang['type'].":   ";
303 303
                                     echo "<select id='vehType' name='vehType'>";
304
-                                    echo '<option value="Car"' . select('Car', $veh->type) . '>' . $lang['car'] . '</option>';
305
-                                    echo '<option value="Air"' . select('Air', $veh->type) . '>' . $lang['air'] . '</option>';
306
-                                    echo '<option value="Ship"' . select('Ship', $veh->type) . '>' . $lang['ship'] . '</option>';
304
+                                    echo '<option value="Car"'.select('Car', $veh->type).'>'.$lang['car'].'</option>';
305
+                                    echo '<option value="Air"'.select('Air', $veh->type).'>'.$lang['air'].'</option>';
306
+                                    echo '<option value="Ship"'.select('Ship', $veh->type).'>'.$lang['ship'].'</option>';
307 307
                                     echo "</select>";
308
-                                    echo "<h4>" . $lang['colour'] . ":   <input id='vehCol' name='vehCol' type='number' value='" . $veh->color . "'></td><br/>";
308
+                                    echo "<h4>".$lang['colour'].":   <input id='vehCol' name='vehCol' type='number' value='".$veh->color."'></td><br/>";
309 309
                                     echo "</center>";
310 310
                                     ?>
311 311
                                 </center>
@@ -320,4 +320,4 @@  discard block
 block discarded – undo
320 320
             </div>
321 321
         </div>
322 322
     </div>
323
-<?php } else echo "<h1>" . errorMessage(32, $lang) . "</h1>";
323
+<?php } else echo "<h1>".errorMessage(32, $lang)."</h1>";
Please login to merge, or discard this patch.
classes/password.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
-     * A Compatibility library with PHP 5.5's simplified password hashing API.
4
-     *
5
-     * @author Anthony Ferrara <[email protected]>
6
-     * @license http://www.opensource.org/licenses/mit-license.html MIT License
7
-     * @copyright 2012 The Authors
8
-     */
3
+ * A Compatibility library with PHP 5.5's simplified password hashing API.
4
+ *
5
+ * @author Anthony Ferrara <[email protected]>
6
+ * @license http://www.opensource.org/licenses/mit-license.html MIT License
7
+ * @copyright 2012 The Authors
8
+ */
9 9
 
10 10
 if (!defined('PASSWORD_DEFAULT')) {
11 11
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
             return null;
32 32
         }
33 33
         if (!is_int($algo)) {
34
-            trigger_error("password_hash() expects parameter 2 to be long, " . gettype($algo) . " given", E_USER_WARNING);
34
+            trigger_error("password_hash() expects parameter 2 to be long, ".gettype($algo)." given", E_USER_WARNING);
35 35
             return null;
36 36
         }
37 37
         switch ($algo) {
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
         }
123 123
         $salt = substr($salt, 0, $required_salt_len);
124 124
 
125
-        $hash = $hash_format . $salt;
125
+        $hash = $hash_format.$salt;
126 126
 
127 127
         $ret = crypt($password, $hash);
128 128
 
Please login to merge, or discard this patch.
views/life/editHouse.php 2 patches
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -233,4 +233,7 @@
 block discarded – undo
233 233
         </div>
234 234
     </div>
235 235
 </div>
236
-<?php } else errorMessage(3, $lang); ?>
236
+<?php } else {
237
+    errorMessage(3, $lang);
238
+}
239
+?>
Please login to merge, or discard this patch.
Spacing   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -6,37 +6,37 @@  discard block
 block discarded – undo
6 6
     switch ($_POST["editType"]) {
7 7
         case "house_inv":
8 8
             $hInv = $_POST["hInv"];
9
-            $sql = "UPDATE `houses` SET `inventory`='" . $hInv . "' WHERE `houses`.`id` = '" . $hID . "'";
9
+            $sql = "UPDATE `houses` SET `inventory`='".$hInv."' WHERE `houses`.`id` = '".$hID."'";
10 10
             $db_link->query($sql);
11
-            message($lang['house'] . ' ' . $lang['updated']);
11
+            message($lang['house'].' '.$lang['updated']);
12 12
             break;
13 13
 
14 14
         case "house_cont":
15 15
             $hCont = $_POST["hCont"];
16
-            $sql = "UPDATE `houses` SET `containers`='" . $hCont . "' WHERE `houses`.`id` = '" . $hID . "'";
16
+            $sql = "UPDATE `houses` SET `containers`='".$hCont."' WHERE `houses`.`id` = '".$hID."'";
17 17
             $db_link->query($sql);
18
-            message($lang['house'] . ' ' . $lang['updated']);
18
+            message($lang['house'].' '.$lang['updated']);
19 19
             break;
20 20
 
21 21
         case "house_del":
22
-            $sql = "DELETE FROM `houses` WHERE `houses`.`id` = '" . $hID . "'";
22
+            $sql = "DELETE FROM `houses` WHERE `houses`.`id` = '".$hID."'";
23 23
             $db_link->query($sql);
24
-            header("location: " . $settings['url'] . "houses");
24
+            header("location: ".$settings['url']."houses");
25 25
             break;
26 26
 
27 27
         case "house_details":
28 28
             $hPos = $_POST["hPos"];
29 29
             $hOwn = $_POST["hOwn"];
30 30
             $hOwned = $_POST["hOwned"];
31
-            $sql = "UPDATE `houses` SET `pid`='" . $hOwn . "',`pos`='" . $hPos . "',`owned`='" . $hOwned . "' WHERE `id` = '" . $hID . "'";
31
+            $sql = "UPDATE `houses` SET `pid`='".$hOwn."',`pos`='".$hPos."',`owned`='".$hOwned."' WHERE `id` = '".$hID."'";
32 32
             $db_link->query($sql);
33
-            message($lang['house'] . ' ' . $lang['updated']);
33
+            message($lang['house'].' '.$lang['updated']);
34 34
             break;
35 35
         }
36 36
     }
37 37
 }
38 38
 
39
-$sql = "SELECT * FROM `houses` WHERE `id` ='" . $hID . "';";
39
+$sql = "SELECT * FROM `houses` WHERE `id` ='".$hID."';";
40 40
 $result_of_query = $db_link->query($sql);
41 41
 if ($result_of_query->num_rows > 0) {
42 42
     $house = $result_of_query->fetch_object();
@@ -45,15 +45,15 @@  discard block
 block discarded – undo
45 45
     <div class="panel panel-default">
46 46
         <div class="panel-heading">
47 47
             <h2 class="panel-title"><i
48
-                    class="fa fa-child fa-fw"></i><?php echo nameID($house->pid, $db_link) . "'s " . $lang['house']; ?>
48
+                    class="fa fa-child fa-fw"></i><?php echo nameID($house->pid, $db_link)."'s ".$lang['house']; ?>
49 49
             </h2>
50 50
         </div>
51 51
         <div class="panel-body">
52 52
             <?php
53
-            echo '<center><img class="img-responsive" src="' . $settings['url'] . 'assets/img/house/1.jpg"/>';
53
+            echo '<center><img class="img-responsive" src="'.$settings['url'].'assets/img/house/1.jpg"/>';
54 54
 
55
-            echo "<h4>" . $lang['owner'] . ": <a href='" . $settings['url'] . "editPlayer/" . uID($house->pid, $db_link) . "'>" . nameID($house->pid, $db_link) . "</a></h4>";
56
-            echo "<h4>" . $lang['position'] . ": " . $house->pos . "</h4>";
55
+            echo "<h4>".$lang['owner'].": <a href='".$settings['url']."editPlayer/".uID($house->pid, $db_link)."'>".nameID($house->pid, $db_link)."</a></h4>";
56
+            echo "<h4>".$lang['position'].": ".$house->pos."</h4>";
57 57
 
58 58
             if ($_SESSION['permissions']['edit']['houses']) {
59 59
                 echo '
@@ -76,15 +76,15 @@  discard block
 block discarded – undo
76 76
     <?php
77 77
     echo '<div class="panel panel-default" style="float:left; width:100%; margin:0 auto;">';
78 78
     echo '<ul id="myTab" class="nav nav-tabs">';
79
-    echo '<li><a href="#house_inv" data-toggle="tab">' . $lang['inventory'] . '</a></li>';
80
-    echo '<li><a href="#house_cont" data-toggle="tab">' . $lang['containers'] . '</a></li>';
79
+    echo '<li><a href="#house_inv" data-toggle="tab">'.$lang['inventory'].'</a></li>';
80
+    echo '<li><a href="#house_cont" data-toggle="tab">'.$lang['containers'].'</a></li>';
81 81
     echo '</ul>';
82 82
     ?>
83 83
     <div id="myTabContent" class="tab-content">
84 84
         <div class="tab-pane fade active in well" id="house_inv">
85
-            <h4 style="centred"><?php echo $lang['house'] . " " . $lang['inventory']; ?> </h4>
85
+            <h4 style="centred"><?php echo $lang['house']." ".$lang['inventory']; ?> </h4>
86 86
             <?php
87
-                echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='civ_gear' name='civ_gear'>" . $house->inventory . "</textarea>";
87
+                echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='civ_gear' name='civ_gear'>".$house->inventory."</textarea>";
88 88
             ?>
89 89
             <br>
90 90
             <?php if ($_SESSION['permissions']['edit']['houses']) { ?>
@@ -95,9 +95,9 @@  discard block
 block discarded – undo
95 95
             <br>
96 96
         </div>
97 97
         <div class="tab-pane fade well" id="house_cont">
98
-            <h4 style="centred"><?php echo $lang['house'] . " " . $lang['containers']; ?> </h4>
98
+            <h4 style="centred"><?php echo $lang['house']." ".$lang['containers']; ?> </h4>
99 99
             <?php
100
-                echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='house_cont' name='house_cont'>" . $house->containers . "</textarea>";
100
+                echo "<textarea class='form-control' readonly rows='5' style='width: 100%' id='house_cont' name='house_cont'>".$house->containers."</textarea>";
101 101
             ?>
102 102
             <br>
103 103
             <?php if ($_SESSION['permissions']['edit']['houses']) { ?>
@@ -116,10 +116,10 @@  discard block
 block discarded – undo
116 116
         <div class="modal-content">
117 117
             <div class="modal-header">
118 118
                 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
119
-                <h4 class="modal-title"><span class="glyphicon glyphicon-pencil"></span><?php echo $lang['edit'] . " " . $lang['house'] . " " . $lang['inventory'] ?>
119
+                <h4 class="modal-title"><span class="glyphicon glyphicon-pencil"></span><?php echo $lang['edit']." ".$lang['house']." ".$lang['inventory'] ?>
120 120
                 </h4>
121 121
             </div>
122
-                <form method="post" action="<?php echo $settings['url'] . "editHouse/" . $hID ?>" role="form">
122
+                <form method="post" action="<?php echo $settings['url']."editHouse/".$hID ?>" role="form">
123 123
                     <div class="modal-body">
124 124
                         <div class="form-group">
125 125
                             <input type="hidden" name="editType" value="house_inv"/>
@@ -146,10 +146,10 @@  discard block
 block discarded – undo
146 146
                 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
147 147
                 <h4 class="modal-title">
148 148
                     <span
149
-                        class="glyphicon glyphicon-pencil"></span> <?php echo $lang['edit'] . " " . $lang['house'] . " " . $lang['containers'] ?>
149
+                        class="glyphicon glyphicon-pencil"></span> <?php echo $lang['edit']." ".$lang['house']." ".$lang['containers'] ?>
150 150
                 </h4>
151 151
             </div>
152
-                <form method="post" action="<?php echo $settings['url'] . "editHouse/" . $hID ?>" role="form">
152
+                <form method="post" action="<?php echo $settings['url']."editHouse/".$hID ?>" role="form">
153 153
                     <div class="modal-body">
154 154
                         <div class="form-group">
155 155
                             <input type="hidden" name="editType" value="house_cont"/>
@@ -173,10 +173,10 @@  discard block
 block discarded – undo
173 173
         <div class="modal-content">
174 174
             <div class="modal-header">
175 175
                 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
176
-                <h4 class="modal-title"><span class="glyphicon glyphicon-pencil"></span> <?php echo $lang['delete'] . " " . $lang['house'] ?>
176
+                <h4 class="modal-title"><span class="glyphicon glyphicon-pencil"></span> <?php echo $lang['delete']." ".$lang['house'] ?>
177 177
                 </h4>
178 178
             </div>
179
-            <form method="post" action="<?php echo $settings['url'] . "editHouse/" . $hID ?>" role="form">
179
+            <form method="post" action="<?php echo $settings['url']."editHouse/".$hID ?>" role="form">
180 180
                 <div class="modal-body">
181 181
                     <div class="form-group">
182 182
                         <input type="hidden" name="editType" value="house_del"/>
@@ -201,10 +201,10 @@  discard block
 block discarded – undo
201 201
             <div class="modal-header">
202 202
                 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
203 203
                 <h4 class="modal-title">
204
-                    <span class="glyphicon glyphicon-pencil"></span> <?php echo $lang['edit'] . " " . $lang['house'] ?>
204
+                    <span class="glyphicon glyphicon-pencil"></span> <?php echo $lang['edit']." ".$lang['house'] ?>
205 205
                 </h4>
206 206
             </div>
207
-                <form method="post" action="<?php echo $settings['url'] . "editHouse/" . $hID ?>" role="form">
207
+                <form method="post" action="<?php echo $settings['url']."editHouse/".$hID ?>" role="form">
208 208
                     <div class="modal-body">
209 209
                         <div class="form-group">
210 210
                             <input type="hidden" name="editType" value="house_details"/>
@@ -212,12 +212,12 @@  discard block
 block discarded – undo
212 212
                             <div class="row">
213 213
                                 <center>
214 214
                                     <?php
215
-                                    echo "<h4>" . $lang['owner'] . ": <input id='hOwn' name='hOwn' type='text' value='" . $house->pid . "'></td><br/>";
216
-                                    echo "<h4>" . $lang['position'] . ": <input id='hPos' name='hPos' type='text' value='" . $house->pos . "'readonly></td><br/>";
217
-                                    echo "<h4>" . $lang['owned'] . ":  ";
215
+                                    echo "<h4>".$lang['owner'].": <input id='hOwn' name='hOwn' type='text' value='".$house->pid."'></td><br/>";
216
+                                    echo "<h4>".$lang['position'].": <input id='hPos' name='hPos' type='text' value='".$house->pos."'readonly></td><br/>";
217
+                                    echo "<h4>".$lang['owned'].":  ";
218 218
                                     echo "<select id='hOwned' name='hOwned'>";
219
-                                    echo '<option value="0"' . select('0', $house->owned) . '>' . $lang['no'] . '</option>';
220
-                                    echo '<option value="1"' . select('1', $house->owned) . '>' . $lang['yes'] . '</option>';
219
+                                    echo '<option value="0"'.select('0', $house->owned).'>'.$lang['no'].'</option>';
220
+                                    echo '<option value="1"'.select('1', $house->owned).'>'.$lang['yes'].'</option>';
221 221
                                     echo "</select>";
222 222
                                     echo "</center>";
223 223
                                     ?>
Please login to merge, or discard this patch.
views/life/houses.php 2 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,4 +69,6 @@
 block discarded – undo
69 69
     </div>
70 70
 
71 71
 <?php
72
-} else echo errorMessage(3, $lang);
72
+} else {
73
+    echo errorMessage(3, $lang);
74
+}
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
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);
6
+    logAction($_SESSION['user_name'], $lang['searched'].' ('.$search.') '.$lang['in'].' '.$lang['vehicles'], 1);
7 7
     $sql = "SELECT h.`id` FROM `houses` h INNER JOIN `players` p ON houses.pid=players.$playerIdColumn WHERE h.`pid` LIKE '$search ' OR p.$playerIdColumn LIKE '$search ' OR h.`pos` LIKE '$search' OR p.`name` LIKE '%$search%';";
8 8
     $result_of_query = $db_link->query($sql);
9 9
     $total_records = mysqli_num_rows($result_of_query);
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
                 <th><i class="fa fa-user"></i> <?php echo $lang['position']; ?></th>
46 46
                 <th class="hidden-xs"><i class="fa fa-user"></i> <?php echo $lang['owned']; ?></th>
47 47
                 <?php if ($_SESSION['permissions']['edit']['houses']) {
48
-    echo '<th>' . $lang['edit'] . '</th>';
48
+    echo '<th>'.$lang['edit'].'</th>';
49 49
 }
50 50
 ?>
51 51
             </tr>
@@ -54,11 +54,11 @@  discard block
 block discarded – undo
54 54
             <?php
55 55
             while ($row = mysqli_fetch_assoc($result_of_query)) {
56 56
                 echo "<tr>";
57
-                echo "<td>" . $row["name"] . "</td>";
58
-                echo "<td>" . substr($row["pos"], 1, -1) . "</td>";
59
-                echo "<td class='hidden-xs'>" . yesNo($row["owned"], $lang) . "</td>";
57
+                echo "<td>".$row["name"]."</td>";
58
+                echo "<td>".substr($row["pos"], 1, -1)."</td>";
59
+                echo "<td class='hidden-xs'>".yesNo($row["owned"], $lang)."</td>";
60 60
                 if ($_SESSION['permissions']['edit']['houses']) {
61
-                    echo "<td><a class='btn btn-primary btn-xs' href='" . $settings['url'] . "editHouse/" . $row["id"] . "'>";
61
+                    echo "<td><a class='btn btn-primary btn-xs' href='".$settings['url']."editHouse/".$row["id"]."'>";
62 62
                     echo "<i class='fa fa-pencil'></i></a></td>";
63 63
                 }
64 64
                 echo "</tr>";
Please login to merge, or discard this patch.
classes/googleAuth.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
-     * PHP Class for handling Google Authenticator 2-factor authentication
4
-     *
5
-     * @author Michael Kliewe
6
-     * @copyright 2012 Michael Kliewe
7
-     * @license http://www.opensource.org/licenses/bsd-license.php BSD License
8
-     * @link http://www.phpgangsta.de/
9
-     */
3
+ * PHP Class for handling Google Authenticator 2-factor authentication
4
+ *
5
+ * @author Michael Kliewe
6
+ * @copyright 2012 Michael Kliewe
7
+ * @license http://www.opensource.org/licenses/bsd-license.php BSD License
8
+ * @link http://www.phpgangsta.de/
9
+ */
10 10
 
11 11
 class PHPGangsta_GoogleAuthenticator
12 12
 {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         $secretkey = $this->_base32Decode($secret);
48 48
 
49 49
         // Pack time into binary string
50
-        $time = chr(0) . chr(0) . chr(0) . chr(0) . pack('N*', $timeSlice);
50
+        $time = chr(0).chr(0).chr(0).chr(0).pack('N*', $timeSlice);
51 51
         // Hash it with users secret key
52 52
         $hm = hash_hmac('SHA1', $time, $secretkey, true);
53 53
         // Use last nipple of result as index/offset
@@ -73,8 +73,8 @@  discard block
 block discarded – undo
73 73
      * @return string
74 74
      */
75 75
     public function getQRCodeGoogleUrl($name, $secret) {
76
-        $urlencoded = urlencode('otpauth://totp/' . $name . '?secret=' . $secret . '');
77
-        return 'https://chart.googleapis.com/chart?chs=200x200&chld=M|0&cht=qr&chl=' . $urlencoded . '';
76
+        $urlencoded = urlencode('otpauth://totp/'.$name.'?secret='.$secret.'');
77
+        return 'https://chart.googleapis.com/chart?chs=200x200&chld=M|0&cht=qr&chl='.$urlencoded.'';
78 78
     }
79 79
 
80 80
     /**
Please login to merge, or discard this patch.
views/core/editStaff.php 3 patches
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
 if ($result_of_query->num_rows > 0) {
6 6
     $user = $result_of_query->fetch_object();
7 7
 	
8
-	if($_SESSION['user_level'] >= $user->user_level) {
8
+    if($_SESSION['user_level'] >= $user->user_level) {
9 9
 
10 10
     if (isset($_POST["staffName"])) {
11 11
         if (formtoken::validateToken($_POST)) {
@@ -14,18 +14,18 @@  discard block
 block discarded – undo
14 14
             $staffPID = $_POST['staffPID'];
15 15
             $permissions = include 'config/permissions.php';
16 16
             if (isset($_POST['ban'])) {
17
-				if ($user->user_level == 5 && $_SESSION['user_level'] < 5) { $staffRank = 5; } else { $staffRank = 0; }
18
-			} else {
19
-				if ($_POST['staffRank'] > $_SESSION['user_level'] || $user->user_level > $_SESSION['user_level']) { $staffRank = $user->user_level; } else { $staffRank = $_POST['staffRank']; }
20
-			}
21
-	    	$userPerms = json_encode($permissions[$staffRank]);
17
+                if ($user->user_level == 5 && $_SESSION['user_level'] < 5) { $staffRank = 5; } else { $staffRank = 0; }
18
+            } else {
19
+                if ($_POST['staffRank'] > $_SESSION['user_level'] || $user->user_level > $_SESSION['user_level']) { $staffRank = $user->user_level; } else { $staffRank = $_POST['staffRank']; }
20
+            }
21
+            $userPerms = json_encode($permissions[$staffRank]);
22 22
 	
23 23
             $sql = "UPDATE `users` SET `user_name`='" . $staffName . "',`user_email`='" . $staffEmail . "',`playerid`='" . $staffPID . "',`user_level`='" . $staffRank . "', `permissions`='" . $userPerms . "' WHERE `user_id` ='" . $uId . "';";
24 24
             $result_of_query = $db_connection->query($sql);
25
-			if ($user->user_level != $_POST['staffRank']) logAction($_SESSION['user_name'], $lang['edited'] . " " . $_POST['staffName'] . "\'s " . $lang['staff'] . " " . $lang['rank'] . " " . $lang['from'] . " (" . $settings['ranks'][$user->user_level] . ") " . $lang['to'] . " (" . $settings['ranks'][$_POST['staffRank']] . ")", 2);
26
-			if ($user->user_name != $_POST['staffName']) logAction($_SESSION['user_name'], $lang['edited'] . " " . $user->user_name . "\'s " . strtolower($lang['name']) . " " . $lang['to'] . " " . $_POST['staffName'] . "", 2);
27
-			if ($user->playerid != $_POST['staffPID']) logAction($_SESSION['user_name'], $lang['edited'] . " " . $_POST['staffName'] . "\'s " . $lang['player'] . " " . $lang['id'] . " " . $lang['from'] . " (" . $user->playerid . ") " . $lang['to'] . " (" . $_POST['staffPID'] . ")", 2);
28
-			if ($user->user_email != $_POST['staffEmail']) logAction($_SESSION['user_name'], $lang['edited'] . " " . $user->user_name . "\'s " . strtolower($lang['email']) . " " . $lang['from'] . " (" . $user->user_email . ") " . $lang['to'] . " (" . $_POST['staffEmail'] . ")", 2);
25
+            if ($user->user_level != $_POST['staffRank']) logAction($_SESSION['user_name'], $lang['edited'] . " " . $_POST['staffName'] . "\'s " . $lang['staff'] . " " . $lang['rank'] . " " . $lang['from'] . " (" . $settings['ranks'][$user->user_level] . ") " . $lang['to'] . " (" . $settings['ranks'][$_POST['staffRank']] . ")", 2);
26
+            if ($user->user_name != $_POST['staffName']) logAction($_SESSION['user_name'], $lang['edited'] . " " . $user->user_name . "\'s " . strtolower($lang['name']) . " " . $lang['to'] . " " . $_POST['staffName'] . "", 2);
27
+            if ($user->playerid != $_POST['staffPID']) logAction($_SESSION['user_name'], $lang['edited'] . " " . $_POST['staffName'] . "\'s " . $lang['player'] . " " . $lang['id'] . " " . $lang['from'] . " (" . $user->playerid . ") " . $lang['to'] . " (" . $_POST['staffPID'] . ")", 2);
28
+            if ($user->user_email != $_POST['staffEmail']) logAction($_SESSION['user_name'], $lang['edited'] . " " . $user->user_name . "\'s " . strtolower($lang['email']) . " " . $lang['from'] . " (" . $user->user_email . ") " . $lang['to'] . " (" . $_POST['staffEmail'] . ")", 2);
29 29
 			
30 30
             message(ucfirst($_POST['staffName']) . ' ' . $lang['updated']);
31 31
         } else message($lang['expired']);
@@ -104,12 +104,12 @@  discard block
 block discarded – undo
104 104
                 echo "<center>";
105 105
                 echo "<h4>" . $lang['name'] . ":  <input id='staffName' class='form-control' name='staffName' type='text' value='" . $user->user_name . "'></h4>";
106 106
                 echo "<h4>" . $lang['emailAdd'] . ": <input id='staffEmail' class='form-control' name='staffEmail' type='text' value='" . $user->user_email . "'></h4>";
107
-				echo "<h4>" . $lang['rank'] . ": ";
108
-				echo "<select id='staffRank' class='form-control' name='staffRank'>";
107
+                echo "<h4>" . $lang['rank'] . ": ";
108
+                echo "<select id='staffRank' class='form-control' name='staffRank'>";
109 109
 				
110
-				for ($lvl = 0; $lvl <= $_SESSION['user_level']; $lvl++) {
111
-					echo '<option value="' . $lvl . '"' . select($lvl, $user->user_level) . '>' . $settings['ranks'][$lvl] . '</option>';
112
-				}
110
+                for ($lvl = 0; $lvl <= $_SESSION['user_level']; $lvl++) {
111
+                    echo '<option value="' . $lvl . '"' . select($lvl, $user->user_level) . '>' . $settings['ranks'][$lvl] . '</option>';
112
+                }
113 113
 				
114 114
                 echo "</select></h4>";
115 115
                 echo "<h4>" . $lang['playerID'] . ":  <input id='staffPID' class='form-control' name='staffPID' type='text' value='" . $user->playerid . "'></h4>";
@@ -1104,7 +1104,7 @@  discard block
 block discarded – undo
1104 1104
     <?php } ?>
1105 1105
 <?php
1106 1106
 } else {
1107
-	echo '<h3>' . errorMessage(5, $lang) . '</h3>';
1107
+    echo '<h3>' . errorMessage(5, $lang) . '</h3>';
1108 1108
 }
1109 1109
 
1110 1110
 } else {
Please login to merge, or discard this patch.
Braces   +18 added lines, -6 removed lines patch added patch discarded remove patch
@@ -22,13 +22,23 @@  discard block
 block discarded – undo
22 22
 	
23 23
             $sql = "UPDATE `users` SET `user_name`='" . $staffName . "',`user_email`='" . $staffEmail . "',`playerid`='" . $staffPID . "',`user_level`='" . $staffRank . "', `permissions`='" . $userPerms . "' WHERE `user_id` ='" . $uId . "';";
24 24
             $result_of_query = $db_connection->query($sql);
25
-			if ($user->user_level != $_POST['staffRank']) logAction($_SESSION['user_name'], $lang['edited'] . " " . $_POST['staffName'] . "\'s " . $lang['staff'] . " " . $lang['rank'] . " " . $lang['from'] . " (" . $settings['ranks'][$user->user_level] . ") " . $lang['to'] . " (" . $settings['ranks'][$_POST['staffRank']] . ")", 2);
26
-			if ($user->user_name != $_POST['staffName']) logAction($_SESSION['user_name'], $lang['edited'] . " " . $user->user_name . "\'s " . strtolower($lang['name']) . " " . $lang['to'] . " " . $_POST['staffName'] . "", 2);
27
-			if ($user->playerid != $_POST['staffPID']) logAction($_SESSION['user_name'], $lang['edited'] . " " . $_POST['staffName'] . "\'s " . $lang['player'] . " " . $lang['id'] . " " . $lang['from'] . " (" . $user->playerid . ") " . $lang['to'] . " (" . $_POST['staffPID'] . ")", 2);
28
-			if ($user->user_email != $_POST['staffEmail']) logAction($_SESSION['user_name'], $lang['edited'] . " " . $user->user_name . "\'s " . strtolower($lang['email']) . " " . $lang['from'] . " (" . $user->user_email . ") " . $lang['to'] . " (" . $_POST['staffEmail'] . ")", 2);
25
+			if ($user->user_level != $_POST['staffRank']) {
26
+			    logAction($_SESSION['user_name'], $lang['edited'] . " " . $_POST['staffName'] . "\'s " . $lang['staff'] . " " . $lang['rank'] . " " . $lang['from'] . " (" . $settings['ranks'][$user->user_level] . ") " . $lang['to'] . " (" . $settings['ranks'][$_POST['staffRank']] . ")", 2);
27
+			}
28
+			if ($user->user_name != $_POST['staffName']) {
29
+			    logAction($_SESSION['user_name'], $lang['edited'] . " " . $user->user_name . "\'s " . strtolower($lang['name']) . " " . $lang['to'] . " " . $_POST['staffName'] . "", 2);
30
+			}
31
+			if ($user->playerid != $_POST['staffPID']) {
32
+			    logAction($_SESSION['user_name'], $lang['edited'] . " " . $_POST['staffName'] . "\'s " . $lang['player'] . " " . $lang['id'] . " " . $lang['from'] . " (" . $user->playerid . ") " . $lang['to'] . " (" . $_POST['staffPID'] . ")", 2);
33
+			}
34
+			if ($user->user_email != $_POST['staffEmail']) {
35
+			    logAction($_SESSION['user_name'], $lang['edited'] . " " . $user->user_name . "\'s " . strtolower($lang['email']) . " " . $lang['from'] . " (" . $user->user_email . ") " . $lang['to'] . " (" . $_POST['staffEmail'] . ")", 2);
36
+			}
29 37
 			
30 38
             message(ucfirst($_POST['staffName']) . ' ' . $lang['updated']);
31
-        } else message($lang['expired']);
39
+        } else {
40
+            message($lang['expired']);
41
+        }
32 42
     }
33 43
     if (isset($_POST["viewPlayer"])) {
34 44
         if (formtoken::validateToken($_POST)) {
@@ -80,7 +90,9 @@  discard block
 block discarded – undo
80 90
             message("Permissions Updated");
81 91
             session_destroy();
82 92
             session_start();
83
-        } else message($lang['expired']);
93
+        } else {
94
+            message($lang['expired']);
95
+        }
84 96
     }
85 97
     ?>
86 98
     <div class="row">
Please login to merge, or discard this patch.
Spacing   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <?php
2
-$sql = 'SELECT * FROM `users` WHERE `user_id` ="' . $uId . '";';
2
+$sql = 'SELECT * FROM `users` WHERE `user_id` ="'.$uId.'";';
3 3
 $result_of_query = $db_connection->query($sql);
4 4
 
5 5
 if ($result_of_query->num_rows > 0) {
6 6
     $user = $result_of_query->fetch_object();
7 7
 	
8
-	if($_SESSION['user_level'] >= $user->user_level) {
8
+	if ($_SESSION['user_level'] >= $user->user_level) {
9 9
 
10 10
     if (isset($_POST["staffName"])) {
11 11
         if (formtoken::validateToken($_POST)) {
@@ -20,14 +20,14 @@  discard block
 block discarded – undo
20 20
 			}
21 21
 	    	$userPerms = json_encode($permissions[$staffRank]);
22 22
 	
23
-            $sql = "UPDATE `users` SET `user_name`='" . $staffName . "',`user_email`='" . $staffEmail . "',`playerid`='" . $staffPID . "',`user_level`='" . $staffRank . "', `permissions`='" . $userPerms . "' WHERE `user_id` ='" . $uId . "';";
23
+            $sql = "UPDATE `users` SET `user_name`='".$staffName."',`user_email`='".$staffEmail."',`playerid`='".$staffPID."',`user_level`='".$staffRank."', `permissions`='".$userPerms."' WHERE `user_id` ='".$uId."';";
24 24
             $result_of_query = $db_connection->query($sql);
25
-			if ($user->user_level != $_POST['staffRank']) logAction($_SESSION['user_name'], $lang['edited'] . " " . $_POST['staffName'] . "\'s " . $lang['staff'] . " " . $lang['rank'] . " " . $lang['from'] . " (" . $settings['ranks'][$user->user_level] . ") " . $lang['to'] . " (" . $settings['ranks'][$_POST['staffRank']] . ")", 2);
26
-			if ($user->user_name != $_POST['staffName']) logAction($_SESSION['user_name'], $lang['edited'] . " " . $user->user_name . "\'s " . strtolower($lang['name']) . " " . $lang['to'] . " " . $_POST['staffName'] . "", 2);
27
-			if ($user->playerid != $_POST['staffPID']) logAction($_SESSION['user_name'], $lang['edited'] . " " . $_POST['staffName'] . "\'s " . $lang['player'] . " " . $lang['id'] . " " . $lang['from'] . " (" . $user->playerid . ") " . $lang['to'] . " (" . $_POST['staffPID'] . ")", 2);
28
-			if ($user->user_email != $_POST['staffEmail']) logAction($_SESSION['user_name'], $lang['edited'] . " " . $user->user_name . "\'s " . strtolower($lang['email']) . " " . $lang['from'] . " (" . $user->user_email . ") " . $lang['to'] . " (" . $_POST['staffEmail'] . ")", 2);
25
+			if ($user->user_level != $_POST['staffRank']) logAction($_SESSION['user_name'], $lang['edited']." ".$_POST['staffName']."\'s ".$lang['staff']." ".$lang['rank']." ".$lang['from']." (".$settings['ranks'][$user->user_level].") ".$lang['to']." (".$settings['ranks'][$_POST['staffRank']].")", 2);
26
+			if ($user->user_name != $_POST['staffName']) logAction($_SESSION['user_name'], $lang['edited']." ".$user->user_name."\'s ".strtolower($lang['name'])." ".$lang['to']." ".$_POST['staffName']."", 2);
27
+			if ($user->playerid != $_POST['staffPID']) logAction($_SESSION['user_name'], $lang['edited']." ".$_POST['staffName']."\'s ".$lang['player']." ".$lang['id']." ".$lang['from']." (".$user->playerid.") ".$lang['to']." (".$_POST['staffPID'].")", 2);
28
+			if ($user->user_email != $_POST['staffEmail']) logAction($_SESSION['user_name'], $lang['edited']." ".$user->user_name."\'s ".strtolower($lang['email'])." ".$lang['from']." (".$user->user_email.") ".$lang['to']." (".$_POST['staffEmail'].")", 2);
29 29
 			
30
-            message(ucfirst($_POST['staffName']) . ' ' . $lang['updated']);
30
+            message(ucfirst($_POST['staffName']).' '.$lang['updated']);
31 31
         } else message($lang['expired']);
32 32
     }
33 33
     if (isset($_POST["viewPlayer"])) {
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 	
76 76
             $userPerms = json_encode($permissions);
77 77
 	
78
-            $sql = "UPDATE `users` SET `permissions`='" . $userPerms . "' WHERE `user_id` ='" . $uId . "';";
78
+            $sql = "UPDATE `users` SET `permissions`='".$userPerms."' WHERE `user_id` ='".$uId."';";
79 79
             $result_of_query = $db_connection->query($sql);
80 80
             message("Permissions Updated");
81 81
             session_destroy();
@@ -94,31 +94,31 @@  discard block
 block discarded – undo
94 94
     <div class="col-md-4">
95 95
         <div class="panel panel-default">
96 96
             <div class="panel-heading">
97
-                <h3 class="panel-title"><i class="fa fa-users fa-fw"></i><?php echo " " . $lang['staff']; ?></h3>
97
+                <h3 class="panel-title"><i class="fa fa-users fa-fw"></i><?php echo " ".$lang['staff']; ?></h3>
98 98
             </div>
99 99
             <div class="panel-body">
100 100
                 <?php
101
-                echo '<form method="post" action="' . $settings['url'] . 'editStaff/' . $uId . '" name="editform">';
101
+                echo '<form method="post" action="'.$settings['url'].'editStaff/'.$uId.'" name="editform">';
102 102
                 echo formtoken::getField();
103 103
 				
104 104
                 echo "<center>";
105
-                echo "<h4>" . $lang['name'] . ":  <input id='staffName' class='form-control' name='staffName' type='text' value='" . $user->user_name . "'></h4>";
106
-                echo "<h4>" . $lang['emailAdd'] . ": <input id='staffEmail' class='form-control' name='staffEmail' type='text' value='" . $user->user_email . "'></h4>";
107
-				echo "<h4>" . $lang['rank'] . ": ";
105
+                echo "<h4>".$lang['name'].":  <input id='staffName' class='form-control' name='staffName' type='text' value='".$user->user_name."'></h4>";
106
+                echo "<h4>".$lang['emailAdd'].": <input id='staffEmail' class='form-control' name='staffEmail' type='text' value='".$user->user_email."'></h4>";
107
+				echo "<h4>".$lang['rank'].": ";
108 108
 				echo "<select id='staffRank' class='form-control' name='staffRank'>";
109 109
 				
110 110
 				for ($lvl = 0; $lvl <= $_SESSION['user_level']; $lvl++) {
111
-					echo '<option value="' . $lvl . '"' . select($lvl, $user->user_level) . '>' . $settings['ranks'][$lvl] . '</option>';
111
+					echo '<option value="'.$lvl.'"'.select($lvl, $user->user_level).'>'.$settings['ranks'][$lvl].'</option>';
112 112
 				}
113 113
 				
114 114
                 echo "</select></h4>";
115
-                echo "<h4>" . $lang['playerID'] . ":  <input id='staffPID' class='form-control' name='staffPID' type='text' value='" . $user->playerid . "'></h4>";
115
+                echo "<h4>".$lang['playerID'].":  <input id='staffPID' class='form-control' name='staffPID' type='text' value='".$user->playerid."'></h4>";
116 116
                 echo "</center>";
117 117
 
118
-                echo "<input id='user_id' type='hidden' name='user_id' value='" . $uId . "'>";
119
-                echo "<center><input class='btn btn-lg btn-primary'  type='submit'  name='edit' value='" . $lang['subChange'] . "'>";
118
+                echo "<input id='user_id' type='hidden' name='user_id' value='".$uId."'>";
119
+                echo "<center><input class='btn btn-lg btn-primary'  type='submit'  name='edit' value='".$lang['subChange']."'>";
120 120
                 if ($_SESSION['user_id'] <> $uId) {
121
-                                    echo "  <input class='btn btn-lg btn-danger' type='submit'  name='ban' value='" . $lang['ban'] . "'>";
121
+                                    echo "  <input class='btn btn-lg btn-danger' type='submit'  name='ban' value='".$lang['ban']."'>";
122 122
                 }
123 123
                 ?>
124 124
                 </center>
@@ -133,8 +133,8 @@  discard block
 block discarded – undo
133 133
                 <h3 class="panel-title"><i class="fa fa-users fa-fw"></i><?php echo $lang['perms']; ?></h3>
134 134
             </div>
135 135
             <div class="panel-body">
136
-				<?php echo "<form method='post' action='" . $settings['url'] . 'editStaff/' . $uId . "' name='permsUpdate'>";
137
-                $permissions = json_decode($user->permissions,true);
136
+				<?php echo "<form method='post' action='".$settings['url'].'editStaff/'.$uId."' name='permsUpdate'>";
137
+                $permissions = json_decode($user->permissions, true);
138 138
                 ?>
139 139
 				<div class="col-md-4" style='padding-right: 0px; padding-left: 0px;'>
140 140
 					<div class="panel-heading">
@@ -438,7 +438,7 @@  discard block
 block discarded – undo
438 438
 				</div>
439 439
 				<div class="col-md-4" style='padding-right: 0px; padding-left: 0px;'>
440 440
 					<div class="panel-heading">
441
-						<div class="pull-left"><h5><i class="fa fa-tasks"></i><?php echo ' ' . $lang['perm_view']; ?></h5></div>
441
+						<div class="pull-left"><h5><i class="fa fa-tasks"></i><?php echo ' '.$lang['perm_view']; ?></h5></div>
442 442
 							<br>
443 443
 						</div>
444 444
 						<div class="panel-body">
@@ -769,7 +769,7 @@  discard block
 block discarded – undo
769 769
 				</div>
770 770
 				<div class="col-md-4" style='padding-right: 0px; padding-left: 0px;'>
771 771
 					<div class="panel-heading">
772
-						<div class="pull-left"><h5><i class="fa fa-tasks"></i><?php echo ' ' . $lang['perm_edit']; ?></h5></div>
772
+						<div class="pull-left"><h5><i class="fa fa-tasks"></i><?php echo ' '.$lang['perm_edit']; ?></h5></div>
773 773
 							<br>
774 774
 						</div>
775 775
 						<div class="panel-body">
@@ -779,7 +779,7 @@  discard block
 block discarded – undo
779 779
 									<li class="list-success">
780 780
 										<i class=" fa fa-ellipsis-v"></i>
781 781
 										<div class="task-title">
782
-											<span class="task-title-sp"><?php echo ' ' . $lang['perm_edit_player']; ?></span>
782
+											<span class="task-title-sp"><?php echo ' '.$lang['perm_edit_player']; ?></span>
783 783
 											<?php if ($_SESSION['permissions']['permissions']['edit']) { ?>
784 784
 											<div class="pull-right hidden-phone" style="padding-right:5px;">
785 785
 												<select name="editPlayer" id="editPlayer">
@@ -794,7 +794,7 @@  discard block
 block discarded – undo
794 794
 									<li class="list-danger">
795 795
 										<i class=" fa fa-ellipsis-v"></i>
796 796
 										<div class="task-title">
797
-											<span class="task-title-sp"><?php echo ' ' . $lang['perm_edit_player']; ?></span>
797
+											<span class="task-title-sp"><?php echo ' '.$lang['perm_edit_player']; ?></span>
798 798
 											<?php if ($_SESSION['permissions']['permissions']['edit']) { ?>
799 799
 											<div class="pull-right hidden-phone" style="padding-right:5px;">
800 800
 												<select name="editPlayer" id="editPlayer">
@@ -811,7 +811,7 @@  discard block
 block discarded – undo
811 811
 									<li class="list-success">
812 812
 										<i class=" fa fa-ellipsis-v"></i>
813 813
 										<div class="task-title">
814
-											<span class="task-title-sp"><?php echo ' ' . $lang['perm_edit_vehicles']; ?></span>
814
+											<span class="task-title-sp"><?php echo ' '.$lang['perm_edit_vehicles']; ?></span>
815 815
 											<?php if ($_SESSION['permissions']['permissions']['edit']) { ?>
816 816
 											<div class="pull-right hidden-phone" style="padding-right:5px;">
817 817
 												<select name="editVehicles" id="editVehicles">
@@ -826,7 +826,7 @@  discard block
 block discarded – undo
826 826
 									<li class="list-danger">
827 827
 										<i class=" fa fa-ellipsis-v"></i>
828 828
 										<div class="task-title">
829
-											<span class="task-title-sp"><?php echo ' ' . $lang['perm_edit_vehicles']; ?></span>
829
+											<span class="task-title-sp"><?php echo ' '.$lang['perm_edit_vehicles']; ?></span>
830 830
 											<?php if ($_SESSION['permissions']['permissions']['edit']) { ?>
831 831
 											<div class="pull-right hidden-phone" style="padding-right:5px;">
832 832
 												<select name="editVehicles" id="editVehicles">
@@ -843,7 +843,7 @@  discard block
 block discarded – undo
843 843
 									<li class="list-success">
844 844
 										<i class=" fa fa-ellipsis-v"></i>
845 845
 										<div class="task-title">
846
-											<span class="task-title-sp"><?php echo ' ' . $lang['perm_edit_houses']; ?></span>
846
+											<span class="task-title-sp"><?php echo ' '.$lang['perm_edit_houses']; ?></span>
847 847
 											<?php if ($_SESSION['permissions']['permissions']['edit']) { ?>
848 848
 											<div class="pull-right hidden-phone" style="padding-right:5px;">
849 849
 												<select name="editHouses" id="editHouses">
@@ -858,7 +858,7 @@  discard block
 block discarded – undo
858 858
 									<li class="list-danger">
859 859
 										<i class=" fa fa-ellipsis-v"></i>
860 860
 										<div class="task-title">
861
-											<span class="task-title-sp"><?php echo ' ' . $lang['perm_edit_houses']; ?></span>
861
+											<span class="task-title-sp"><?php echo ' '.$lang['perm_edit_houses']; ?></span>
862 862
 											<?php if ($_SESSION['permissions']['permissions']['edit']) { ?>
863 863
 											<div class="pull-right hidden-phone" style="padding-right:5px;">
864 864
 												<select name="editHouses" id="editHouses">
@@ -875,7 +875,7 @@  discard block
 block discarded – undo
875 875
 									<li class="list-success">
876 876
 										<i class=" fa fa-ellipsis-v"></i>
877 877
 										<div class="task-title">
878
-											<span class="task-title-sp"><?php echo ' ' . $lang['perm_edit_gangs']; ?></span>
878
+											<span class="task-title-sp"><?php echo ' '.$lang['perm_edit_gangs']; ?></span>
879 879
 											<?php if ($_SESSION['permissions']['permissions']['edit']) { ?>
880 880
 											<div class="pull-right hidden-phone" style="padding-right:5px;">
881 881
 												<select name="editGangs" id="editGangs">
@@ -890,7 +890,7 @@  discard block
 block discarded – undo
890 890
 									<li class="list-danger">
891 891
 										<i class=" fa fa-ellipsis-v"></i>
892 892
 										<div class="task-title">
893
-											<span class="task-title-sp"><?php echo ' ' . $lang['perm_edit_gangs']; ?></span>
893
+											<span class="task-title-sp"><?php echo ' '.$lang['perm_edit_gangs']; ?></span>
894 894
 											<?php if ($_SESSION['permissions']['permissions']['edit']) { ?>
895 895
 											<div class="pull-right hidden-phone" style="padding-right:5px;">
896 896
 												<select name="editGangs" id="editGangs">
@@ -907,7 +907,7 @@  discard block
 block discarded – undo
907 907
 									<li class="list-success">
908 908
 										<i class=" fa fa-ellipsis-v"></i>
909 909
 										<div class="task-title">
910
-											<span class="task-title-sp"><?php echo ' ' . $lang['perm_edit_wanted']; ?></span>
910
+											<span class="task-title-sp"><?php echo ' '.$lang['perm_edit_wanted']; ?></span>
911 911
 											<?php if ($_SESSION['permissions']['permissions']['edit']) { ?>
912 912
 											<div class="pull-right hidden-phone" style="padding-right:5px;">
913 913
 												<select name="editWanted" id="editWanted">
@@ -922,7 +922,7 @@  discard block
 block discarded – undo
922 922
 									<li class="list-danger">
923 923
 										<i class=" fa fa-ellipsis-v"></i>
924 924
 										<div class="task-title">
925
-											<span class="task-title-sp"><?php echo ' ' . $lang['perm_edit_wanted']; ?></span>
925
+											<span class="task-title-sp"><?php echo ' '.$lang['perm_edit_wanted']; ?></span>
926 926
 											<?php if ($_SESSION['permissions']['permissions']['edit']) { ?>
927 927
 											<div class="pull-right hidden-phone" style="padding-right:5px;">
928 928
 												<select name="editWanted" id="editWanted">
@@ -939,7 +939,7 @@  discard block
 block discarded – undo
939 939
 									<li class="list-success">
940 940
 										<i class=" fa fa-ellipsis-v"></i>
941 941
 										<div class="task-title">
942
-											<span class="task-title-sp"><?php echo ' ' . $lang['perm_edit_licences']; ?></span>
942
+											<span class="task-title-sp"><?php echo ' '.$lang['perm_edit_licences']; ?></span>
943 943
 											<?php if ($_SESSION['permissions']['permissions']['edit']) { ?>
944 944
 											<div class="pull-right hidden-phone" style="padding-right:5px;">
945 945
 												<select name="editLIC" id="editLIC">
@@ -954,7 +954,7 @@  discard block
 block discarded – undo
954 954
 									<li class="list-danger">
955 955
 										<i class=" fa fa-ellipsis-v"></i>
956 956
 										<div class="task-title">
957
-											<span class="task-title-sp"><?php echo ' ' . $lang['perm_edit_licences']; ?></span>
957
+											<span class="task-title-sp"><?php echo ' '.$lang['perm_edit_licences']; ?></span>
958 958
 											<?php if ($_SESSION['permissions']['permissions']['edit']) { ?>
959 959
 											<div class="pull-right hidden-phone" style="padding-right:5px;">
960 960
 												<select name="editLIC" id="editLIC">
@@ -971,7 +971,7 @@  discard block
 block discarded – undo
971 971
 									<li class="list-success">
972 972
 										<i class=" fa fa-ellipsis-v"></i>
973 973
 										<div class="task-title">
974
-											<span class="task-title-sp"><?php echo ' ' . $lang['perm_edit_inventory']; ?></span>
974
+											<span class="task-title-sp"><?php echo ' '.$lang['perm_edit_inventory']; ?></span>
975 975
 											<?php if ($_SESSION['permissions']['permissions']['edit']) { ?>
976 976
 											<div class="pull-right hidden-phone" style="padding-right:5px;">
977 977
 												<select name="editINV" id="editINV">
@@ -986,7 +986,7 @@  discard block
 block discarded – undo
986 986
 									<li class="list-danger">
987 987
 										<i class=" fa fa-ellipsis-v"></i>
988 988
 										<div class="task-title">
989
-											<span class="task-title-sp"><?php echo ' ' . $lang['perm_edit_inventory']; ?></span>
989
+											<span class="task-title-sp"><?php echo ' '.$lang['perm_edit_inventory']; ?></span>
990 990
 											<?php if ($_SESSION['permissions']['permissions']['edit']) { ?>
991 991
 											<div class="pull-right hidden-phone" style="padding-right:5px;">
992 992
 												<select name="editINV" id="editINV">
@@ -1002,7 +1002,7 @@  discard block
 block discarded – undo
1002 1002
 									<li class="list-success">
1003 1003
 										<i class=" fa fa-ellipsis-v"></i>
1004 1004
 										<div class="task-title">
1005
-											<span class="task-title-sp"><?php echo ' ' . $lang['perm_edit_ranks']; ?></span>
1005
+											<span class="task-title-sp"><?php echo ' '.$lang['perm_edit_ranks']; ?></span>
1006 1006
 											<?php if ($_SESSION['permissions']['permissions']['edit']) { ?>
1007 1007
 											<div class="pull-right hidden-phone" style="padding-right:5px;">
1008 1008
 												<select name="editRanks" id="editRanks">
@@ -1017,7 +1017,7 @@  discard block
 block discarded – undo
1017 1017
 									<li class="list-danger">
1018 1018
 										<i class=" fa fa-ellipsis-v"></i>
1019 1019
 										<div class="task-title">
1020
-											<span class="task-title-sp"><?php echo ' ' . $lang['perm_edit_ranks']; ?></span>
1020
+											<span class="task-title-sp"><?php echo ' '.$lang['perm_edit_ranks']; ?></span>
1021 1021
 											<?php if ($_SESSION['permissions']['permissions']['edit']) { ?>
1022 1022
 											<div class="pull-right hidden-phone" style="padding-right:5px;">
1023 1023
 												<select name="editRanks" id="editRanks">
@@ -1033,7 +1033,7 @@  discard block
 block discarded – undo
1033 1033
 									<li class="list-success">
1034 1034
 										<i class=" fa fa-ellipsis-v"></i>
1035 1035
 										<div class="task-title">
1036
-											<span class="task-title-sp"><?php echo ' ' . $lang['perm_edit_bank']; ?></span>
1036
+											<span class="task-title-sp"><?php echo ' '.$lang['perm_edit_bank']; ?></span>
1037 1037
 											<?php if ($_SESSION['permissions']['permissions']['edit']) { ?>
1038 1038
 											<div class="pull-right hidden-phone" style="padding-right:5px;">
1039 1039
 												<select name="editBank" id="editBank">
@@ -1048,7 +1048,7 @@  discard block
 block discarded – undo
1048 1048
 									<li class="list-danger">
1049 1049
 										<i class=" fa fa-ellipsis-v"></i>
1050 1050
 										<div class="task-title">
1051
-											<span class="task-title-sp"><?php echo ' ' . $lang['perm_edit_bank']; ?></span>
1051
+											<span class="task-title-sp"><?php echo ' '.$lang['perm_edit_bank']; ?></span>
1052 1052
 											<?php if ($_SESSION['permissions']['permissions']['edit']) { ?>
1053 1053
 											<div class="pull-right hidden-phone" style="padding-right:5px;">
1054 1054
 												<select name="editBank" id="editBank">
@@ -1064,7 +1064,7 @@  discard block
 block discarded – undo
1064 1064
 									<li class="list-success">
1065 1065
 										<i class=" fa fa-ellipsis-v"></i>
1066 1066
 										<div class="task-title">
1067
-											<span class="task-title-sp"><?php echo ' ' . $lang['perm_edit_ignLVL']; ?></span>
1067
+											<span class="task-title-sp"><?php echo ' '.$lang['perm_edit_ignLVL']; ?></span>
1068 1068
 											<?php if ($_SESSION['permissions']['permissions']['edit']) { ?>
1069 1069
 											<div class="pull-right hidden-phone" style="padding-right:5px;">
1070 1070
 												<select name="editignLVL" id="editignLVL">
@@ -1079,7 +1079,7 @@  discard block
 block discarded – undo
1079 1079
 									<li class="list-danger">
1080 1080
 										<i class=" fa fa-ellipsis-v"></i>
1081 1081
 										<div class="task-title">
1082
-											<span class="task-title-sp"><?php echo ' ' . $lang['perm_edit_ignLVL']; ?></span>
1082
+											<span class="task-title-sp"><?php echo ' '.$lang['perm_edit_ignLVL']; ?></span>
1083 1083
 											<?php if ($_SESSION['permissions']['permissions']['edit']) { ?>
1084 1084
 											<div class="pull-right hidden-phone" style="padding-right:5px;">
1085 1085
 												<select name="editignLVL" id="editignLVL">
@@ -1104,7 +1104,7 @@  discard block
 block discarded – undo
1104 1104
     <?php } ?>
1105 1105
 <?php
1106 1106
 } else {
1107
-	echo '<h3>' . errorMessage(5, $lang) . '</h3>';
1107
+	echo '<h3>'.errorMessage(5, $lang).'</h3>';
1108 1108
 }
1109 1109
 
1110 1110
 } else {
Please login to merge, or discard this patch.
views/core/staff.php 3 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,8 +63,8 @@
 block discarded – undo
63 63
                     echo "<td><a class='btn btn-primary btn-xs' href='" . $settings['url'] . "editStaff/" . $row["user_id"] . "'>";
64 64
                     echo "<i class='fa fa-pencil'></i></a></td>";
65 65
                 } else {
66
-					echo "<td></td>";
67
-				}
66
+                    echo "<td></td>";
67
+                }
68 68
                 echo "</tr>";
69 69
             };
70 70
             echo "</tbody></table>";
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -1,19 +1,19 @@  discard block
 block discarded – undo
1 1
 <?php
2
-$max = 'LIMIT ' . ($pageNum - 1) * $_SESSION['items'] . ',' . $_SESSION['items'];
2
+$max = 'LIMIT '.($pageNum - 1) * $_SESSION['items'].','.$_SESSION['items'];
3 3
 
4 4
 if (isset($search)) {
5
-    $sql = "SELECT * FROM `users` WHERE `user_name` LIKE '%" . $search . "%' OR `user_email` LIKE '" . $search . "' OR `user_id` LIKE '" . $search . "' OR `playerid` LIKE '%" . $search . "%';";
5
+    $sql = "SELECT * FROM `users` WHERE `user_name` LIKE '%".$search."%' OR `user_email` LIKE '".$search."' OR `user_id` LIKE '".$search."' OR `playerid` LIKE '%".$search."%';";
6 6
     $result_of_query = $db_connection->query($sql);
7 7
     $total_records = mysqli_num_rows($result_of_query);
8 8
     if ($pageNum > $total_records) $pageNum = $total_records;
9
-    $sql = "SELECT * FROM `users` WHERE `user_name` LIKE '%" . $search . "%' OR `user_email` LIKE '" . $search . "' OR `user_id` LIKE '" . $search . "' OR `playerid` LIKE '%" . $search . "%'" . $max . " ;";
10
-    logAction($_SESSION['user_name'], $lang['searched'] . ' (' . $search . ') ' . $lang['in'] . ' ' . $lang['users'], 1);
9
+    $sql = "SELECT * FROM `users` WHERE `user_name` LIKE '%".$search."%' OR `user_email` LIKE '".$search."' OR `user_id` LIKE '".$search."' OR `playerid` LIKE '%".$search."%'".$max." ;";
10
+    logAction($_SESSION['user_name'], $lang['searched'].' ('.$search.') '.$lang['in'].' '.$lang['users'], 1);
11 11
 } else {
12 12
     $sql = "SELECT `user_name` FROM `users`;";
13 13
     $result_of_query = $db_connection->query($sql);
14 14
     $total_records = mysqli_num_rows($result_of_query);
15 15
     if ($pageNum > $total_records) $pageNum = $total_records;
16
-    $sql = "SELECT * FROM `users` ORDER BY `user_level` DESC " . $max . " ;";
16
+    $sql = "SELECT * FROM `users` ORDER BY `user_level` DESC ".$max." ;";
17 17
 }
18 18
 $result_of_query = $db_connection->query($sql);
19 19
 if ($result_of_query->num_rows > 0) {
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
                     <th><i class="fa fa-user"></i> <?php echo $lang['rank']; ?></th>
38 38
                     <th class='hidden-xs'><i class="fa fa-eye"></i> <?php echo $lang['playerID']; ?></th>
39 39
                     <?php if ($_SESSION['permissions']['edit']['staff']) {
40
-                        echo '<th><i class="fa fa-pencil"></i> ' . $lang['edit'] . '</th>';
40
+                        echo '<th><i class="fa fa-pencil"></i> '.$lang['edit'].'</th>';
41 41
                     }
42 42
                     ?>
43 43
                 </tr>
@@ -52,15 +52,15 @@  discard block
 block discarded – undo
52 52
                     echo ' class="danger"';
53 53
                 }
54 54
                 echo ">";
55
-                echo "<td>" . $row["user_name"] . "</td>";
56
-                echo "<td class='hidden-xs'>" . $row["user_email"] . "</td>";
57
-                echo "<td>" . $settings['ranks'][$row["user_level"]];
55
+                echo "<td>".$row["user_name"]."</td>";
56
+                echo "<td class='hidden-xs'>".$row["user_email"]."</td>";
57
+                echo "<td>".$settings['ranks'][$row["user_level"]];
58 58
                 if ($row["user_level"] != 0) {
59
-                    echo " (" . $row["user_level"] . ")";
59
+                    echo " (".$row["user_level"].")";
60 60
                 }
61
-                echo "</td><td class='hidden-xs'>" . $row["playerid"] . "</td>";
61
+                echo "</td><td class='hidden-xs'>".$row["playerid"]."</td>";
62 62
                 if ($_SESSION['permissions']['edit']['staff'] && $_SESSION['user_level'] >= $row["user_level"]) {
63
-                    echo "<td><a class='btn btn-primary btn-xs' href='" . $settings['url'] . "editStaff/" . $row["user_id"] . "'>";
63
+                    echo "<td><a class='btn btn-primary btn-xs' href='".$settings['url']."editStaff/".$row["user_id"]."'>";
64 64
                     echo "<i class='fa fa-pencil'></i></a></td>";
65 65
                 } else {
66 66
 					echo "<td></td>";
@@ -72,4 +72,4 @@  discard block
 block discarded – undo
72 72
             ?>
73 73
     </div>
74 74
     <?php
75
-} else echo '<h3>' . errorMessage(36, $lang) . '</h3>';
76 75
\ No newline at end of file
76
+} else echo '<h3>'.errorMessage(36, $lang).'</h3>';
77 77
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,14 +5,18 @@  discard block
 block discarded – undo
5 5
     $sql = "SELECT * FROM `users` WHERE `user_name` LIKE '%" . $search . "%' OR `user_email` LIKE '" . $search . "' OR `user_id` LIKE '" . $search . "' OR `playerid` LIKE '%" . $search . "%';";
6 6
     $result_of_query = $db_connection->query($sql);
7 7
     $total_records = mysqli_num_rows($result_of_query);
8
-    if ($pageNum > $total_records) $pageNum = $total_records;
8
+    if ($pageNum > $total_records) {
9
+        $pageNum = $total_records;
10
+    }
9 11
     $sql = "SELECT * FROM `users` WHERE `user_name` LIKE '%" . $search . "%' OR `user_email` LIKE '" . $search . "' OR `user_id` LIKE '" . $search . "' OR `playerid` LIKE '%" . $search . "%'" . $max . " ;";
10 12
     logAction($_SESSION['user_name'], $lang['searched'] . ' (' . $search . ') ' . $lang['in'] . ' ' . $lang['users'], 1);
11 13
 } else {
12 14
     $sql = "SELECT `user_name` FROM `users`;";
13 15
     $result_of_query = $db_connection->query($sql);
14 16
     $total_records = mysqli_num_rows($result_of_query);
15
-    if ($pageNum > $total_records) $pageNum = $total_records;
17
+    if ($pageNum > $total_records) {
18
+        $pageNum = $total_records;
19
+    }
16 20
     $sql = "SELECT * FROM `users` ORDER BY `user_level` DESC " . $max . " ;";
17 21
 }
18 22
 $result_of_query = $db_connection->query($sql);
@@ -72,4 +76,6 @@  discard block
 block discarded – undo
72 76
             ?>
73 77
     </div>
74 78
     <?php
75
-} else echo '<h3>' . errorMessage(36, $lang) . '</h3>';
76 79
\ No newline at end of file
80
+} else {
81
+    echo '<h3>' . errorMessage(36, $lang) . '</h3>';
82
+}
Please login to merge, or discard this patch.
views/life/editGang.php 1 patch
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -13,15 +13,15 @@  discard block
 block discarded – undo
13 13
     <picture>logo.paa</picture>
14 14
     <title>CZ</title>';
15 15
 
16
-    $sql = "SELECT `name`,`members` FROM `gangs` WHERE `id` = '" . $gID . "';";
16
+    $sql = "SELECT `name`,`members` FROM `gangs` WHERE `id` = '".$gID."';";
17 17
     $result = $db_link->query($sql);
18 18
     $gang = $result->fetch_object();
19 19
     $members = str_replace('`]"', '', str_replace('"[`', '', $gang->members));
20 20
     $members = explode('`,`', $members);
21 21
     foreach ($members as $member) {
22 22
         $name = nameID($member, $db_link);
23
-        $xml .= '<member id="' . $member . '" nick="' . $name . '">
24
-        <name>'.$name . '</name><email></email><icq></icq><remark></remark></member>';
23
+        $xml .= '<member id="'.$member.'" nick="'.$name.'">
24
+        <name>'.$name.'</name><email></email><icq></icq><remark></remark></member>';
25 25
     }
26 26
     $xml .= '</squad>';
27 27
     var_dump($xml);
@@ -33,13 +33,13 @@  discard block
 block discarded – undo
33 33
             switch ($_POST["editType"]) {
34 34
                 case "edit_members":
35 35
                     $gMem = clean($_POST["gMem"], 'string');
36
-                    $sql = "UPDATE `gangs` SET `members`='" . $gMem . "' WHERE `gangs`.`id` = '" . $gID . "'";
36
+                    $sql = "UPDATE `gangs` SET `members`='".$gMem."' WHERE `gangs`.`id` = '".$gID."'";
37 37
                     $result_of_query = $db_link->query($sql);
38 38
                     message($lang['updated']);
39 39
                     break;
40 40
 
41 41
                 case "del_gang":
42
-                    $sql = "DELETE FROM `gangs` WHERE `gangs`.`id` = '" . $gID . "'";
42
+                    $sql = "DELETE FROM `gangs` WHERE `gangs`.`id` = '".$gID."'";
43 43
                     $result_of_query = $db_link->query($sql);
44 44
                     message($lang['updated']);
45 45
                     break;
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
                     $gMM = clean($_POST["gMM"], 'int');
51 51
                     $gbank = clean($_POST["gbank"], 'int');
52 52
                     $gAct = clean($_POST["gAct"], 'int');
53
-                    $sql = "UPDATE `gangs` SET `owner`='" . $gowner . "',`name`='" . $gname . "',`maxmembers`='" . $gMM . "',`bank`='" . $gbank . "',`active`='" . $gAct . "' WHERE `gangs`.`id` = '" . $gID . "'";
53
+                    $sql = "UPDATE `gangs` SET `owner`='".$gowner."',`name`='".$gname."',`maxmembers`='".$gMM."',`bank`='".$gbank."',`active`='".$gAct."' WHERE `gangs`.`id` = '".$gID."'";
54 54
                     $result_of_query = $db_link->query($sql);
55 55
                     message($lang['updated']);
56 56
                     break;
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     }
62 62
     }
63 63
 
64
-$sql = 'SELECT * FROM `gangs` WHERE `id` ="' . $gID . '";';
64
+$sql = 'SELECT * FROM `gangs` WHERE `id` ="'.$gID.'";';
65 65
 $result_of_query = $db_link->query($sql);
66 66
 if ($result_of_query->num_rows > 0) {
67 67
     $gang = $result_of_query->fetch_object();
@@ -70,22 +70,22 @@  discard block
 block discarded – undo
70 70
     <div class="panel panel-default">
71 71
         <div class="panel-heading">
72 72
             <h2 class="panel-title"><i
73
-                    class="fa fa-child fa-fw"></i><?php echo nameID($gang->owner, $db_link) . "'s " . $lang['gang']; ?>
73
+                    class="fa fa-child fa-fw"></i><?php echo nameID($gang->owner, $db_link)."'s ".$lang['gang']; ?>
74 74
             </h2>
75 75
         </div>
76 76
         <div class="panel-body">
77 77
             <center><img src="<?php echo $settings['url'] ?>assets/img/uniform/U_BG_Guerilla2_3.jpg"/>
78 78
                 <?php
79
-                echo "<h4>" . $lang['owner'] . ": <a href='" . $settings['url'] . "editPlayer/" . uID($gang->owner, $db_link) . "'>" . nameID($gang->owner, $db_link) . "</a></h4>";
80
-                echo "<h4>" . $lang['name'] . ": " . $gang->name . "</h4>";
79
+                echo "<h4>".$lang['owner'].": <a href='".$settings['url']."editPlayer/".uID($gang->owner, $db_link)."'>".nameID($gang->owner, $db_link)."</a></h4>";
80
+                echo "<h4>".$lang['name'].": ".$gang->name."</h4>";
81 81
                 ?>
82 82
                 <span class="fa fa-2x fa-bank"></span>
83
-                <h4> <?php echo $lang['bank'] . ": " . $gang->bank; ?> </h4>
83
+                <h4> <?php echo $lang['bank'].": ".$gang->bank; ?> </h4>
84 84
                 <?php
85 85
                 if ($gang->active == 0) {
86
-                    echo "<h4><button type='button' class='gangActive btn btn-danger'>" . $lang["not"] . " " . $lang["active"] . "</button></h4> ";
86
+                    echo "<h4><button type='button' class='gangActive btn btn-danger'>".$lang["not"]." ".$lang["active"]."</button></h4> ";
87 87
                 } else {
88
-                    echo "<h4><button type='button' class='gangActive btn btn-success'>" . $lang["active"] . "</button></h4> ";
88
+                    echo "<h4><button type='button' class='gangActive btn btn-success'>".$lang["active"]."</button></h4> ";
89 89
                 }
90 90
                 if ($_SESSION['permissions']['edit']['gangs']) {
91 91
                     echo '<a data-toggle="modal" href="#edit_gang" class="btn btn-primary btn-xs" style="float: right; margin-right:3px;">';
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         <div class="col-md-2 col-sm-2 col-md-offset-1 box0">
107 107
             <div class="box1">
108 108
                 <span class="fa fa-3x fa-users"></span>
109
-                <h4> <?php echo $lang['maxMembers'] . ": " . $gang->maxmembers; ?> </h4>
109
+                <h4> <?php echo $lang['maxMembers'].": ".$gang->maxmembers; ?> </h4>
110 110
             </div>
111 111
         </div>
112 112
     </div>
@@ -117,12 +117,12 @@  discard block
 block discarded – undo
117 117
         </ul>
118 118
         <div id="myTabContent" class="tab-content">
119 119
             <div class="tab-pane fade active in well" id="civ_inv">
120
-                <h4 style="centred"><?php echo $lang['gang'] . " " . $lang['members']; ?> </h4>
120
+                <h4 style="centred"><?php echo $lang['gang']." ".$lang['members']; ?> </h4>
121 121
                 <?php
122 122
                     $return = stripArray($gang->members, 1);
123 123
 
124 124
                     foreach ($return as $value) {
125
-                        echo "<span class='label label-success' style='margin-right:3px; line-height:2;'>" . nameID($value, $db_link) . "</span> ";
125
+                        echo "<span class='label label-success' style='margin-right:3px; line-height:2;'>".nameID($value, $db_link)."</span> ";
126 126
                     }
127 127
                 }
128 128
                 ?>
@@ -143,10 +143,10 @@  discard block
 block discarded – undo
143 143
             <div class="modal-header">
144 144
                 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
145 145
                 <h4 class="modal-title"><span
146
-                        class="glyphicon glyphicon-pencil"></span><?php echo " " . $lang['edit'] . " " . $lang['gang'] . " " . $lang['members']; ?>
146
+                        class="glyphicon glyphicon-pencil"></span><?php echo " ".$lang['edit']." ".$lang['gang']." ".$lang['members']; ?>
147 147
                 </h4>
148 148
             </div>
149
-            <form method="post" action="<?php echo $settings['url'] . 'editGang/' . $gID; ?>" role="form">
149
+            <form method="post" action="<?php echo $settings['url'].'editGang/'.$gID; ?>" role="form">
150 150
                 <?php echo formtoken::getField() ?>
151 151
                 <div class="modal-body">
152 152
                     <div class="form-group">
@@ -173,10 +173,10 @@  discard block
 block discarded – undo
173 173
                 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
174 174
                 <h4 class="modal-title">
175 175
                     <span
176
-                        class="glyphicon glyphicon-pencil"></span><?php echo " " . $lang['delete'] . " " . $lang['gang']; ?>
176
+                        class="glyphicon glyphicon-pencil"></span><?php echo " ".$lang['delete']." ".$lang['gang']; ?>
177 177
                 </h4>
178 178
             </div>
179
-            <form method="post" action="<?php echo $settings['url'] . 'editGang/' . $gID; ?>" role="form">
179
+            <form method="post" action="<?php echo $settings['url'].'editGang/'.$gID; ?>" role="form">
180 180
                 <?php echo formtoken::getField() ?>
181 181
                 <div class="modal-body">
182 182
                     <div class="form-group">
@@ -202,10 +202,10 @@  discard block
 block discarded – undo
202 202
             <div class="modal-header">
203 203
                 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
204 204
                 <h4 class="modal-title"><span
205
-                        class="glyphicon glyphicon-pencil"></span><?php echo " " . $lang['edit'] . " " . $lang['gang']; ?>
205
+                        class="glyphicon glyphicon-pencil"></span><?php echo " ".$lang['edit']." ".$lang['gang']; ?>
206 206
                 </h4>
207 207
             </div>
208
-            <form method="post" action="<?php echo $settings['url'] . 'editGang/' . $gID; ?>" role="form">
208
+            <form method="post" action="<?php echo $settings['url'].'editGang/'.$gID; ?>" role="form">
209 209
                 <?php echo formtoken::getField() ?>
210 210
                 <div class="modal-body">
211 211
                     <div class="form-group">
@@ -215,14 +215,14 @@  discard block
 block discarded – undo
215 215
                             <center>
216 216
                                 <?php
217 217
                                 echo "<center>";
218
-                                echo "<h3>" . $lang['name'] . ":  <input id='gname' name='gname' type='text' value='" . $gang->name . "'></td><br/>";
219
-                                echo "<h4>" . $lang['owner'] . ":   <input id='gowner' name='gowner' type='number' value='" . $gang->owner . "'></td><br/>";
220
-                                echo "<h4>" . $lang['maxMembers'] . ":   <input id='gMM' name='gMM' type='number' value='" . $gang->maxmembers . "'></td><br/>";
221
-                                echo "<h4>" . $lang['bank'] . ":    <input id='gbank' name='gbank' type='number' value='" . $gang->bank . "'></td><br/>";
222
-                                echo "<h4>" . $lang['active'] . ":   ";
218
+                                echo "<h3>".$lang['name'].":  <input id='gname' name='gname' type='text' value='".$gang->name."'></td><br/>";
219
+                                echo "<h4>".$lang['owner'].":   <input id='gowner' name='gowner' type='number' value='".$gang->owner."'></td><br/>";
220
+                                echo "<h4>".$lang['maxMembers'].":   <input id='gMM' name='gMM' type='number' value='".$gang->maxmembers."'></td><br/>";
221
+                                echo "<h4>".$lang['bank'].":    <input id='gbank' name='gbank' type='number' value='".$gang->bank."'></td><br/>";
222
+                                echo "<h4>".$lang['active'].":   ";
223 223
                                 echo "<select id='gAct' name='gAct'>";
224
-                                    echo '<option value="0"' . select('0', $gang->active) . '>' . $lang['no'] . '</option>';
225
-                                    echo '<option value="1"' . select('1', $gang->active) . '>' . $lang['yes'] . '</option>';
224
+                                    echo '<option value="0"'.select('0', $gang->active).'>'.$lang['no'].'</option>';
225
+                                    echo '<option value="1"'.select('1', $gang->active).'>'.$lang['yes'].'</option>';
226 226
                                 echo "</select>";
227 227
                                 echo "</center>";
228 228
                                 ?>
Please login to merge, or discard this patch.