Completed
Push — master ( 306300...8aacdd )
by mains
02:51
created
vote-ajax.php 3 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@  discard block
 block discarded – undo
3 3
 $config = parse_ini_file('config/config.ini.php');
4 4
 if(!isset($_GET['pw']) || $config['pw'] != $_GET['pw'])
5 5
 {
6
-	error_log($_SERVER['REMOTE_ADDR']  . ' used a wrong password on vote-ajax.php');
7
-	$respone = array("message" => $_SERVER['REMOTE_ADDR']  . ' used a wrong password on vote-ajax.php',"success" => false);
6
+	error_log($_SERVER['REMOTE_ADDR'] . ' used a wrong password on vote-ajax.php');
7
+	$respone = array("message" => $_SERVER['REMOTE_ADDR'] . ' used a wrong password on vote-ajax.php', "success" => false);
8 8
 	echo json_encode($response);
9 9
 	
10 10
 	die();
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 		}
56 56
 	}
57 57
 
58
-if (isset($captcha))
58
+if(isset($captcha))
59 59
 {
60 60
 	$response = array("success" => $success, "message" => $message, "captcha" => $captcha, "deviceUid" => $deviceUid);
61 61
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
 {
60 60
 	$response = array("success" => $success, "message" => $message, "captcha" => $captcha, "deviceUid" => $deviceUid);
61 61
 }
62
-else 
62
+else
63 63
 {
64 64
 	$response = array("success" => $success, "message" => $message);
65 65
 }
Please login to merge, or discard this patch.
Upper-Lower-Casing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 if(!isset($_GET['pw']) || $config['pw'] != $_GET['pw'])
5 5
 {
6 6
 	error_log($_SERVER['REMOTE_ADDR']  . ' used a wrong password on vote-ajax.php');
7
-	$respone = array("message" => $_SERVER['REMOTE_ADDR']  . ' used a wrong password on vote-ajax.php',"success" => false);
7
+	$respone = array("message" => $_SERVER['REMOTE_ADDR']  . ' used a wrong password on vote-ajax.php',"success" => FALSE);
8 8
 	echo json_encode($response);
9 9
 	
10 10
 	die();
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 }
22 22
 
23 23
 $message = "";
24
-$success = true;
24
+$success = TRUE;
25 25
 $token = "";
26 26
 	if(isset($_POST['vote']) && isset($_POST['postId']))
27 27
 	{
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 				$view = new View();
42 42
 				$message = "This account is not verified. Please verify this account first.";
43 43
 				$captcha = $view->getCaptcha($accessToken);
44
-				$success = false;
44
+				$success = FALSE;
45 45
 			}
46 46
 			else
47 47
 			{
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 		else
52 52
 		{
53 53
 			$message = 'There is no account available for this jodel. Please create at least one new account to vote this jodel.';
54
-			$success = false;
54
+			$success = FALSE;
55 55
 		}
56 56
 	}
57 57
 
Please login to merge, or discard this patch.
admin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 
5 5
 if(!isset($_GET['pw']) || $config['pw'] != $_GET['pw'])
6 6
 {
7
-	error_log($_SERVER['REMOTE_ADDR']  . ' used a wrong password on admin.php');
7
+	error_log($_SERVER['REMOTE_ADDR'] . ' used a wrong password on admin.php');
8 8
 	die();
9 9
 }
10 10
 
Please login to merge, or discard this patch.