Prev   Next
(#1)
c0rrupt Offline
Administrator
 
Posts: 193
Join Date: Mar 2010
Location: Canada
Admin Blacklist remove site downs or not - 11-07-2010, 06:17 PM

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>';}


Before doing any edits to your DDL Site always make a BACKUP first.
 

Bookmarks

Tags
admin, blacklist, downs, remove, site

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




Powered by vBulletin


Content Relevant URLs by vBSEO