Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Branch master (287493)
by Dan
06:08
created
htdocs/resend_password_processing.php 2 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
 	// get this user from db
13 13
 	$account = SmrAccount::getAccountByEmail($_REQUEST['email']);
14
-	if ($account==null) {
14
+	if ($account == null) {
15 15
 		// unknown user
16 16
 		header('Location: /error.php?msg=' . rawurlencode('The specified e-mail address is not registered!'));
17 17
 		exit;
@@ -19,13 +19,13 @@  discard block
 block discarded – undo
19 19
 
20 20
 	$account->generatePasswordReset();
21 21
 
22
-	$resetURL = URL.'/reset_password.php?login='.$account->getLogin().'&resetcode='.$account->getPasswordReset();
22
+	$resetURL = URL . '/reset_password.php?login=' . $account->getLogin() . '&resetcode=' . $account->getPasswordReset();
23 23
 	$emailMessage =
24
-		 'A user from ' . getIpAddress() . ' requested to reset your password!'.EOL.EOL.
25
-		 '   Your game login is: ' . $account->getLogin().EOL.
26
-		 '   Your password reset code is: ' . $account->getPasswordReset().EOL.EOL.
27
-		 '   You can use this url: '.$resetURL .EOL.EOL.
28
-		 'The Space Merchant Realms server is on the web at '.URL.'/';
24
+		 'A user from ' . getIpAddress() . ' requested to reset your password!' . EOL . EOL .
25
+		 '   Your game login is: ' . $account->getLogin() . EOL .
26
+		 '   Your password reset code is: ' . $account->getPasswordReset() . EOL . EOL .
27
+		 '   You can use this url: ' . $resetURL . EOL . EOL .
28
+		 'The Space Merchant Realms server is on the web at ' . URL . '/';
29 29
 
30 30
 	// send email with password to user
31 31
 	$mail = setupMailer();
@@ -39,6 +39,6 @@  discard block
 block discarded – undo
39 39
 	exit;
40 40
 
41 41
 }
42
-catch(Throwable $e) {
42
+catch (Throwable $e) {
43 43
 	handleException($e);
44 44
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,6 @@
 block discarded – undo
38 38
 	header('Location: /reset_password.php');
39 39
 	exit;
40 40
 
41
-}
42
-catch(Throwable $e) {
41
+} catch(Throwable $e) {
43 42
 	handleException($e);
44 43
 }
Please login to merge, or discard this patch.
htdocs/weapon_list.php 2 patches
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 	echo ('<link rel="stylesheet" type="text/css" href="css/Default.css">');
12 12
 	echo ('<link rel="stylesheet" type="text/css" href="css/Default/Default.css">');
13 13
 	echo ('<title>Weapon List</title>');
14
-	echo ('<meta http-equiv="pragma" content="no-cache">');?>
14
+	echo ('<meta http-equiv="pragma" content="no-cache">'); ?>
15 15
 	<style>
16 16
 	#container {
17 17
 		margin: 0;
@@ -122,42 +122,42 @@  discard block
 block discarded – undo
122 122
 	else
123 123
 		$seq = 'ASC';
124 124
 	
125
-	$columnNames = array('weapon_name','race_name','cost','shield_damage','armour_damage','accuracy','power_level','buyer_restriction');
126
-	if (isset($_REQUEST['order'])&&in_array($_REQUEST['order'],$columnNames))
125
+	$columnNames = array('weapon_name', 'race_name', 'cost', 'shield_damage', 'armour_damage', 'accuracy', 'power_level', 'buyer_restriction');
126
+	if (isset($_REQUEST['order']) && in_array($_REQUEST['order'], $columnNames))
127 127
 		$order_by = $_REQUEST['order'];
128 128
 	else
129 129
 		$order_by = 'weapon_type_id';
130 130
 	
131 131
 	//$race 		= buildSelector($db, "racePick", "race_name", "race");
132 132
 	$race = "";
133
-	$power 		= buildSelector($db, "powerPick", "power_level", "weapon_type");
134
-	$restrict 	= buildRestriction();
133
+	$power = buildSelector($db, "powerPick", "power_level", "weapon_type");
134
+	$restrict = buildRestriction();
135 135
 	
136 136
 	echo ('<div id="container" style="padding: 0;">');
137 137
 	echo ('<div id="main" style="width:810px; margin-left:auto; margin-right:auto;">');
138 138
 	echo (buildRaceBox($db));	
139
-	$db->query('SELECT * FROM weapon_type JOIN race USING(race_id) ORDER BY '.$order_by.' '.$seq);
139
+	$db->query('SELECT * FROM weapon_type JOIN race USING(race_id) ORDER BY ' . $order_by . ' ' . $seq);
140 140
 	echo ('<table id="table" class="standard">');
141 141
 	echo ('<tr>');
142
-	echo ('<th align="center" style="width: 240px;"><a href="?order=weapon_name&amp;seq='.$seq.'"><span style=color:#80C870;>Weapon Name</span></a></th>');
143
-	echo ('<th align="center" style="width: 90px;"><a href="?order=race_name&amp;seq='.$seq.'"><span style=color:#80C870;>Race</span></a>'.$race.'</th>');
144
-	echo ('<th align="center" style="width: 64px;"><a href="?order=cost&amp;seq='.$seq.'"><span style=color:#80C870;>Cost</span></a></th>');
145
-	echo ('<th align="center" style="width: 74px;"><a href="?order=shield_damage&amp;seq='.$seq.'"><span style=color:#80C870;>Shield<br>Damage</span></a></th>');
146
-	echo ('<th align="center" style="width: 74px;"><a href="?order=armour_damage&amp;seq='.$seq.'"><span style=color:#80C870;>Armour<br>Damage</span></a></th>');
147
-	echo ('<th align="center" style="width: 85px;"><a href="?order=accuracy&amp;seq='.$seq.'"><span style=color:#80C870;>Accuracy<br>%</span></a></th>');
148
-	echo ('<th align="center" style="width: 51px;"><a href="?order=power_level&amp;seq='.$seq.'"><span style=color:#80C870;>Level</span></a>'.$power.'</th>');
149
-	echo ('<th align="center" style="width: 92px;"><a href="?order=buyer_restriction&amp;seq='.$seq.'"><span style=color:#80C870;>Restriction</span></a>'.$restrict.'</th>');
142
+	echo ('<th align="center" style="width: 240px;"><a href="?order=weapon_name&amp;seq=' . $seq . '"><span style=color:#80C870;>Weapon Name</span></a></th>');
143
+	echo ('<th align="center" style="width: 90px;"><a href="?order=race_name&amp;seq=' . $seq . '"><span style=color:#80C870;>Race</span></a>' . $race . '</th>');
144
+	echo ('<th align="center" style="width: 64px;"><a href="?order=cost&amp;seq=' . $seq . '"><span style=color:#80C870;>Cost</span></a></th>');
145
+	echo ('<th align="center" style="width: 74px;"><a href="?order=shield_damage&amp;seq=' . $seq . '"><span style=color:#80C870;>Shield<br>Damage</span></a></th>');
146
+	echo ('<th align="center" style="width: 74px;"><a href="?order=armour_damage&amp;seq=' . $seq . '"><span style=color:#80C870;>Armour<br>Damage</span></a></th>');
147
+	echo ('<th align="center" style="width: 85px;"><a href="?order=accuracy&amp;seq=' . $seq . '"><span style=color:#80C870;>Accuracy<br>%</span></a></th>');
148
+	echo ('<th align="center" style="width: 51px;"><a href="?order=power_level&amp;seq=' . $seq . '"><span style=color:#80C870;>Level</span></a>' . $power . '</th>');
149
+	echo ('<th align="center" style="width: 92px;"><a href="?order=buyer_restriction&amp;seq=' . $seq . '"><span style=color:#80C870;>Restriction</span></a>' . $restrict . '</th>');
150 150
 	echo ('</tr>');
151 151
 	while ($db->nextRecord()) {
152 152
 		echo ('<tr>');
153
-		echo ('<td align="center">'.$db->getField('weapon_name').'</td>');
154
-		echo ('<td align="center" class="race'.$db->getInt('race_id').'">'.$db->getField('race_name').'</td>');
155
-		echo ('<td align="center">'.number_format($db->getInt('cost')).'</td>');
156
-		echo ('<td align="center">'.$db->getInt('shield_damage').'</td>');
157
-		echo ('<td align="center">'.$db->getInt('armour_damage').'</td>');
158
-		echo ('<td align="center">'.$db->getInt('accuracy').'</td>');
159
-		echo ('<td align="center">'.$db->getInt('power_level').'</td>');
160
-		switch($db->getInt('buyer_restriction')) {
153
+		echo ('<td align="center">' . $db->getField('weapon_name') . '</td>');
154
+		echo ('<td align="center" class="race' . $db->getInt('race_id') . '">' . $db->getField('race_name') . '</td>');
155
+		echo ('<td align="center">' . number_format($db->getInt('cost')) . '</td>');
156
+		echo ('<td align="center">' . $db->getInt('shield_damage') . '</td>');
157
+		echo ('<td align="center">' . $db->getInt('armour_damage') . '</td>');
158
+		echo ('<td align="center">' . $db->getInt('accuracy') . '</td>');
159
+		echo ('<td align="center">' . $db->getInt('power_level') . '</td>');
160
+		switch ($db->getInt('buyer_restriction')) {
161 161
 			case BUYER_RESTRICTION_GOOD:
162 162
 				echo ('<td align="center" style="color: green;">Good</td>');
163 163
 			break;
@@ -183,16 +183,16 @@  discard block
 block discarded – undo
183 183
 
184 184
 
185 185
 }
186
-catch(Throwable $e) {
186
+catch (Throwable $e) {
187 187
 	handleException($e);
188 188
 }
189 189
 
190 190
 function buildSelector($db, $id, $name, $table) {
191
-	$selector = '<br><select id="'.$id.'" name="'.$name.'" onchange="'.$id.'f()"><option value="All">All</option>';
192
-	$db->query("SELECT DISTINCT ".$name." FROM ".$table." ORDER BY ".$name);
191
+	$selector = '<br><select id="' . $id . '" name="' . $name . '" onchange="' . $id . 'f()"><option value="All">All</option>';
192
+	$db->query("SELECT DISTINCT " . $name . " FROM " . $table . " ORDER BY " . $name);
193 193
 	while ($db->nextRecord()) {
194
-		$selector .= '<option value="'.$db->getField($name).'">'
195
-		.$db->getField($name).'</option>';
194
+		$selector .= '<option value="' . $db->getField($name) . '">'
195
+		.$db->getField($name) . '</option>';
196 196
 	}
197 197
 	$selector .= '</select>';
198 198
 	return $selector;
@@ -218,8 +218,8 @@  discard block
 block discarded – undo
218 218
 		$raceID = $db->getInt('race_id');
219 219
 		$raceName = $db->getField('race_name');
220 220
 		$racebox .= '
221
-			<input type="checkbox" id="race'.$raceID.'" name="races" value="'.$raceName.'" onClick="raceToggle()">
222
-			<label for="race'.$raceID.'" class="race'.$raceID.'">'.$raceName.'</label>';
221
+			<input type="checkbox" id="race'.$raceID . '" name="races" value="' . $raceName . '" onClick="raceToggle()">
222
+			<label for="race'.$raceID . '" class="race' . $raceID . '">' . $raceName . '</label>';
223 223
 	}
224 224
 	$racebox .= '</form>';
225 225
 	return $racebox;
Please login to merge, or discard this patch.
Braces   +13 added lines, -12 removed lines patch added patch discarded remove patch
@@ -115,18 +115,20 @@  discard block
 block discarded – undo
115 115
 	
116 116
 	echo ('<body onload="resetBoxes()">');
117 117
 	$seq = isset($_REQUEST['seq']) ? $_REQUEST['seq'] : '';
118
-	if (empty($seq))
119
-		$seq = 'ASC';
120
-	elseif ($seq == 'ASC')
121
-		$seq = 'DESC';
122
-	else
123
-		$seq = 'ASC';
118
+	if (empty($seq)) {
119
+			$seq = 'ASC';
120
+	} elseif ($seq == 'ASC') {
121
+			$seq = 'DESC';
122
+	} else {
123
+			$seq = 'ASC';
124
+	}
124 125
 	
125 126
 	$columnNames = array('weapon_name','race_name','cost','shield_damage','armour_damage','accuracy','power_level','buyer_restriction');
126
-	if (isset($_REQUEST['order'])&&in_array($_REQUEST['order'],$columnNames))
127
-		$order_by = $_REQUEST['order'];
128
-	else
129
-		$order_by = 'weapon_type_id';
127
+	if (isset($_REQUEST['order'])&&in_array($_REQUEST['order'],$columnNames)) {
128
+			$order_by = $_REQUEST['order'];
129
+	} else {
130
+			$order_by = 'weapon_type_id';
131
+	}
130 132
 	
131 133
 	//$race 		= buildSelector($db, "racePick", "race_name", "race");
132 134
 	$race = "";
@@ -182,8 +184,7 @@  discard block
 block discarded – undo
182 184
 	
183 185
 
184 186
 
185
-}
186
-catch(Throwable $e) {
187
+} catch(Throwable $e) {
187 188
 	handleException($e);
188 189
 }
189 190
 
Please login to merge, or discard this patch.
htdocs/vote_link_callback.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
 	// Prevent getting additional turns until a valid free turns link is clicked again
46 46
 	$db->query('REPLACE INTO vote_links (account_id, link_id, timeout, turns_claimed) VALUES(' . $db->escapeNumber($accountId) . ',' . $db->escapeNumber($linkId) . ',' . $db->escapeNumber(TIME) . ',' . $db->escapeBoolean(true) . ')');
47 47
 
48
-	$player->setLastTurnUpdate($player->getLastTurnUpdate()-VOTE_BONUS_TURNS_TIME); //Give turns via added time, no rounding errors.
48
+	$player->setLastTurnUpdate($player->getLastTurnUpdate() - VOTE_BONUS_TURNS_TIME); //Give turns via added time, no rounding errors.
49 49
 	$player->save();
50 50
 	release_lock();
51 51
 }
Please login to merge, or discard this patch.
htdocs/level_requirements.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 	} ?>
31 31
 	</table><?php
32 32
 }
33
-catch(Throwable $e) {
33
+catch (Throwable $e) {
34 34
 	handleException($e);
35 35
 }
36 36
 ?>
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@
 block discarded – undo
29 29
 		</tr><?php
30 30
 	} ?>
31 31
 	</table><?php
32
-}
33
-catch(Throwable $e) {
32
+} catch(Throwable $e) {
34 33
 	handleException($e);
35 34
 }
