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