Page 1 of 1

How To Remove Linking To Me First

Posted: Mon Mar 06, 2006 2:08 am
by tcr1016
How do I disable requiring them linking to me before they can add a link?

Thank you

Posted: Tue Mar 07, 2006 11:23 am
by Klemen
In addlink.php delete lines 58-62

58-62?

Posted: Tue Sep 19, 2006 5:04 pm
by Crime
I saw this is an old post, is this the correct way to remove the link me from the newer version, I looked at the file and the line count doesnt seem to be them same. how about a line begining " string here " to line ending " string here " thanks for your time :D

Posted: Tue Sep 19, 2006 6:41 pm
by Klemen
Hi,

Well the strings change too, but in 1.03 you can delete this:

Lines 45-48:

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!');
}
Lines 52-55:

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!');
}
and Lines 96-106:

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!'
            );
}