Admin Blacklist remove site downs or not
Author Message
c0rrupt
Administrator


Posts: 261
Joined: Mar 2010
Post: #1
Admin Blacklist remove site downs or not
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
$remove = $_POST['remove'];


After add

if(isset($_POST['remove_downs']))
                    $remove_downs = $_POST['remove_downs'];

Find

$sid = @mysql_result($sid,0);


after add

if($remove_downs) {

find
@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
@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

<tr><td align="center">'.ucfirst($this->blackorwhite).'list an URL</td></tr>


after add

if($this->blackorwhite == "black"){ $bwform.=' Remove site Downloads <input type="checkbox" name="remove_downs"></td></tr>';}
11-07-2010 02:17 PM
 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Show the downloads for a specific site (WCDDL v2) c0rrupt 0 59 07-26-2012 04:35 PM
Last Post: c0rrupt
  White/Blacklist Search with Date/Reason c0rrupt 15 521 07-08-2012 01:49 PM
Last Post: c0rrupt
  Site Rating MOD c0rrupt 7 425 12-27-2011 07:06 PM
Last Post: WJManiaC
  Show site Downloads/Rank [module] c0rrupt 9 554 12-25-2011 01:41 AM
Last Post: WJManiaC
  Accept All Downloads By Site c0rrupt 1 243 05-28-2010 07:41 AM
Last Post: nirav5300
  Site Provider with up ^ arrow ^ c0rrupt 2 245 04-27-2010 07:46 AM
Last Post: nirav5300
  Site Provider (index page) c0rrupt 0 211 04-16-2010 01:02 PM
Last Post: c0rrupt



User(s) browsing this thread: 1 Guest(s)