36 35
 ?>
Please login to merge, or discard this patch.
htdocs/manual.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
 	require_once(ENGINE . 'Default/help.inc');
6 6
 
7 7
 	$topic_id = $_SERVER['QUERY_STRING'];
8
-	if (empty($topic_id)||!is_numeric($topic_id))
8
+	if (empty($topic_id) || !is_numeric($topic_id))
9 9
 		$topic_id = 1;
10 10
 	?>
11 11
 <!DOCTYPE html>
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 	</body>
50 50
 	</html><?php
51 51
 }
52
-catch(Throwable $e) {
52
+catch (Throwable $e) {
53 53
 	handleException($e);
54 54
 }
55 55
 ?>
Please login to merge, or discard this patch.
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -5,8 +5,9 @@  discard block
 block discarded – undo
5 5
 	require_once(ENGINE . 'Default/help.inc');
6 6
 
7 7
 	$topic_id = $_SERVER['QUERY_STRING'];
8
-	if (empty($topic_id)||!is_numeric($topic_id))
9
-		$topic_id = 1;
8
+	if (empty($topic_id)||!is_numeric($topic_id)) {
9
+			$topic_id = 1;
10
+	}
10 11
 	?>
11 12
 <!DOCTYPE html>
12 13
 
@@ -48,8 +49,7 @@  discard block
 block discarded – undo
48 49
 
49 50
 	</body>
50 51
 	</html><?php
51
-}
52
-catch(Throwable $e) {
52
+} catch(Throwable $e) {
53 53
 	handleException($e);
54 54
 }
