Completed
Push — master ( 634410...90e172 )
by BoGuu
02:25
created
hooks/rcon_players.php 2 patches
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,7 +18,9 @@  discard block
 block discarded – undo
18 18
             $array = preg_split('/$\R?^/m', $out);
19 19
             $playersr = array();
20 20
 
21
-            if ($array[0] == '(0 players in total')  $array = array();
21
+            if ($array[0] == '(0 players in total') {
22
+                $array = array();
23
+            }
22 24
 
23 25
             for ($i = 0; $i < count($array); $i++)
24 26
             {
@@ -27,8 +29,7 @@  discard block
 block discarded – undo
27 29
 
28 30
             echo json_encode($playersr);
29 31
 
30
-        }
31
-        catch (Exception $e)
32
+        } catch (Exception $e)
32 33
         {
33 34
             echo $e->getMessage( );
34 35
             var_dump($e);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 if (isset($_GET['sid'])) {
6 6
     $sid = clean($_GET['sid'], "int");
7 7
     $db_connection = masterConnect();
8
-    $sql = "SELECT `sq_ip`,`sq_port`,`rcon_pass` FROM `servers` WHERE `use_sq` = 1 AND `sid` = " . $sid . ";";
8
+    $sql = "SELECT `sq_ip`,`sq_port`,`rcon_pass` FROM `servers` WHERE `use_sq` = 1 AND `sid` = ".$sid.";";
9 9
     $result_of_query = $db_connection->query($sql);
10 10
     if ($result_of_query->num_rows == 1) {
11 11
         $server = $result_of_query->fetch_object();
Please login to merge, or discard this patch.
hooks/rcon_command.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,7 @@
 block discarded – undo
20 20
             try
21 21
             {
22 22
                 $answer = rcon(decrypt($server->sq_ip), decrypt($server->sq_port), decrypt($server->rcon_pass), $cmd);
23
-            }
24
-            catch (Exception $e)
23
+            } catch (Exception $e)
25 24
             {
26 25
                 echo $e->getMessage( );
27 26
             }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
         $rid = clean($_POST['id'], "int");
14 14
         $cmd = clean($_POST['command'], "string");
15 15
 
16
-        $sql = "SELECT * FROM `servers` WHERE `use_sq` = 1 AND `sid` = " . $sid . ";";
16
+        $sql = "SELECT * FROM `servers` WHERE `use_sq` = 1 AND `sid` = ".$sid.";";
17 17
         $result_of_query = $db_connection->query($sql);
18 18
         if ($result_of_query->num_rows == 1) {
19 19
             $server = $result_of_query->fetch_object();
Please login to merge, or discard this patch.
validators/pid.php 2 patches
Braces   +11 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,18 +11,25 @@
 block discarded – undo
11 11
         $api = "http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=" . $settings['steamAPI'] . "&steamids=" . $_POST['player_id'];
12 12
         $player = json_decode(file_get_contents($api), true);
13 13
         $player = $player['response'];
14
-        if (empty($player['players'])) $isAvailable = false; else {
14
+        if (empty($player['players'])) {
15
+            $isAvailable = false;
16
+        } else {
15 17
             $isAvailable = true;
16 18
             $player = $player['players']['0'];
17 19
         }
18 20
     
19
-        if (isset($isAvailable) && isset($player['personaname'])) echo json_encode(array(
21
+        if (isset($isAvailable) && isset($player['personaname'])) {
22
+            echo json_encode(array(
20 23
             'valid' => $isAvailable,
21 24
             'name' => $player['personaname'],
22 25
             'url' => $player['profileurl']
23 26
         ));
24
-        elseif (isset($isAvailable)) echo json_encode(array(
27
+        } elseif (isset($isAvailable)) {
28
+            echo json_encode(array(
25 29
             'valid' => $isAvailable
26 30
         ));
31
+        }
27 32
     }
28
-} else echo json_encode(array('valid' => false));
29 33
\ No newline at end of file
34
+} else {
35
+    echo json_encode(array('valid' => false));
36
+}
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 
9 9
 if (isset($_POST['player_id']) && isset($_SESSION['user_level'])) {
10 10
     if ($settings['steamAPI'] && $_SESSION['permissions']['view']['steam'] && !$settings['performance']) {
11
-        $api = "http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=" . $settings['steamAPI'] . "&steamids=" . $_POST['player_id'];
11
+        $api = "http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=".$settings['steamAPI']."&steamids=".$_POST['player_id'];
12 12
         $player = json_decode(file_get_contents($api), true);
13 13
         $player = $player['response'];
14 14
         if (empty($player['players'])) $isAvailable = false; else {
Please login to merge, or discard this patch.
classes/registration.php 2 patches
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 registration
5
-     * handles the user registration
6
-     */
4
+ * Class registration
5
+ * handles the user registration
6
+ */
7 7
 class Registration
8 8
 {
9 9
     /**
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
                 // escaping, additionally removing everything that could be (html/javascript-) code
87 87
                 $user_name = $this->db_connection->real_escape_string(strip_tags($_POST['user_name'], ENT_QUOTES));
88 88
                 $user_email = $this->db_connection->real_escape_string(strip_tags($_POST['user_email'], ENT_QUOTES));
89
-                if(isset($_POST['player_id'])) {
89
+                if (isset($_POST['player_id'])) {
90 90
                     $playerid = $this->db_connection->real_escape_string(strip_tags($_POST['player_id'], ENT_QUOTES));
91 91
                 }
92 92
                 $user_password = $_POST['user_password_new'];
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
                 $user_password_hash = password_hash($user_password, PASSWORD_DEFAULT);
100 100
 
101 101
                 // check if user or email address already exists
102
-                $sql = "SELECT * FROM `users` WHERE `user_name` = '" . $user_name . "' OR `user_email = '" . $user_email . "';";
102
+                $sql = "SELECT * FROM `users` WHERE `user_name` = '".$user_name."' OR `user_email = '".$user_email."';";
103 103
                 $query_check_user_name = $this->db_connection->query($sql);
104 104
 
105 105
                 if ($query_check_user_name->num_rows == 1) {
@@ -113,10 +113,10 @@  discard block
 block discarded – undo
113 113
                     if (!empty($playerid)) {
114 114
 
115 115
                         $sql = "INSERT INTO `users` (`user_name`, `user_password_hash`, `user_email`, `playerid`, `user_level`, `permissions`, `user_profile`) VALUES
116
-                    ('" . $user_name . "', '" . $user_password_hash . "', '" . $user_email . "', '" . $playerid . "', '" . $user_lvl . "', '" . $userPerms . "', '" . $user_pic . "');";
116
+                    ('" . $user_name."', '".$user_password_hash."', '".$user_email."', '".$playerid."', '".$user_lvl."', '".$userPerms."', '".$user_pic."');";
117 117
                     } else {
118 118
                         $sql = "INSERT INTO `users` (`user_name`, `user_password_hash`, `user_email`, `user_level`, `permissions`, `user_profile`) VALUES
119
-                    ('" . $user_name . "', '" . $user_password_hash . "', '" . $user_email . "', '" . $user_lvl . "', '" . $userPerms . "', '" . $user_pic . "');";
119
+                    ('" . $user_name."', '".$user_password_hash."', '".$user_email."', '".$user_lvl."', '".$userPerms."', '".$user_pic."');";
120 120
                     }
121 121
                     $query_new_user_insert = $this->db_connection->query($sql);
122 122
 
Please login to merge, or discard this patch.
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.