请不要用本程序从事任何违法行为!24小时内请删除
程序截图
运行环境
Linux+Nginx+php5.6/7.2
伪静态nginx
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}
location =/sitemap.xml {
rewrite ^(.*)$ /xml.php;
}
说明
正常显示是停靠页面
要浏览正常页面需要找到根目录index.php文件,修改约53行 false 修改为true即可
if($flag == false){
header('HTTP/1.1 503');
$url='503.php';
$html= file_get_contents($url);
echo$html;
exit();
}
我们可以在index.php中,根据文字提示,自行选择是否需要开启文章加括号、文章加ascii码、缓存等功能。
//文章加括号
$kuo_jia = "2"; //1 为开启 2为关闭
$kuo_shu = 1;
$kuo_fu = '】【';
//文章加ascii码
$ascii_jia = "2"; //1 为开启 2为关闭
//缓存开关
$cache = "2"; //1 为开启 2为关闭
$page_cache_time = 9999999; //缓存时间
include'spider.php';
header('HTTP/1.1 200 OK');
error_reporting(0);
define('DIR', dirname(__FILE__));
sitets.php中自行设置您的域名及token,并将ts.php加入到宝塔定时任务中。
$token='http://data.zz.baidu.com/urls?site=www.你的域名.com&token=你的token';//去百度获取
原文链接:https://www.baijiascw.com/26308.html,转载请注明出处。
评论0