$DB->query("UPDATE users_main SET Downloaded = Downloaded + ".$RequestVotes['TotalBounty']." WHERE ID = ".$FillerID);
}else{
$DB->query("UPDATE users_main SET Uploaded = Uploaded - ".$RequestVotes['TotalBounty']." WHERE ID = ".$FillerID);
}
send_pm($FillerID,0,db_string("A request you filled has been unfilled"),db_string("The request '".$FullName."' was unfilled by [url=http://".NONSSL_SITE_URL."/user.php?id=".$LoggedUser['ID']."]".$LoggedUser['Username']."[/url] for the reason: ".$_POST['reason']));
$Cache->delete_value('user_stats_'.$FillerID);
if($UserID!=$LoggedUser['ID']){
send_pm($UserID,0,db_string("A request you created has been unfilled"),db_string("The request '".$FullName."' was unfilled by [url=http://".NONSSL_SITE_URL."/user.php?id=".$LoggedUser['ID']."]".$LoggedUser['Username']."[/url] for the reason: ".$_POST['reason']));
WHERESubject='The request \"".db_string($FullName)."\" has been filled'");
$ConvIDs=implode(',',$DB->collect('ID'));
$UserIDs=$DB->collect('UserID');
if($ConvIDs){
$DB->query("DELETE FROM pm_conversations WHERE ID IN($ConvIDs)");
$DB->query("DELETE FROM pm_conversations_users WHERE ConvID IN($ConvIDs)");
$DB->query("DELETE FROM pm_messages WHERE ConvID IN($ConvIDs)");
}
foreach($UserIDsas$UserID){
$Cache->delete_value('inbox_new_'.$UserID);
}
write_log("Request $RequestID ($FullName), with a ".get_size($RequestVotes['TotalBounty'])." bounty, was un-filled by user ".$LoggedUser['ID']." (".$LoggedUser['Username'].") for the reason: ".$_POST['reason']);