예제 #1
0
        $a5 = @(round($a4 / $a1 * 100, 1) . "%");
        $text = $keys[$t];
        $output = '';
        $tab_text = str_split($text);
        foreach ($tab_text as $id => $char) {
            $hex = dechex(ord($char));
            $output .= '%' . $hex;
        }
        $keyss .= "<tr><td><div id=keys" . $t . ">" . $keys[$t] . "</div></td><td>" . $a3 . "</td><td>" . $a5 . "</td><td><div name=cha1 id=cha" . $t . "><a href=http://www.baidu.com/s?wd=" . $output . " target=_blank>查看</a></div></td><td><a href=http://www.google.com.hk/search?q=" . $output . " target=_blank>查看</a></td></tr>";
        @unlink($densti);
    }
    $keyss .= "</table>";
}
//PR
@(require_once '../pr/prfunction.php');
$PR = '<img src="../images/pagerank' . GetPR($domain) . '.gif" align="absmiddle" /> ' . $domain;
$body = strlen($body) > 800 ? substr($body, 0, 800) . '…………' : $body;
@(require_once '../cache.php');
if (file_exists("../cache/seo.php")) {
    @(require_once "../cache/seo.php");
    $urls = filehave($urls, $domain);
} else {
    $urls = fileno($domain);
}
writeover("../cache/seo.php", "<?php\r\n\$urls=" . vvar_export($urls) . ";\r\n?>");
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
예제 #2
0
function update_qp($site_id)
{
    global $db;
    $row = $db->get_one("select * from ve123_sites where site_id='" . $site_id . "'");
    $url = get_site_url($row['url']) . '/';
    $qp = GetPR($url) + 1;
    $array = array('qp' => $qp);
    $db->update('ve123_sites', $array, "site_id='" . $site_id . "'");
}
예제 #3
0
$url = $_GET['domain'];
if ($url) {
    $ptr = "<table width=100%><tr><td align=right>域名&nbsp;&nbsp;&nbsp;&nbsp;</td><td align=left>&nbsp;&nbsp;&nbsp;&nbsp;PR</td><tr/>";
    $domain = explode(",", trim($url));
    for ($i = 0; $i < sizeof($domain); $i++) {
        if (strlen($domain[$i]) > 1) {
            $p[$i] = GetPR(trim($domain[$i]));
            $ptr .= "<tr><td align=right><a href=http://" . $domain[$i] . " target=_blank><font color=red>" . $domain[$i] . "</font></a>:</td><td align=left><img src=../images/pagerank" . $p[$i] . ".gif>&nbsp;真实的PR</td></tr>";
            if ($_GET['xz'] == 1) {
                $qw[$i] = str_replace("www.", "", $domain[$i]);
                $cnt = 0;
                while ($cnt < 15 && ($ejym = @file_get_contents("http://www.baidu.com/s?wd=" . $qw[$i] . "&rn=100")) === FALSE) {
                    $cnt++;
                }
                preg_match_all("/<font color=\"#008000\">(.*)\\.<b>/Ui", $ejym, $arr);
                $arr[1] = array_unique($arr[1]);
                for ($j = 0; $j < sizeof($arr[1]); $j++) {
                    if (strpos($arr[1][$j], '.com') === false && strpos($arr[1][$j], '.') === false && strlen($arr[1][$j]) > 1) {
                        $url2[$j] = $arr[1][$j] . "." . $qw[$i];
                        $pt[$i] = GetPR(trim($url2[$j]));
                        $ptr .= "<tr><td align=right><a href=http://" . $url2[$j] . " target=_blank>" . $url2[$j] . "</a>:</td><td align=left><img src=../images/pagerank" . $pt[$i] . ".gif>&nbsp;真实的PR</td></tr>";
                    }
                }
            }
        }
    }
    $ptr .= "</table>";
} else {
    $ptr = "请先输入正确的域名!例如:34ways.com,niaituan.com";
}
echo $ptr;
예제 #4
0
    $baidu = "http://www.baidu.com/s?wd=";
    $times = "/\\d{4}-\\d{1,2}-\\d{1,2}/";
    $s0 = $site_url . $domain;
    $s1 = $s0 . '&lm=1';
    $cnt2 = 0;
    while ($cnt2 < 10 && ($c0 = @file_get_contents($s0)) === FALSE) {
        $cnt2++;
    }
    $cnt3 = 0;
    while ($cnt3 < 10 && ($c1 = @file_get_contents($s1)) === FALSE) {
        $cnt3++;
    }
    preg_match($site_pattern, $c0, $a0);
    preg_match($site_pattern, $c1, $a1);
    @(require_once '../pr/prfunction.php');
    $prs = '&nbsp;&nbsp;<img src="../images/pagerank' . GetPR($domain) . '.gif" align="absmiddle" /> ';
    preg_match($baids, $c0, $kuaizhao);
    preg_match($times, $kuaizhao[0], $btime);
    //图片链接个数
    for ($j = 0; $j < sizeof($outs); $j++) {
        if ($ali[$j]) {
            if ($name[$j] == '图片链接') {
                array_push($pic, $name[$j]);
            }
            array_push($ati, $name[$j]);
        }
    }
    $text = sizeof($ali) - sizeof($pic);
}
@(require_once '../header.php');
if ($domain) {
예제 #5
0
define('ROOT_PATH', $__file__ ? dirname($__file__) . '/' : './');
$action = $_GET['action'];
$lurl = $_GET['lurl'];
$domain = $_GET['domain'];
if ($action == 'baidushoulu') {
    $url = "http://www.baidu.com/s?wd=site%3A" . $lurl;
    $cnt3 = 0;
    while ($cnt3 < 10 && ($content = @file_get_contents($url)) === FALSE) {
        $cnt3++;
    }
    $site_pattern = "/找到相关网页(.*)篇/";
    preg_match($site_pattern, $content, $arrs);
    echo "<a href=\"{$url}\" target=_blank>" . $arrs[1] . "</a>";
} elseif ($action == 'prs') {
    @(require_once '../pr/prfunction.php');
    echo GetPR($lurl);
} elseif ($action == 'baidukuaizhao') {
    $baids = "/<font color=\"#008000\">(.*)<\\/font> - <a href=\"(.*)\"  target=\"_blank\"  class=\"m\">百度快照<\\/a>/Usi";
    $times = "/\\d{4}-\\d{1,2}-\\d{1,2}/";
    $cnt2 = 0;
    while ($cnt2 < 10 && ($content = @file_get_contents("http://www.baidu.com/s?wd=site%3A" . $lurl)) === FALSE) {
        $cnt2++;
    }
    preg_match($baids, $content, $bs1);
    preg_match($times, $bs1[0], $bs2);
    $bs2 = $bs2[0] ? $bs2[0] : '无百度快照';
    echo "<a href=\"http://www.baidu.com/s?wd=" . $lurl . "\" target=_blank>" . $bs2 . "</a>";
} elseif ($action == 'fanlianjie') {
    $cnt = 0;
    while ($cnt < 10 && ($content = @file_get_contents("http://" . $lurl)) === FALSE) {
        $cnt++;
예제 #6
0
    $Result = 0x1020345;
    for ($i = 0; $i < strlen($url); $i++) {
        $Result ^= ord($SEED[$i % 87]) ^ ord($url[$i]);
        $Result = $Result >> 23 & 0x1ff | $Result << 9;
    }
    return sprintf("8%x", $Result);
}
function GetPR($url)
{
    $gurl = "http://www.google.com/search?client=navclient-auto&features=Rank:&q=info:" . $url . '&ch=' . HashURL($url);
    $gcontent = @file_get_contents($gurl);
    if (strlen($gcontent) == 11) {
        return substr($gcontent, 9, 1);
    } elseif (strlen($gcontent) == 12) {
        return substr($gcontent, 9, 2);
    } else {
        return 0;
    }
}
$current_url = $_SERVER['QUERY_STRING'];
$current_url = str_replace("http://", "", $current_url);
$current_url = str_replace("https://", "", $current_url);
$current_url = trim($current_url);
if (preg_match("/^([A-Z0-9][A-Z0-9_-]*(?:\\.[A-Z0-9][A-Z0-9_-]*)+):?(\\d+)?\\/?/i", $current_url)) {
    $pr = GetPR($current_url);
} else {
    $pr = 0;
}
?>

예제 #7
0
<?php

error_reporting(0);
define('IN_SEO', 'IN_SEO');
header("content-Type: text/html; charset=GB2312");
$testlink = $_GET['testlink'];
if (strpos($testlink, 'wpa.qq.com') !== false) {
    echo "(<a href=" . $testlink . " target=_blank><font color=red> ¡Ì </font></a>)";
} else {
    $con = @file_get_contents($testlink);
    if ($con) {
        @(require_once '../pr/prfunction.php');
        $pr = GetPR($testlink);
        echo "(<a href=" . $testlink . " target=_blank><font color=red> ¡Ì </font></a>)&nbsp;&nbsp;<font color=black><b>" . $pr . "</b></font>";
    } else {
        echo "(<a href=" . $testlink . " target=_blank> ¡Á </a>)";
    }
}