Completed
Push — master ( 120ece...98d497 )
by Cammy
02:50
created
views/core/dashboard.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -18,23 +18,23 @@  discard block
 block discarded – undo
18 18
 			  <div class="task-content">
19 19
 				  <ul id="sortable" class="task-list ui-sortable">
20 20
 			<?php
21
-			    $sql = "SELECT `sid`,`dbid`,`type`,`name` FROM `servers`;";
22
-			    $result_of_query = $db_connection->query($sql);
21
+                $sql = "SELECT `sid`,`dbid`,`type`,`name` FROM `servers`;";
22
+                $result_of_query = $db_connection->query($sql);
23 23
 			
24
-			    if ($result_of_query->num_rows >= 1) {
25
-			        while ($row = mysqli_fetch_assoc($result_of_query)) {
26
-			?>
24
+                if ($result_of_query->num_rows >= 1) {
25
+                    while ($row = mysqli_fetch_assoc($result_of_query)) {
26
+            ?>
27 27
 					<li class="list-primary">
28 28
 						<i class=" fa fa-ellipsis-v"></i>
29 29
 						<div class="task-title">
30 30
 							<span class="task-title-sp"><?php echo $row['name']; ?></span>
31 31
 							<?php
32
-							if ($row['type'] == 'life'){
33
-								echo '<span class="badge bg-theme">Life</span>';
34
-							} elseif ($row['type'] == 'waste') {
35
-								echo '<span class="badge bg-important">Wasteland</span>';
36
-							}
37
-							?>
32
+                            if ($row['type'] == 'life'){
33
+                                echo '<span class="badge bg-theme">Life</span>';
34
+                            } elseif ($row['type'] == 'waste') {
35
+                                echo '<span class="badge bg-important">Wasteland</span>';
36
+                            }
37
+                            ?>
38 38
 							<div style="float:right; padding-right: 15px;">
39 39
 								<form method="post" action="<?php echo $settings['url'] ?>dashboard">
40 40
 									<input type="hidden" name="type" value="<?php echo $row['type']; ?>">
@@ -45,10 +45,10 @@  discard block
 block discarded – undo
45 45
 						</div>
46 46
 					</li>
47 47
 					<?php
48
-			        }
49
-			        echo '</select>';
50
-			    }
51
-			?>
48
+                    }
49
+                    echo '</select>';
50
+                }
51
+            ?>
52 52
 				  </ul>
53 53
 			  </div>
54 54
 		  </div>
