私信发送成功
Watch Star Fork

aming / ebookappPHP

基于bootstrap的php小说采集系统 http://getlove.xyz
克隆/下载
一键复制 编辑 原始数据 按行查看 历史
chapter_lst.php 1.05 KB aming 提交于 2014-07-23 09:40 . 重新修改适应原抓取网站的变化
<?php
include_once "init.php";
include_once WEB_ROOT."util/mysql_class.php";
include_once WEB_ROOT."smarty_inc.php";
include_once WEB_ROOT."admin/funcs/make_article_func.php";
include_once WEB_ROOT."admin/funcs/pick_artile_func.php";
include_once WEB_ROOT."admin/funcs/app_util_func.php";
include_once WEB_ROOT."util/util.php";
include_once WEB_ROOT."util/Model_class.php";
include_once WEB_ROOT.'admin/Parser_class.php';
include_once 'third_part/simple_html_dom.php';
include_once 'util/mobile_redirect.php';
//$db = new mysql();
if(@$_GET["id"]){
$artileid = str_check($_GET["id"]);
$local_url="/data/artiles/".$artileid.".htm";
$act_file = WEB_ROOT.$local_url;
if(is_chapter_updated($artileid)||!file_exists($act_file)){
pick_article($artileid,false);
make_article_func($artileid,false);
}
//echo "bb";
//header('HTTP/1.1 301 Moved Permanently');
//header("location: ".$local_url);
if(file_exists($act_file)){
echo read_file_content($act_file);
}else{
echo "file not exsit";
}
}else{
echo "artileid missing";
}
?>

评论 (0)

你可以在登录后,对此项目发表评论

3_float_left_people 3_float_left_close