vote-ajax.php 1 location
|
@@ 90-93 (lines=4) @@
|
87 |
|
$result = $db->query("UPDATE users |
88 |
|
SET remaining_votes='" . $remaining_votes . "' |
89 |
|
WHERE user_token='" . $_COOKIE['JodelVoterPassword'] . "'"); |
90 |
|
if($result === false) |
91 |
|
{ |
92 |
|
error_log("Update remaining votes failed: (" . $db->errno . ") " . $db->error); |
93 |
|
} |
94 |
|
$db->close(); |
95 |
|
$jodelAccount->votePostId($_POST['postId'], $_POST['vote']); |
96 |
|
} |
php/JodelAccount.php 1 location
|
@@ 454-456 (lines=3) @@
|
451 |
|
expiration_date='" . $expiration_date . "' |
452 |
|
WHERE device_uid='" . $device_uid . "'"); |
453 |
|
|
454 |
|
if($result === false){ |
455 |
|
error_log("Adding account failed: (" . $db->errno . ") " . $db->error); |
456 |
|
} |
457 |
|
} |
458 |
|
|
459 |
|
|