Results 1 to 10 of 24
Threaded View
-
9th Apr 2011, 03:10 PM #9Member
I guess if the link back are commented will be accepted too
<!--LINK to Site--> //are accepted
Try always validate the users input data, never forget to safe the query's
PHP Code:$siteurl = $_POST['siteurl']; //need be in http
$siteurl = parse_url(trim($siteurl)); //remove spaces split the url
$siteurl = $siteurl['host']; //get host
$siteurl = str_replace("www.","",$siteurl); //remove the www
$ipAddress = gethostbyname($siteurl);
if($ipAddress === $siteurl) //validate if real the site exists
INSERT INTO wcddl_whitelist (`url`) VALUES ('$siteurl')
INSERT INTO wcddl_whitelist (`url`) VALUES ('".mysql_real_escape_string($siteurl)."') //avoiding the sql injections are always an good idea
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
themaCreator - create posts from...
Version 3.55 released. Open older version (or...