67 Star 170 Fork 77

aming / ebookapp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
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";
}
?>
PHP
1
https://gitee.com/aming0502/ebookapp.git
git@gitee.com:aming0502/ebookapp.git
aming0502
ebookapp
ebookapp
master

搜索帮助