@@ -3,8 +3,8 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -59,7 +59,7 @@ |
||
| 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 | } |
@@ -4,7 +4,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | |
@@ -4,7 +4,7 @@ |
||
| 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 | |