![:D](./images/smilies/icon_biggrin.gif)
Auf euren Server uploaden und los gehts.
![:D](./images/smilies/icon_biggrin.gif)
<html>
<head>
<title>Ein Weihnachtsgeschenk für euch.
![:D](./images/smilies/icon_biggrin.gif)
</head>
<body>
<div style="padding-left:30px; padding-right:30px; padding-top:7px">
<h2 align=center>Finde Page-Rank Passive Blogs (v1.21)</h2>
<? if ($_POST['keyword']) {
?>
<form id = "scanform">
<center>Scanne Blogs <input id="scanning" name="scanne" style="width:30px" value = "" /> von 100<br>
<em>Diese Weihnachts Script scannt bis zu 100 Blogs.
![:D](./images/smilies/icon_biggrin.gif)
</form>
<?
$count = 0;
echo "<h3>Blog Auflistung unterhalb</h3>";
returnBlogs($_POST['keyword']);
}else{ ?>
<center>
<script>
function dosubmit() {
if (document.finder.keyword.value == '') {
alert('You must supply a keyword!');
return false;
}
document.getElementById('finding').style.display = 'block';
return true;
}
</script>
<p>Enter dein Keyword</p>
<form name="finder" id="finder" method="post" action = "#">
<input name = "keyword" width = 100 />
<input type="submit" name="submit" value="Find Blogs!" onclick="return dosubmit()" />
<br><br>
<div id="finding" style="display:none" align="center" >
<div style="text-decoration:blink">
Suche...
</div>
Dieser Prozess kann einige Minuten dauern <br>
es kann sein, dass Ihr Server schneller antwortet, bevor die Anfrage zuende ist.
</div>
</form>
</center>
<? } ?>
</div>
</body>
</html>
<?
function returnBlogs($keyword) {
$results = getGoogleResults($keyword);
$i = 0;
global $count;
$count = 0;
foreach ($results as $result) {
$count++;
//echo $result;
echo "<script>document.getElementById('scanning').value='$count'; </script>";
if (hasNoFollow($result)) {
//echo "<b>$i. NOFOLLOW</b> $result<br>";
}else{
$i++;
echo "<b>$i.</b> $result<br>";
}
}
return $final;
}
function getGoogleResults($keyword) {
$keyword = str_replace('"', '', $keyword);
$keyword = '"'.$keyword.'"';
$keyword = $keyword.' "powered by wordpress" "leave a comment" "Kommentar schreiben" "Kommentar hinterlassen" -"no comments"';
$search_url = "https://www.google.de/search?num=100&hl ... ($keyword);
$results_html = getPage($search_url);
$results = array();
$reg_array = "";
$rank = 1;
while (preg_match('! href=\"([^\"]*)\" class=l!i', $results_html, $reg_array)) {
$url = $reg_array[1];
$replace = preg_quote($reg_array[0]);
$results_html = preg_replace('!'.$replace.'!', '', $results_html);
$url = str_replace("%3A", ":", $url);
$results[$rank] = trim($url);
$rank++;
if ($rank > 100){ break; }
}
return $results;
}
function hasNoFollow($url) {
$html = trim(strtolower(getPage($url)));
if ($html == '' || strstr($html, "nofollow")) {
return true;
}else{
return false;
}
}
// ----------------------------------------------------------------------------------
function getPage($url) {
// ----------------------------------------------------------------------------------
$fp = @fopen($url, "r"); $html = ""; if ($fp){ while (!feof($fp)){ $html .= @fread($fp, 8192); } @fclose($fp); } else { $html = curl_get_file($url); }
if (eregi("<title>(.*)</title>", $html, $title)) {
$body = $html;
}else{$body = ""; }
return trim($body);
}
// ----------------------------------------------------------------------------------
function curl_get_file($url){
// ----------------------------------------------------------------------------------
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_HEADER, 0);
ob_start();
curl_exec ($ch);
curl_close ($ch);
$string = ob_get_contents();
ob_end_clean();
return $string;
}
?>
![:lol:](./images/smilies/icon_lol.gif)