代码拉取完成,页面将自动刷新
同步操作将从 aming/ebookapp 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<?php
include_once "init.php";
include_once "smarty_inc.php";
include_once WEB_ROOT."util/mysql_class.php";
include_once WEB_ROOT."util/util.php";
include_once WEB_ROOT."admin/funcs/app_util_func.php";
include_once WEB_ROOT."util/Model_class.php";
function getTopNovel(){
$model = new Model();
if(@$_GET["id"]){
$id = verify_id($_GET["id"]);
$category_id = " and c.id=".$id;
}else{
$category_id ="";
}
$sql_select="select a.*,c.category_name from t_article a,t_seeds b,t_category c where a.seed_id = b.id and b.category_id=c.id ".$category_id." order by a.click_times desc limit 0,30";
$model->query($sql_select);
return $model->fetch_all();
}
if(@$_POST["search_text"]){
$title = trim($_POST["search_text"]);
//$title = str_check($title);
//mysql_real_escape_string($value)
//echo $title;
$db = new mysql();
$sql_select="select a.*,c.category_name from t_article a,t_seeds b,t_category c where a.title like '%".$title."%' and a.seed_id = b.id and b.category_id=c.id";
$query = $db->query($sql_select);
while($row=$db->fetch_row_array($query)){
$arr[] = $row;
}
$links = getLinks();
$advert = getadvert();
$tops = getTopNovel();
$smarty->assign("click_artile",$tops);
$smarty->assign("links",$links);
$smarty->assign("advert",$advert);
$smarty->assign("artile",$arr);
$smarty->display("common_header.htm");
$smarty->display("index_bootstrap.htm");
$smarty->display("right-nav.htm");
$smarty->display("common_footer.htm");
}else{
echo "±";
}
?>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。