How To Remove Linking To Me First

Problems installing LinkMan?
Post Reply
tcr1016
Posts: 3
Joined: Mon Feb 27, 2006 9:07 pm

How To Remove Linking To Me First

Post by tcr1016 »

How do I disable requiring them linking to me before they can add a link?

Thank you
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

In addlink.php delete lines 58-62
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Crime
Posts: 2
Joined: Fri Sep 15, 2006 11:45 pm

58-62?

Post 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
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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!'
            );
}
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply