Create an new file name "
wcddl_backlink.php"
inside past and upload it to your modules folder
Code:
<?php
if(!defined("WCDDL_GUTS"))
exit;
// Config
$modEnabled = true;
$subBacklink = "yoursite.com";
function subBacklink($arr) {
// Pretty old-style code, too tired to make a more complex piece
// of code today. Maybe someone will modify it.
global $subBacklink;
if(!$arr['status'])
return $arr;
$surl = $arr['site']['surl'];
$get = @file_get_contents('http://'.$surl.'/');
if(preg_match('#href=\"http://(www\.)?'.$subBacklink.'#i',$get))
return $arr;
$arr['status'] = false;
return $arr;
}
if($modEnabled)
$core->attachDataHook("submitChecksPass","subBacklink");
?>