php/JodelAccount.php 1 location
|
@@ 439-441 (lines=3) @@
|
| 436 |
|
expiration_date='" . $expiration_date . "' |
| 437 |
|
WHERE device_uid='" . $device_uid . "'"); |
| 438 |
|
|
| 439 |
|
if($result === false){ |
| 440 |
|
error_log("Adding account failed: (" . $db->errno . ") " . $db->error); |
| 441 |
|
} |
| 442 |
|
} |
| 443 |
|
|
| 444 |
|
|
vote-ajax.php 1 location
|
@@ 129-132 (lines=4) @@
|
| 126 |
|
$result = $db->query("UPDATE users |
| 127 |
|
SET remaining_votes='" . $remaining_votes . "' |
| 128 |
|
WHERE user_token='" . $_COOKIE['JodelVoterPassword'] . "'"); |
| 129 |
|
if($result === false) |
| 130 |
|
{ |
| 131 |
|
error_log("Update remaining votes failed: (" . $db->errno . ") " . $db->error); |
| 132 |
|
} |
| 133 |
|
|
| 134 |
|
$jodelAccount->votePostId($_POST['postId'], $_POST['vote']); |
| 135 |
|
} |