Results 1 to 10 of 24
Threaded View
-
9th Apr 2011, 06:22 PM #16OPBannedWebsite's:
WarezRelease.org ThatHosting.co+1 added rep m8,
Code://jomasaco's code $siteurl = $_POST['siteurl']; //need be in http $siteurl = parse_url(trim($siteurl)); //remove spaces split the url $siteurl= $siteurl['host']; //get host $ururl = xtremeddl.net //jomasaco's code $connect = mysql_connect ("localhost", "", "") or die ('Connection Fail!'); mysql_select_db("xtremedd_wcddl", $connect) or die ('lol'); $x = mysql_query("select count(*) from wcddl_whitelist where url = ".trim($sitename)""); if ($x==1) { die ("Already Whitelisted"); } elseif ($x==0) { //curl_part to retrieve content from the said sitename & chk for link back if(linkback($sitename,$ururl)==true) { $add = mysql_query("INSERT INTO wcddl_whitelist VALUES ('".$sitename."')"); echo "Whitelisted!" } else { die('No Link Back'); } } function linkback($link, $ururl) { $ch = curl_init($link); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_USERAGENT, 'Opera/9.80 (Windows NT 5.1; U; en) Presto/2.7.62 Version/11.01'); $page = curl_exec($ch); curl_close($ch); if (strpos($page,ururl)===false) return false; else return true }
srry ima noob with php.
error:
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Whitelisting with Zunox Help
By blankshare in forum Technical Help Desk SupportReplies: 2Last Post: 13th Dec 2011, 02:01 AM -
Mechoddl whitelisting
By lukip006 in forum Forum and DDL DiscussionReplies: 2Last Post: 3rd Jul 2011, 09:14 AM -
[Buying] Need WCDDL mod (Self Whitelisting)
By mannNmeet in forum Completed TransactionsReplies: 1Last Post: 24th Apr 2011, 09:16 AM -
[Official] DDL0.com Whitelisting & Re-Rating (Apply Here)
By SJshah in forum Forum and DDL DiscussionReplies: 220Last Post: 1st Feb 2011, 12:16 AM -
Whitelisting.
By CyberPirate in forum Forum and DDL DiscussionReplies: 9Last Post: 4th Mar 2010, 11:12 AM
themaManager - edit and manage...
Version 4.19 released. Open older version (or...