by jomasaco on Sun Jun 06, 2010
What it does?
When blacklist an site you have the option to remove the related downloads too or not.
Open funcs.php, function admin_blacklist()
Find
Code:
$remove = $_POST['remove'];
After add
Code:
if(isset($_POST['remove_downs']))
$remove_downs = $_POST['remove_downs'];
Find
Code:
$sid = @mysql_result($sid,0);
after add
Code:
if($remove_downs) {
find
Code:
@mysql_query("DELETE FROM wcddl_downloads WHERE sid = '".mysql_real_escape_string($sid)."'");
}
echo 'URL has been blacklisted and all related downloads deleted.';
replace by
Code:
@mysql_query("DELETE FROM wcddl_downloads WHERE sid = '".mysql_real_escape_string($sid)."'");
}
}
echo $bwurl.' has been blacklisted'; if($remove_downs) echo ' and all related downloads Removed.';
Find
Code:
<tr><td align="center">'.ucfirst($this->blackorwhite).'list an URL</td></tr>
after add
Code:
if($this->blackorwhite == "black"){ $bwform.=' Remove site Downloads <input type="checkbox" name="remove_downs"></td></tr>';}