Completed
Push — master ( 6b6736...a670dc )
by
unknown
03:02
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.
classes/openid.php 1 patch
Indentation   +47 added lines, -47 removed lines patch added patch discarded remove patch
@@ -1,52 +1,52 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
-     * This class provides a simple interface for OpenID (1.1 and 2.0) authentication.
4
-     * Supports Yadis discovery.
5
-     * The authentication process is stateless/dumb.
6
-     *
7
-     * Usage:
8
-     * Sign-on with OpenID is a two step process:
9
-     * Step one is authentication with the provider:
10
-     * <code>
11
-     * $openid = new LightOpenID('my-host.example.org');
12
-     * $openid->identity = 'ID supplied by user';
13
-     * header('Location: ' . $openid->authUrl());
14
-     * </code>
15
-     * The provider then sends various parameters via GET, one of them is openid_mode.
16
-     * Step two is verification:
17
-     * <code>
18
-     * $openid = new LightOpenID('my-host.example.org');
19
-     * if ($openid->mode) {
20
-     *     echo $openid->validate() ? 'Logged in.' : 'Failed';
21
-     * }
22
-     * </code>
23
-     *
24
-     * Change the 'my-host.example.org' to your domain name. Do NOT use $_SERVER['HTTP_HOST']
25
-     * for that, unless you know what you are doing.
26
-     *
27
-     * Optionally, you can set $returnUrl and $realm (or $trustRoot, which is an alias).
28
-     * The default values for those are:
29
-     * $openid->realm     = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'];
30
-     * $openid->returnUrl = $openid->realm . $_SERVER['REQUEST_URI'];
31
-     * If you don't know their meaning, refer to any openid tutorial, or specification. Or just guess.
32
-     *
33
-     * AX and SREG extensions are supported.
34
-     * To use them, specify $openid->required and/or $openid->optional before calling $openid->authUrl().
35
-     * These are arrays, with values being AX schema paths (the 'path' part of the URL).
36
-     * For example:
37
-     *   $openid->required = array('namePerson/friendly', 'contact/email');
38
-     *   $openid->optional = array('namePerson/first');
39
-     * If the server supports only SREG or OpenID 1.1, these are automaticaly
40
-     * mapped to SREG names, so that user doesn't have to know anything about the server.
41
-     *
42
-     * To get the values, use $openid->getAttributes().
43
-     *
44
-     *
45
-     * The library requires PHP >= 5.1.2 with curl or http/https stream wrappers enabled.
46
-     * @author Mewp
47
-     * @copyright Copyright (c) 2010, Mewp
48
-     * @license http://www.opensource.org/licenses/mit-license.php MIT
49
-     */
3
+ * This class provides a simple interface for OpenID (1.1 and 2.0) authentication.
4
+ * Supports Yadis discovery.
5
+ * The authentication process is stateless/dumb.
6
+ *
7
+ * Usage:
8
+ * Sign-on with OpenID is a two step process:
9
+ * Step one is authentication with the provider:
10
+ * <code>
11
+ * $openid = new LightOpenID('my-host.example.org');
12
+ * $openid->identity = 'ID supplied by user';
13
+ * header('Location: ' . $openid->authUrl());
14
+ * </code>
15
+ * The provider then sends various parameters via GET, one of them is openid_mode.
16
+ * Step two is verification:
17
+ * <code>
18
+ * $openid = new LightOpenID('my-host.example.org');
19
+ * if ($openid->mode) {
20
+ *     echo $openid->validate() ? 'Logged in.' : 'Failed';
21
+ * }
22
+ * </code>
23
+ *
24
+ * Change the 'my-host.example.org' to your domain name. Do NOT use $_SERVER['HTTP_HOST']
25
+ * for that, unless you know what you are doing.
26
+ *
27
+ * Optionally, you can set $returnUrl and $realm (or $trustRoot, which is an alias).
28
+ * The default values for those are:
29
+ * $openid->realm     = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'];
30
+ * $openid->returnUrl = $openid->realm . $_SERVER['REQUEST_URI'];
31
+ * If you don't know their meaning, refer to any openid tutorial, or specification. Or just guess.
32
+ *
33
+ * AX and SREG extensions are supported.
34
+ * To use them, specify $openid->required and/or $openid->optional before calling $openid->authUrl().
35
+ * These are arrays, with values being AX schema paths (the 'path' part of the URL).
36
+ * For example:
37
+ *   $openid->required = array('namePerson/friendly', 'contact/email');
38
+ *   $openid->optional = array('namePerson/first');
39
+ * If the server supports only SREG or OpenID 1.1, these are automaticaly
40
+ * mapped to SREG names, so that user doesn't have to know anything about the server.
41
+ *
42
+ * To get the values, use $openid->getAttributes().
43
+ *
44
+ *
45
+ * The library requires PHP >= 5.1.2 with curl or http/https stream wrappers enabled.
46
+ * @author Mewp
47
+ * @copyright Copyright (c) 2010, Mewp
48
+ * @license http://www.opensource.org/licenses/mit-license.php MIT
49
+ */
50 50
 class LightOpenID
51 51
 {
52 52
     public $returnUrl
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.