55 55
 ?>
Please login to merge, or discard this patch.
htdocs/login_create_processing.php 3 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 	$account->increaseSmrRewardCredits(2 * CREDITS_PER_DOLLAR); // Give $2 worth of "reward" credits for joining.
158 158
 	if($socialLogin) {
159 159
 		$account->addAuthMethod($_SESSION['socialLogin']->getLoginType(),
160
-		                        $_SESSION['socialLogin']->getUserID());
160
+								$_SESSION['socialLogin']->getUserID());
161 161
 		if ($validatedBySocial) {
162 162
 			$account->setValidated(true);
163 163
 		}
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 
186 186
 		// remember when we sent validation code
187 187
 		$db->query('INSERT INTO notification (notification_type, account_id, time) ' .
188
-		           'VALUES(\'validation_code\', '.$db->escapeNumber(SmrSession::$account_id).', ' . $db->escapeNumber(TIME) . ')');
188
+				   'VALUES(\'validation_code\', '.$db->escapeNumber(SmrSession::$account_id).', ' . $db->escapeNumber(TIME) . ')');
189 189
 	}
190 190
 
191 191
 	$container = create_container('login_processing.php');
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -10,9 +10,9 @@  discard block
 block discarded – undo
10 10
 		exit;
11 11
 	}
