Results 1 to 10 of 20
Threaded View
-
21st Jun 2011, 07:48 PM #13Member
Let see if i understand whow this works
PHP Code:<?php
// Backlink check
// Coded by JmZ
// LOLLERSKATES
//added looking in download page by moi
if(!defined("WCDDL_GUTS"))
exit;
// Set the following to true to enable this mod
// Be sure to change yoursite.com below
$modEnabled = false;
function backlinkCheck($submit) {
// Change the domain below to yours
$myURL = 'yoursite.com';
// FGC can be slow, replace with curl if you want
// Also, this is only a simple check so not always reliable
$get = file_get_contents($submit->surl);
if(!preg_match('#href="http://(www\.)?' . $myURL . '/?"#i', $get))
$get = file_get_contents($submit->url[0]);
if(!preg_match('#href="http://(www\.)?' . $myURL . '/?"#i', $get))
$submit->error = 'No backlink detected.';
}
if($modEnabled)
Core::load()->hook('SubmitValidation', 'backlinkCheck');
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
WCDDL Modules, Plugins and Extensions
By Mr Happy in forum Webmaster ResourcesReplies: 151Last Post: 15th Nov 2012, 04:54 PM -
[For Hire] Python Development | xChat Plugin Development
By Gaurav in forum Completed TransactionsReplies: 5Last Post: 5th Oct 2011, 08:12 AM -
WCDDL Modules
By Peach in forum Forum and DDL DiscussionReplies: 3Last Post: 21st Jun 2011, 01:19 PM -
2x Custom modules, black/whitelist WcDDL
By Chris2k in forum Webmaster ResourcesReplies: 0Last Post: 21st May 2011, 01:01 AM -
IPB 3.x - Moving hooks
By Golden Falcon in forum IP.BoardReplies: 1Last Post: 20th Mar 2010, 04:24 PM
themaCreator - create posts from...
Version 3.47 released. Open older version (or...