";
include("menufile.inc");
// echo "
uri= $uri
urladd= $urladd";
include_once("/home/dovadac/public_html/powerrss/rp_conf.php");
$xlow = "5";
$yhigh = "10";
$hgkey = "";
$keyword = "Childrens Books";
echo "
$keyword News";
include_once("/home/dovadac/public_html/powerrss/powrss_news.php");
}
else {
if ($keyword == "") {
echo "Invalid web page";
exit;
}
// Get the data filename
$myFile = "linkstext.php";
// Clear the search results
$LF = "
";
$noLinks = "";
// ---- Open the file data ----
$fh = fopen($myFile, 'r');
// get total file size
$length = filesize($myFile);
// ---- Read all the file data in and close the file ----
$theData = fread($fh, filesize($myFile));
fclose($fh);
$theData = str_replace("", "", $theData);
$theData = str_replace("", "", $theData);
$theData = str_replace(")", "", $theData);
$theData = str_replace('', '', $theData);
// Convert the file data to known lower case for searching purposes
$strData = strtolower($theData);
$start = "";
$linksfound = "0";
// setup powerrss variables
$do_rand = "";
$nofollow = "1";
$xlow = "9";
$yhigh = "9";
$hgkey = "";
// Print the screen header
echo "Directory home - Home
$keyword1
";
$posint == 0;
$postart = $posint;
if ($robotdetect == "1") {
// Powerrss for $keyword presented instead
$keywordsave = $keyword;
include_once("/home/dovadac/public_html/powerrss/rp_conf.php");
$keyword = $keywordsave;
include_once("/home/dovadac/public_html/powerrss/powrss_news.php");
} else {
while ($posint < $length) {
// (lowercase data, "", found position)
$posend = strpos($strData, $end, $postart);
// Save the end position for next search
$posint = $posend;
if ($postart === false) {
$posint = $length + 10; // force end of while function
// End of file - normally leave here nothing found
if ($noLinks == "") {
$keywordsave = $keyword;
include_once("/home/dovadac/public_html/powerrss/rp_conf.php");
$keyword = $keywordsave;
include_once("/home/dovadac/public_html/powerrss/powrss_news.php");
echo "No more links available.
";
exit;
}
$keywordsave = $keyword;
include_once("/home/dovadac/public_html/powerrss/rp_conf.php");
if ($linksfound < "9") {
$xlow = 9 - $linksfound;
$yhigh = $xlow;
$keyword = $keywordsave;
include_once("/home/dovadac/public_html/powerrss/powrss_news.php");
include('footer.inc');
exit;
} else {
include('footer.inc');
exit;
}
} else {
$found = substr($theData,$postart ,$posend - $postart);
$found1 = strtolower($found);
$postart = $posint;
$strlength = strlen($found1);
$pos = strpos($found1, '>');
if ($pos === false) {
echo "char > not found ";
exit;
} else {
$count = substr_count($found1, $keyword);
if ($count == 0) {
// keyword not found
// echo "keyword not found ";
$posint = $posend;
} else {
// list the matching link
$linksfound = $linksfound + 1;
$result = "$found";
$result .= " $LF";
$noLinks = "$found";
echo $result;
}
}
}
}
// end robotsdetect else-statement
}
}
?>
|