12 12
 	$socialLogin = isset($_REQUEST['socialReg']);
13
-	if($socialLogin) {
13
+	if ($socialLogin) {
14 14
 		session_start();
15
-		if(!$_SESSION['socialLogin']) {
15
+		if (!$_SESSION['socialLogin']) {
16 16
 			$msg = 'Tried a social registration without having a social session.';
17 17
 			header('Location: /error.php?msg=' . rawurlencode(htmlspecialchars($msg, ENT_QUOTES)));
18 18
 			exit;
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 		header('Location: /error.php?msg=' . rawurlencode(htmlspecialchars($msg, ENT_QUOTES)));
51 51
 		exit;
52 52
 	}
53
-	if(strpos($login,'NPC')===0) {
53
+	if (strpos($login, 'NPC') === 0) {
54 54
 		$msg = 'Login names cannot begin with "NPC".';
55 55
 		header('Location: /error.php?msg=' . rawurlencode(htmlspecialchars($msg, ENT_QUOTES)));
56 56
 		exit;
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 
110 110
 	// check if the host got a MX or at least an A entry
111 111
 	if (!checkdnsrr($host, 'MX') && !checkdnsrr($host, 'A')) {
112
-		$msg = 'This is not a valid email address! The domain '.$host.' does not exist.';
112
+		$msg = 'This is not a valid email address! The domain ' . $host . ' does not exist.';
113 113
 		header('Location: /error.php?msg=' . rawurlencode(htmlspecialchars($msg, ENT_QUOTES)));
114 114
 		exit;
115 115
 	}
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 		exit;
121 121
 	}
122 122
 
123
-	$db->query('SELECT * FROM account WHERE login = '.$db->escapeString($login));
123
+	$db->query('SELECT * FROM account WHERE login = ' . $db->escapeString($login));
124 124
 	if ($db->getNumRows() > 0) {
125 125
 		$msg = 'This user name is already registered.';
126 126
 		header('Location: /error.php?msg=' . rawurlencode(htmlspecialchars($msg, ENT_QUOTES)));
@@ -149,13 +149,13 @@  discard block
 block discarded – undo
149 149
 	try {
150 150
 		$account = SmrAccount::createAccount($login, $password, $email, $timez, $referral);
151 151
 	}
152
-	catch(AccountNotFoundException $e) {
152
+	catch (AccountNotFoundException $e) {
153 153
 		$msg = 'Invalid referral account ID!';
154 154
 		header('Location: /error.php?msg=' . rawurlencode(htmlspecialchars($msg, ENT_QUOTES)));
155 155
 		exit;
156 156
 	}
157 157
 	$account->increaseSmrRewardCredits(2 * CREDITS_PER_DOLLAR); // Give $2 worth of "reward" credits for joining.
158
-	if($socialLogin) {
158
+	if ($socialLogin) {
159 159
 		$account->addAuthMethod($_SESSION['socialLogin']->getLoginType(),
160 160
 		                        $_SESSION['socialLogin']->getUserID());
161 161
 		if ($validatedBySocial) {
@@ -173,8 +173,8 @@  discard block
 block discarded – undo
173 173
 	if (!$account->isValidated()) {
174 174
 		// send email with validation code to user
175 175
 		$emailMessage =
176
-			'Your validation code is: '.$account->getValidationCode().EOL.
177
-			'The Space Merchant Realms server is on the web at '.URL;
176
+			'Your validation code is: ' . $account->getValidationCode() . EOL .
177
+			'The Space Merchant Realms server is on the web at ' . URL;
178 178
 
179 179
 		$mail = setupMailer();
180 180
 		$mail->Subject = 'New Space Merchant Realms Account';
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 
186 186
 		// remember when we sent validation code
187 187
 		$db->query('INSERT INTO notification (notification_type, account_id, time) ' .
188
-		           'VALUES(\'validation_code\', '.$db->escapeNumber(SmrSession::$account_id).', ' . $db->escapeNumber(TIME) . ')');
188
+		           'VALUES(\'validation_code\', ' . $db->escapeNumber(SmrSession::$account_id) . ', ' . $db->escapeNumber(TIME) . ')');
189 189
 	}
190 190
 
191 191
 	$container = create_container('login_processing.php');
@@ -193,6 +193,6 @@  discard block
 block discarded – undo
193 193
 	$container['password'] = $password;
194 194
 	forwardURL($container);
195 195
 }
196
-catch(Throwable $e) {
196
+catch (Throwable $e) {
197 197
 	handleException($e);
198 198
 }
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -148,8 +148,7 @@  discard block
 block discarded – undo
148 148
 	// creates a new user account object
149 149
 	try {
150 150
 		$account = SmrAccount::createAccount($login, $password, $email, $timez, $referral);
151
-	}
152
-	catch(AccountNotFoundException $e) {
151
+	} catch(AccountNotFoundException $e) {
153 152
 		$msg = 'Invalid referral account ID!';
154 153
 		header('Location: /error.php?msg=' . rawurlencode(htmlspecialchars($msg, ENT_QUOTES)));
155 154
 		exit;
@@ -192,7 +191,6 @@  discard block
 block discarded – undo
192 191
 	$container['login'] = $login;
193 192
 	$container['password'] = $password;
194 193
 	forwardURL($container);
195
-}
196
-catch(Throwable $e) {
194
+} catch(Throwable $e) {
197 195
 	handleException($e);
198 196
 }
Please login to merge, or discard this patch.
htdocs/login_create.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 						<td width='73%'>
60 60
 							<select name="timez" id="InputFields"><?php
61 61
 								$time = TIME;
62
-								for ($i = -12; $i<= 11; $i++) {
62
+								for ($i = -12; $i <= 11; $i++) {
63 63
 									?><option value="<?php echo $i; ?>"><?php echo date(DEFAULT_DATE_TIME_SHORT, $time + $i * 3600); ?></option><?php
64 64
 								} ?>
65 65
 							</select>
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 					</tr>
68 68
 					<tr>
69 69
 						<td width='27%'>Referral ID (Optional):</td>
70
-						<td width='73%'><input type='text' name='referral_id' size='10' maxlength='20' id='InputFields'<?php if(isset($_REQUEST['ref'])){ echo 'value="'.htmlspecialchars($_REQUEST['ref']).'"'; }?>></td>
70
+						<td width='73%'><input type='text' name='referral_id' size='10' maxlength='20' id='InputFields'<?php if (isset($_REQUEST['ref'])) { echo 'value="' . htmlspecialchars($_REQUEST['ref']) . '"'; }?>></td>
71 71
 					</tr>
72 72
 					<tr>
73 73
 						<td colspan='2'><div class="g-recaptcha" data-sitekey="<?php echo RECAPTCHA_PUBLIC; ?>"></div></td>
Please login to merge, or discard this patch.
htdocs/login.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,16 +22,16 @@
 block discarded – undo
22 22
 		$href = SmrSession::getNewHREF(create_container('login_check_processing.php'), true);
23 23
 		SmrSession::update();
24 24
 	
25
-		header('Location: '.$href);
25
+		header('Location: ' . $href);
26 26
 		exit;
27 27
 	}
28 28
 	
29
-	if(isset($_REQUEST['msg']))
30
-		$template->assign('Message',htmlentities(trim($_REQUEST['msg']),ENT_COMPAT,'utf-8'));
29
+	if (isset($_REQUEST['msg']))
30
+		$template->assign('Message', htmlentities(trim($_REQUEST['msg']), ENT_COMPAT, 'utf-8'));
31 31
 
32 32
 	require_once(ENGINE . 'Default/login.inc');
33 33
 
34 34
 }
35
-catch(Throwable $e) {
35
+catch (Throwable $e) {
36 36
 	handleException($e);
37 37
 }
Please login to merge, or discard this patch.
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,12 +26,12 @@
 block discarded – undo
26 26
 		exit;
27 27
 	}
28 28
 	
29
-	if(isset($_REQUEST['msg']))
30
-		$template->assign('Message',htmlentities(trim($_REQUEST['msg']),ENT_COMPAT,'utf-8'));
29
+	if(isset($_REQUEST['msg'])) {
30
+			$template->assign('Message',htmlentities(trim($_REQUEST['msg']),ENT_COMPAT,'utf-8'));
31
+	}
31 32
 
32 33
 	require_once(ENGINE . 'Default/login.inc');
33 34
 
34
-}
35
-catch(Throwable $e) {
35
+} catch(Throwable $e) {
36 36
 	handleException($e);
37 37
 }
Please login to merge, or discard this patch.
htdocs/manual_toc.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
 	</body>
70 70
 </html><?php
71 71
 }
72
-catch(Throwable $e) {
72
+catch (Throwable $e) {
73 73
 	handleException($e);
74 74
 }
75 75
 ?>
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,8 +68,7 @@
 block discarded – undo
68 68
 
69 69
 	</body>
70 70
 </html><?php
71
-}
72
-catch(Throwable $e) {
71
+} catch(Throwable $e) {
73 72
 	handleException($e);
74 73
 }
75 74
 ?>
Please login to merge, or discard this patch.