Seite 1 von 1

Kleines Weihnachtsblogs Script für euch. :D

Verfasst: 12.12.2007, 10:23
von LuiseJürgens
Dieses Script ab "html" in eine datei blablabal.php oder so. :D

Auf euren Server uploaden und los gehts. :D


<html>
<head>
<title>Ein Weihnachtsgeschenk für euch. :D</title>
</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</em></center>
</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:

Verfasst:
von

Hochwertiger Linkaufbau bei ABAKUS:
  • Google-konformer Linkaufbau
  • nachhaltiges Ranking
  • Linkbuilding Angebote zu fairen Preisen
  • internationale Backlinks
Wir bieten Beratung und Umsetzung.
Jetzt anfragen: 0511 / 300325-0

Verfasst: 12.12.2007, 14:19
von alex07
mag ja für den ein oder anderen interessant sein. verstehe dein script, is nichts für mich.
würd ja gerne das script erläutern, hab aber keine lust....
mach es bitte für die, die ka von php haben, und dann vielleicht in einem anderem unterforum (webcoding).

Verfasst: 13.12.2007, 02:00
von |Z|
Dieses script soll nur blogs filtern..
Blogs von wordpress

Verfasst:
von
Content Erstellung von ABAKUS Internet Marketing
Ihre Vorteile:
  • einzigartige Texte
  • suchmaschinenoptimierte Inhalte
  • eine sinnvolle Content-Strategie
  • Beratung und Umsetzung
Jetzt anfragen: 0511 / 300325-0

Verfasst: 13.12.2007, 02:28
von seo-theo
mir ist das Script piep-egal..........hast Du heut Abend noch was vor? 8)

Verfasst: 19.12.2007, 07:10
von kyper
script hin oder her. das shirt ist doch zu eng oder?

Verfasst: 19.12.2007, 07:17
von bara.munchies
das script findet automatisch nofollow blogs von wordpress, right?

da ich grad curl lerne ganz brauchbar, danke.

Verfasst: 30.12.2007, 18:53
von Consi
Nicht ganz richtig. Das Skript findet Blogs, die kein Nofollow-Attribut auf der gesamten Seite benutzen.

Verfasst: 30.12.2007, 18:58
von bara.munchies
Erbsenzähler! Natürlich NO-nofollow. Schon klar welche Links zählen und welche nicht. Und wenn Du es schon so genau nimmst: Nein, das Script findet keine Blogs, sondern Wordpress Blogs.