Please login to merge, or discard this patch.
index.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
     if (!$db_connection->connect_errno) {
88 88
         if ($login->isUserLoggedIn() == true) {
89 89
 
90
-           if ($_SESSION['multiDB'] && isset($_POST['dbid']) && isset($_POST['type'])) {
90
+            if ($_SESSION['multiDB'] && isset($_POST['dbid']) && isset($_POST['type'])) {
91 91
                 $_SESSION['server_type'] = $_POST['type'];
92 92
                 $_SESSION['dbid'] = $_POST['dbid'];
93 93
             }
Please login to merge, or discard this patch.
classes/csrf.php 1 patch
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
- * PHP Class for quickly securing forms against CSRF attacks
4
- *
5
- * @author Sam Collins
6
- * @copyright 2015 Sam Collins
7
- * @link https://gist.github.com/MightySCollins/0096d193fdc4160565b3
8
- */
3
+     * PHP Class for quickly securing forms against CSRF attacks
4
+     *
5
+     * @author Sam Collins
6
+     * @copyright 2015 Sam Collins
7
+     * @link https://gist.github.com/MightySCollins/0096d193fdc4160565b3
8
+     */
9 9
 
10 10
 class formToken
11 11
 {
Please login to merge, or discard this patch.
classes/GuestReg.php 1 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 registration
5
- * handles the user registration
6
- */
4
+     * Class registration
5
+     * handles the user registration
6
+     */
7 7
 class GuestReg
8 8
 {
9 9
     /**
Please login to merge, or discard this patch.
views/core/editStaff.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
             $staffPID = $_POST['staffPID'];
13 13
             $permissions = include 'config/permissions.php';
14 14
             if (isset($_POST['ban'])) $staffRank = 0; else $staffRank = $_POST['staffRank'];
15
-	    $userPerms = json_encode($permissions[$staffRank]);
15
+        $userPerms = json_encode($permissions[$staffRank]);
16 16
 	
17 17
             $sql = "UPDATE `users` SET `user_name`='" . $staffName . "',`user_email`='" . $staffEmail . "',`playerid`='" . $staffPID . "',`user_level`='" . $staffRank . "', `permissions`='" . $userPerms . "' WHERE `user_id` ='" . $uId . "';";
18 18
             $result_of_query = $db_connection->query($sql);
Please login to merge, or discard this patch.
views/life/editPlayer.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
                 $alias = str_replace('`]"', "", $alias);
152 152
 
153 153
                 echo '<center><img alt="' . $alias . '" src="' . $settings['url'] . 'assets/img/uniform/' . getPlayerSkin($player->civ_gear, $playerSkins) . '.jpg">';
154
-                 echo "<h5 style='word-wrap: break-word; '> <a href='http://playerindex.de/check.aspx?id=" . $pGID . "' class='btn btn-xs btn-warning' target='_blank' role='button'>Check Playerindex Ban </a></h5>";
154
+                    echo "<h5 style='word-wrap: break-word; '> <a href='http://playerindex.de/check.aspx?id=" . $pGID . "' class='btn btn-xs btn-warning' target='_blank' role='button'>Check Playerindex Ban </a></h5>";
155 155
                 if ($_SESSION['permissions']['view']['steam'] && $settings['vacTest']) {
156 156
                     echo '<div id="vacBan"></div>';
157 157
                 }
@@ -442,16 +442,16 @@  discard block
 block discarded – undo
442 442
                                 }
443 443
                                 
444 444
                                 while ($row = mysqli_fetch_assoc($result_of_query)) {
445
-					echo "<tr>";
446
-					echo "<td>" . carName($row["classname"]) . "</td>";
447
-					echo "<td class='hidden-xs'> " . carType($row["type"], $lang) . "</td>";
448
-					echo "<td class='hidden-xs'> " . $row["plate"] . "</td>";
449
-					if ($_SESSION['permissions']['edit']['vehicles']) {
450
-						echo "<td><a class='btn btn-primary btn-xs' href='" . $settings['url'] . "editVeh/" . $row["id"] . "'>";
451
-						echo "<i class='fa fa-pencil'></i></a></td>";
452
-					}
453
-					echo "</tr>";
454
-				}
445
+                    echo "<tr>";
446
+                    echo "<td>" . carName($row["classname"]) . "</td>";
447
+                    echo "<td class='hidden-xs'> " . carType($row["type"], $lang) . "</td>";
448
+                    echo "<td class='hidden-xs'> " . $row["plate"] . "</td>";
449
+                    if ($_SESSION['permissions']['edit']['vehicles']) {
450
+                        echo "<td><a class='btn btn-primary btn-xs' href='" . $settings['url'] . "editVeh/" . $row["id"] . "'>";
451
+                        echo "<i class='fa fa-pencil'></i></a></td>";
452
+                    }
453
+                    echo "</tr>";
454
+                }
455 455
 								
456 456
                                 echo '</tr></tbody></table>';
457 457
                                 echo '<a style="float: right; padding-right:15px;" href="' . $settings['url'] . 'vehicles/' . $player->playerid . '"><h4>' . $lang['more'] . ' <i class="fa fa-arrow-circle-right"></i></h4></a>';
Please login to merge, or discard this patch.
views/core/profile.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -113,13 +113,13 @@
 block discarded – undo
113 113
                 </table>
114 114
                 <span class="pull-right">
115 115
                      <?php
116
-                     $sql = "SELECT `uid`,`playerid` FROM `players` WHERE `playerid` = '" . $profile->playerid . "' ";
117
-                     $result = $db_connection->query($sql);
116
+                        $sql = "SELECT `uid`,`playerid` FROM `players` WHERE `playerid` = '" . $profile->playerid . "' ";
117
+                        $result = $db_connection->query($sql);
118 118
 
119
-                     if ($result->num_rows > 0) {
120
-                         ?> <a class="btn btn-sm btn-primary" href="<?php echo $settings['url'] . 'editPlayer/' . $result->fetch_object()->uid ?> ">  My Player</a> <?php
121
-                     }
122
-                     ?>
119
+                        if ($result->num_rows > 0) {
120
+                            ?> <a class="btn btn-sm btn-primary" href="<?php echo $settings['url'] . 'editPlayer/' . $result->fetch_object()->uid ?> ">  My Player</a> <?php
121
+                        }
122
+                        ?>
123 123
                 </span>
124 124
             </div>
125 125
         </div>
Please login to merge, or discard this patch.