Prev   Next
(#1)
c0rrupt Offline
Administrator
 
Posts: 193
Join Date: Mar 2010
Location: Canada
Auto Accept - 12-30-2011, 08:55 PM

Auto Accept downloads.
Credit to jomasco

Open your wcfg.php file search for:
PHP Code:
$this->allow_dupes true// Allow duplicate download entries? If no, duplicates will be removed at the submission stage. 
Below add:
PHP Code:
$this->vip true//auto accept downloads to whitelisted sites 
Save it.

Open your funcs.php file and find:
PHP Code:
if(!empty($titles[$i]) && !empty($urls[$i]) && !empty($types[$i]) && (in_array(strtolower($types[$i]),$this->allowed_types) || in_array($types[$i],$this->allowed_types)) && !isset($downDupe)) {
                            
mysql_query("INSERT INTO wcddl_queue (sid,title,type,url) VALUES ('".mysql_real_escape_string($sid)."','".mysql_real_escape_string($titles[$i])."','".mysql_real_escape_string($types[$i])."','".mysql_real_escape_string($urls[$i])."')");
                        } 
Replace with:
PHP Code:
if(!empty($titles[$i]) && !empty($urls[$i]) && !empty($types[$i]) && (in_array(strtolower($types[$i]),$this->allowed_types) || in_array($types[$i],$this->allowed_types)) && !isset($downDupe)) {
                            if(
$this->vip && @mysql_num_rows(mysql_query("SELECT url FROM wcddl_whitelist WHERE url = '".mysql_real_escape_string($surl)."'"))) {
                      
mysql_query("INSERT INTO wcddl_downloads (sid,title,type,url,dat) VALUES ('".$sid."','".mysql_real_escape_string($titles[$i])."','".mysql_real_escape_string($types[$i])."','".mysql_real_escape_string($urls[$i])."','".time()."')");
                            } else {
                            
mysql_query("INSERT INTO wcddl_queue (sid,title,type,url) VALUES ('".mysql_real_escape_string($sid)."','".mysql_real_escape_string($titles[$i])."','".mysql_real_escape_string($types[$i])."','".mysql_real_escape_string($urls[$i])."')");
                        } 
From here you can change to work by site rank... downloads number... sites table vip row....
 

Bookmarks

Tags
accept, auto, wcddl, wcddlv2

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