How To Remove Linking To Me First
Posted: Mon Mar 06, 2006 2:08 am
How do I disable requiring them linking to me before they can add a link?
Thank you
Thank you
Code: Select all
$recurl=pj_input($_POST['recurl'],'Please enter the url where a reciprocal link to our site is placed!');
if (!(preg_match("/(http:\/\/+[\w\-]+\.[\w\-]+)/i",$recurl))) {
problem('Please enter valid URL of the page where the reciprocal link to our site is placed!');
}
Code: Select all
$parsed_rec=parse_url($recurl);
if ($parsed_url['host'] != $parsed_rec['host']) {
problem('The reciprocal link must be placed under the same (sub)domain as your link is!');
}
Code: Select all
$html = @file_get_contents($recurl) or problem('Can\'t open remote URL!');
$html = strtolower($html);
$site_url =strtolower($settings['site_url']);
if (!strstr($html,$site_url)) {
problem('Our URL (<a href="'.$settings['site_url'].'">'.$settings['site_url'].
'</a>) wasn\'t found on your reciprocal links page (<a href="'.$recurl.
'">'.$recurl.'</a>)!<br><br>Please make sure you place this exact URL
on your page before adding your link!'
);
}