@@ -4,7 +4,7 @@ discard block |
||
| 4 | 4 | if((!isset($_GET['pw']) || $config['pw'] != $_GET['pw']) && !isUserAdmin()) |
| 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 | die(); |
| 10 | 10 | } |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | $message = ""; |
| 23 | -$success = true; |
|
| 23 | +$success = TRUE; |
|
| 24 | 24 | $token = ""; |
| 25 | 25 | if(isset($_POST['vote']) && isset($_POST['postId'])) |
| 26 | 26 | { |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | $view = new View(); |
| 41 | 41 | $message = "This account is not verified. Please verify this account first."; |
| 42 | 42 | $captcha = $view->getCaptcha($accessToken); |
| 43 | - $success = false; |
|
| 43 | + $success = FALSE; |
|
| 44 | 44 | } |
| 45 | 45 | else |
| 46 | 46 | { |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | else |
| 51 | 51 | { |
| 52 | 52 | $message = 'There is no account available for this jodel. Please create at least one new account to vote this jodel.'; |
| 53 | - $success = false; |
|
| 53 | + $success = FALSE; |
|
| 54 | 54 | } |
| 55 | 55 | } |
| 56 | 56 | |