示例#1
0
<?php

error_reporting(0);
define('IN_SEO', TRUE);
header("Content-Type:text/html;charset=gb2312");
require 'function.php';
set_time_limit(0);
isset($_SERVER['HTTP_REFERER']) or exit('Invalid Request');
preg_match("/" . $_SERVER['HTTP_HOST'] . "/i", $_SERVER['HTTP_REFERER']) or exit('Access Denied');
$ROBOT['site_url'] = 'http://www.baidu.com/s?wd=site%3A';
$ROBOT['site_pattern'] = "/找到相关网页(.*)篇/";
@extract($_POST);
$domain = $domain ? $domain : '34ways.com';
@(require_once '../cache.php');
if (file_exists("../cache/baidu.php")) {
    @(require_once "../cache/baidu.php");
    $urls = filehave($urls, $domain);
} else {
    $urls = fileno($domain);
}
writeover("../cache/baidu.php", "<?php\r\n\$urls=" . vvar_export($urls) . ";\r\n?>");
isset($domain) or exit('非法操作!');
$domain = strtolower($domain);
is_domain($domain) or exit('请输入正确的域名!');
$result = get_seo_info($domain, $selects, $pn);
echo $result;
示例#2
0
<?php

error_reporting(0);
define('IN_SEO', TRUE);
set_time_limit(0);
isset($_SERVER['HTTP_REFERER']) or exit('Invalid Request');
preg_match("/" . $_SERVER['HTTP_HOST'] . "/i", $_SERVER['HTTP_REFERER']) or exit('Access Denied');
header("Content-Type:text/html;charset=gb2312");
include '../robot.php';
require 'function.php';
@extract($_POST);
$domain = $domain ? $domain : '34ways.com';
$domain = strtolower($domain);
is_domain($domain) or exit;
$result = '';
if ($che) {
    $result = get_seo_info($domain, $che);
}
if ($domain) {
    @(require_once '../cache.php');
    if (file_exists("../cache/ssyqsl.php")) {
        @(require_once "../cache/ssyqsl.php");
        $urls = filehave($urls, $domain);
    } else {
        $urls = fileno($domain);
    }
    writeover("../cache/ssyqsl.php", "<?php\r\n\$urls=" . vvar_export($urls) . ";\r\n?>");
}
echo $result;
示例#3
0
<?php

error_reporting(0);
define('IN_SEO', TRUE);
header("Content-Type:text/html;charset=gb2312");
require 'function.php';
set_time_limit(0);
isset($_SERVER['HTTP_REFERER']) or exit('Invalid Request');
preg_match("/" . $_SERVER['HTTP_HOST'] . "/i", $_SERVER['HTTP_REFERER']) or exit('Access Denied');
$ROBOT['site_url'] = 'http://www.google.com/search?hl=zh-CN&q=site%3A';
$ROBOT['site_pattern'] = "/获得(.*) 条结果/";
@extract($_POST);
$domain = $domain ? $domain : '34ways.com';
$domain = strtolower($domain);
is_domain($domain) or exit('请输入正确的域名!');
if ($domain) {
    @(require_once '../cache.php');
    if (file_exists("../cache/google.php")) {
        @(require_once "../cache/google.php");
        $urls = filehave($urls, $domain);
    } else {
        $urls = fileno($domain);
    }
    writeover("../cache/google.php", "<?php\r\n\$urls=" . vvar_export($urls) . ";\r\n?>");
}
$result = get_seo_info($domain, $selects, $start);
echo $result;
示例#4
0
        $output = $keysa[$k];
    }
    array_push($ara, $output);
}
$output = implode("+", $ara);
if ($val == 1) {
    $ROBOT['baidu']['site_url'] = 'http://www.baidu.com/s?wd=' . $output . "&rn=" . $rn . "&pn=" . $pn;
    $job = "baidu";
} else {
    $ROBOT['google']['site_url'] = 'http://www.google.com/search?hl=zh-CN&q=' . $output . "&num=" . $rn . "&start=" . $pn;
    $job = "google";
}
$domain = strtolower($domain);
if ($domain) {
    is_domain($domain) or exit("<script language=javascript>alert('请输入正确的域名!');location.href='keys.php';</script>");
    $result = get_seo_info($domain, $job, $pn, $keys, $val, $output, $rn);
    !empty($result) or exit('Invalid Request');
}
@(require_once '../header.php');
if ($domain) {
    @(require_once '../cache.php');
    if (file_exists("../cache/keys.php")) {
        @(require_once "../cache/keys.php");
        $urls = filehave($urls, $domain);
    } else {
        $urls = fileno($domain);
    }
    writeover("../cache/keys.php", "<?php\r\n\$urls=" . vvar_export($urls) . ";\r\n?>");
}
?>
<div class="main">
示例#5
0
文件: seo.php 项目: TiMoChao/xingfu
<?php

define('IN_SEO', TRUE);
error_reporting(E_ERROR);
@set_time_limit(0);
isset($_SERVER['HTTP_REFERER']) or exit('Invalid Request');
preg_match("/" . $_SERVER['HTTP_HOST'] . "/i", $_SERVER['HTTP_REFERER']) or exit('Access Denied');
header("Content-Type:text/html;charset=utf-8");
include './robot.php';
require './function.php';
@extract($_POST);
isset($job) && isset($domain) or exit('Invalid Request');
$domain = strtolower($domain);
is_domain($domain) or exit('Invalid Domain');
$jobs = array('google', 'baidu', 'yahoo', 'bing', 'sogou', 'youdao');
$result = '';
if (substr($domain, 0, 4) == 'www.') {
    $domain = substr($domain, 4);
}
$result = get_seo_info($domain, $job);
!empty($result) or exit('Invalid Request');
echo '收录:<img src="tools/gr/images/yes.gif" align="absmiddle" /> ' . $result;