DOH ! I can't believe I never noticed this.. You are right, teh way its coded, it will skip a site.. . at least one.
I am currently doing a rewrite of the related files, but in the meantime, see if this slight tweak helps..
Edit the file /admin/linkcheck_top.php
Locate ...
| Code: |
while($x<$count){
echo "<option value=\"linkcheck_main.php?" . session_name() . "=";
echo session_id() . "&start=" . ($x+1);
echo "&many=" . $many . "\">" . ($x+1) . " - ";
if(($x+$many)>$count){echo $count;} else {echo ($x+$many);}
echo "</option>\n";
$x=$x+$many;
}
|
Replace with . . . .
| Code: |
while($x<$count){
echo "<option value=\"linkcheck_main.php?" . session_name() . "=";
echo session_id() . "&start=" . $x;
echo "&many=" . $many . "\">" . $x . " - ";
if(($x+$many)>$count){
echo $count;
} else {
echo ($x+$many);
}
echo "</option>\n";
$x=$x+$many;
}
|
Secondly.. yes, the actual link check is limited... but it does actually look for the link.. Here is the admitadly clunky code that does it..
| Code: |
$file = @fopen($rows[RecipURL], "r");
while (!feof($file)) {$line = fgets($file, 4096);
if (preg_match("/.*href.*". $our_site .".*a/i",$line, $out)){
$rlink="<font color=green>Rlink found</font><br>";$rlink2=$line;
}
if (preg_match("/noindex/i",$line,$out)){
$bad_recip = 1;$note.="<font color=red>No Index</font><br>";
}
if (preg_match("/nofollow/i",$line,$out)){
$bad_recip = 1;$note.="<font color=red>No Follow</font><br>";
}
} fclose($file); // end rlink search
|
So, it looks for noindex/nofollow mentioned anywhere on teh page.. which could be a sneaky webmaster up to no good. It also checks for the existance of "hrefSOMETHING$sitenameSOMETHINGa" in the file.
First, make sure $sitename is correctly defined in /include/config.php
The two big drawbacks of this method are ..
1. fopen is horribly slow at opening/closing multiple sockets.
2. The preg_match method will only detect your link if the "href", sitename and closing </a> tag are all on the same line.
To address these problems, I hope to have new versions of linkcheck_main.php and linkcheck_top.php available for download in a couple days. If you would be so kind to try them out, your feedback would be greatly apreciated.
And if they are just really superiffic, maybe consider buying me a cup of coffee via the paypal donate button to the left.
