作者【未知】相关作品集

韩娱之国际影星养成记

未知的小人物

都市小说最新:

原神:无敌!从绑架琳妮特开始

未知的牙医

其他小说最新:

影帝:我谢谢你哦

未知

其他小说最新:

文明之万象王座

未知

其他小说最新:

天才之上

未知

都市小说最新:

1980:从报名参军开始

未知

其他小说最新:

修仙:开局从药童开始

未知

其他小说最新:

狂兽战神

未知

玄幻修真最新:

乱武从拜入武馆开始

未知

其他小说最新:

在下恐圣人

未知

其他小说最新:

盖世九千岁

未知

玄幻修真最新:

蛊神出寨,全球震动

未知

其他小说最新:

斗破之我为雷帝

未知

玄幻修真最新:

我的1995小农庄

未知

其他小说最新:

从霍格沃茨到斯翠海文

未知

其他小说最新:

相国在上

未知

其他小说最新:

明末:我在高丽打游击

未知

其他小说最新:

天官赐邪

未知

其他小说最新:

地仙只想种田

未知

其他小说最新:

亮剑:我有一间小卖部

未知

其他小说最新:

你这义体合法吗

未知

其他小说最新:

网游之剑刃舞者

未知

其他小说最新:

未知错误

小花狗

其他小说最新:

武夫

平生未知寒

玄幻修真最新:

仙朝

平生未知寒

玄幻修真最新:

我有十万亿舔狗金

未知

其他小说最新:

末世抢机缘:我的我的都是我的!

未知

都市小说最新:

你们是来争第二的吗?

未知

其他小说最新:

仙工开物

未知

其他小说最新:

让我出道,我还能爆!

未知

都市小说最新:

工程师的学霸系统

未知

其他小说最新:

夜色迷人

未知

其他小说最新:

极限超凡

未知

其他小说最新:

我啃祖宗怎么了?

未知

玄幻修真最新:

鸿蒙天书

未知

玄幻修真最新:

御兽从零分开始

未知

其他小说最新:

仙朝鹰犬

未知

玄幻修真最新:

三年空闺,权臣入帐吻

未知

其他小说最新:

官路逆袭,从警员开始

未知

其他小说最新:

从典史开始追兇

未知

其他小说最新:

离婚后她惊艷了世界

未知

其他小说最新:

无解的未知数

羽生迦睿

其他小说最新:

边塞狂徒

未知

其他小说最新:

从拳愿暴打海贼王开始

未知

其他小说最新:

帝皇的告死天使

未知

其他小说最新:

我体内有座女帝陵

未知

其他小说最新:

青城时光

未知

都市小说最新:

落宝金钱

未知

其他小说最新:

山野小华佗

未知

其他小说最新:

暗墟黎明

未知

其他小说最新:

七零娇宠:资本家小姐搬空全家嫁军官

未知

都市小说最新:

星渊行者

未知

其他小说最新:

斗罗绝世:黑夜神君

未知

玄幻修真最新:

娇养疯批权臣后

未知

其他小说最新:

月下低语时

未知

其他小说最新:

重生都市之极品仙尊

未知

其他小说最新:

京夜难眠

未知

都市小说最新:

热门推荐

带挂的我只想谋天下!

荼茶蓝鲸

天使乌鸦一般黑之登顶

撩镜

远山悲悯

丿向北丿

穿越反派,成为主角

小难吃北瓜

不烈的风

烟南吹

穿越:姐姐独美,别来沾边

冰糖甜崽
'.$sorts['article'][$i]['name'].'';}else{$sorts_url = str_replace('{pid}','1', $sorts_url);$sort_array .= '
  • '.$sorts['article'][$i]['name'].'
  • ';}}$tpl->assign('sort_array',$sort_array);//分类链接function object_array($array){ if(is_object($array)){$array = (array)$array; } if(is_array($array)){foreach($array as $key=>$value){ $array[$key] = object_array($value);} } return $array;} function ugbk($v){$v = iconv("utf-8","gbk",$v);return $v;}function utf8($v){$v = iconv("gbk","utf-8",$v);return $v;}function list_arrayid($sourceid){//多ID调用 include './qs_config/qs_function/block_variable.php'; $find = $db->get_results("select `p_id` from `".$qs_db_pre."article_article` where articleid ='".$sourceid."'")[0]; if($find->p_id==0){ return $sourceid; }else{ return $find->p_id; } global $arrayid;foreach($arrayid as $k => $v){if(in_array($sourceid, $v)) $sourceid = $k;}return $sourceid;}function array_strfiter($str){//数组特殊符号过滤$str = str_replace('\'', '', $str);$str = str_replace(';', '', $str);$str = str_replace('"', '', $str);$str = str_replace('=', '', $str);$str = str_replace('>', '', $str);$str = str_replace(',', '', $str);$str = str_replace('(', '', $str);$str = str_replace(')', '', $str);$str = str_replace('/', '', $str);$str = str_replace('\\', '', $str);return trim($str);}function qs_dir($str){//创建相关目录if(!is_dir($str)){mkdir($str,0777,true);}return $str;}function strFilter($str){//符号、内容过滤$str = str_replace('`', '', $str);$str = str_replace(',', '', $str);$str = str_replace('\'', '', $str);$str = str_replace('.', '', $str);$str = str_replace('·', '', $str);$str = str_replace('~', '', $str);$str = str_replace('!', '', $str);//$str = str_replace('!', '', $str);$str = str_replace('@', '', $str);$str = str_replace('#', '', $str);$str = str_replace('$', '', $str);$str = str_replace('¥', '', $str);$str = str_replace('%', '', $str);$str = str_replace('^', '', $str);$str = str_replace('……', '', $str);$str = str_replace('&', '', $str);$str = str_replace('*', '', $str);$str = str_replace('(', '', $str);$str = str_replace(')', '', $str);$str = str_replace('(', '', $str);$str = str_replace(')', '', $str);$str = str_replace('-', '', $str);$str = str_replace('_', '', $str);$str = str_replace('——', '', $str);$str = str_replace('+', '', $str);$str = str_replace('=', '', $str);$str = str_replace('|', '', $str);$str = str_replace('\\', '', $str);$str = str_replace('[', '', $str);$str = str_replace(']', '', $str);$str = str_replace('【', '', $str);$str = str_replace('】', '', $str);$str = str_replace('{', '', $str);$str = str_replace('}', '', $str);$str = str_replace(';', '', $str);$str = str_replace(';', '', $str);$str = str_replace(':', '', $str);$str = str_replace(':', '', $str);$str = str_replace('\'', '', $str);$str = str_replace('"', '', $str);$str = str_replace('“', '', $str);$str = str_replace('”', '', $str);$str = str_replace(',', '', $str);//$str = str_replace(',', '', $str);$str = str_replace('>', '', $str);$str = str_replace('《', '', $str);$str = str_replace('》', '', $str);$str = str_replace('.', '', $str);//$str = str_replace('。', '', $str);$str = str_replace('/', '', $str);$str = str_replace('、', '', $str);$str = str_replace('?', '', $str);//$str = str_replace('?', '', $str);$str = str_replace("\r\n", '', $str);$str = str_replace("\n\r", '', $str);$str = str_replace("\n", '', $str);$str = str_replace("\r", '', $str);$str = str_replace(' ', '', $str);return trim($str);}function chapterFilter($str){//章节内容过滤$str = str_replace('m.', '', $str);$str = str_replace('shg', '', $str);$str = str_replace('.tw', '.cc', $str);$str = str_replace('.com', '.cc', $str);$str = str_replace('.org', '.cc', $str);$str = str_replace('sgzww', '', $str);$str = str_replace('.cc', '', $str);$str = str_replace('.net', '', $str);$str = str_replace('.org', '', $str);$str = str_replace('www.', '', $str);$str = str_replace('www', '', $str);$str = str_replace('xiaye', '', $str);$str = str_replace('下页小说', '', $str);$str = str_replace('sgzww', '', $str);$str = str_replace('999app', '', $str);$str = str_replace('【】', '', $str);$str = str_replace('`', '', $str);$str = str_replace(',', ',', $str);$str = str_replace('\'', '', $str);$str = str_replace('/', '', $str);$str = str_replace('\\', '', $str);$str = str_replace(' ', '', $str);$str = str_replace('(', '(', $str);$str = str_replace(')', ')', $str);return trim($str);}function spider(){//搜索引擎判断 $agent= strtolower($_SERVER['HTTP_USER_AGENT']); if (!empty($agent)) { $spiderSite= array( "TencentTraveler", "Baiduspider+", "BaiduGame", "Googlebot", "msnbot", "Sosospider+", "Sogou web spider", "ia_archiver", "Yahoo! Slurp", "YoudaoBot", "Yahoo Slurp", "MSNBot", "Java (Often spam bot)", "BaiDuSpider", "Voila", "Yandex bot", "BSpider", "twiceler", "Sogou Spider", "Speedy Spider", "Google AdSense", "YisouSpider", "Python-urllib", "Alexa (IA Archiver)", "Ask", "Exabot", "Custo", "OutfoxBot/YodaoBot", "yacy", "SurveyBot", "legs", "lwp-trivial", "Nutch", "StackRambler", "The web archive (IA Archiver)", "Perl tool", "MJ12bot", "Netcraft", "MSIECrawler", "WGet tools", "larbin", "Fish search", ); foreach($spiderSite as $val) { $str = strtolower($val); if (strpos($agent, $str) !== false) { return true; } } } else { return false; } }function xs_phb($arr){//文字更新列表 左 最新更新global $function_cache;global $qs_theme_name;global $qs_theme_files;global $qs_group_id;global $is_acode,$hashids; //20251027声母逻辑 url展示声母$function_block = $arr['block'];$cache_time = $arr['time'];$block_cache = file_exists($function_cache.$function_block.'xs_phb.tpl');//获取静态文件if($block_cache != false){$block_mtime = filemtime($function_cache.$function_block.'xs_phb.tpl');//获取已生成静态文件的最后修改日期}else{$block_mtime = '0';}$templates_mtime = filemtime('./'.$qs_theme_files.'/'.$qs_theme_name.'/block_function.qs_block');//获取function文件最后修改日期$time = time();//当前服务器时间$time_up = $time - $cache_time;if($block_cache != false && $block_mtime > $templates_mtime && $block_mtime > $time_up){//静态文件!=不存在 && 静态文件最后生成日期 > 模板文件最后修改日期 && 静态文件最后生成日期 > 固定缓存期限$content = '';$content = file_get_contents($function_cache.$function_block.'xs_phb.tpl');return $content;}else{include './qs_config/qs_function/block_variable.php';$content = "";$num = $arr['num'];//次数$num2 = intval($num * 3);$num3 = $num2 - 1;$idsz = range(1,$num3);shuffle($idsz);if($arr['class'] !=0 ){$class = 'where sortid in('.$arr['class'].')';//分类if($arr['full'] == 1){$full = 'and fullflag = 0 and';//连载}if($arr['full'] == 2){$full = 'and fullflag = 1 and';//完结}if($arr['full'] == 0){$full = 'and';//完结}}else{if($arr['full'] == 1){$full = 'where fullflag = 0 and';//连载}if($arr['full'] == 2){$full = 'where fullflag = 1 and';//完结}if($arr['full'] == 0){$full = 'where';}}$order = $arr['order'];//排序$block = $db->get_results("select `articleid`,`articlename`,`author`,`fullflag`,`sortid`,`lastupdate`,`lastchapterid`,`lastchapter` from `".$qs_db_pre."article_article` $class $full display <> 2 order by `$order` desc limit $num2");for($i=0;$i<$num;$i++){$xs_i = floor($i+1);$lastupdate = date("m-d",$block[$idsz[$i]]->lastupdate);$articleid = $block[$idsz[$i]]->articleid + $qs_group_id;$lastchapter = $block[$idsz[$i]]->lastchapter;$chapterid = strip_tags($block[$idsz[$i]]->lastchapterid + $qs_group_id);$subid = intval($articleid/1000);$articleid_1 = $block[$idsz[$i]]->articleid;$subid_1 = intval($articleid_1/1000);$articlename = $block[$idsz[$i]]->articlename;$author = array_strfiter($block[$idsz[$i]]->author);$sortname = mb_substr($sorts['article'][$block[$idsz[$i]]->sortid]['name'], 0, 2, 'UTF-8');include './qs_config/qs_class/rewrite_url.php';$files_html = file_get_contents('./'.$qs_theme_files.'/'.$qs_theme_name.'/block/xs_phb.qs');include './qs_config/qs_class/block_function.php';$content .= $files_html;$urls[] = 'https://m.biqunai.cc/'.intval(intval($block[$i]->articleid + $qs_group_id)/1000).'/'.intval($block[$i]->articleid + $qs_group_id).'/';}if($arr['order'] == 'lastupdate'){$api = 'http://data.zz.baidu.com/urls?site=https://m.biqunai.cc&token=opBIIY4U4clHxdZ3';$ch = curl_init();$options = array(CURLOPT_URL => $api,CURLOPT_POST => true,CURLOPT_RETURNTRANSFER => true,CURLOPT_POSTFIELDS => implode("\n", $urls),CURLOPT_HTTPHEADER => array('Content-Type: text/plain'),);curl_setopt_array($ch, $options);$result = curl_exec($ch);}qs_dir($function_cache);$fp = fopen($function_cache.$function_block.'xs_phb.tpl',"w");fwrite($fp, $content);fclose($fp);return $content;unset($db,$block,$content);}}$tpl->registerPlugin("function","xs_phb","xs_phb");function xs_phb2($arr){//文字更新列表 右 最新入库、相关推荐global $function_cache;global $qs_theme_name;global $qs_theme_files;global $qs_group_id;global $is_acode,$hashids; //20251027声母逻辑 url展示声母$function_block = $arr['block'];$cache_time = $arr['time'];$block_cache = file_exists($function_cache.$function_block.'xs_phb2.tpl');//获取静态文件if($block_cache != false){$block_mtime = filemtime($function_cache.$function_block.'xs_phb2.tpl');//获取已生成静态文件的最后修改日期}else{$block_mtime = '0';}$templates_mtime = filemtime('./'.$qs_theme_files.'/'.$qs_theme_name.'/block_function.qs_block');//获取function文件最后修改日期$time = time();//当前服务器时间$time_up = $time - $cache_time;if($block_cache != false && $block_mtime > $templates_mtime && $block_mtime > $time_up){//静态文件!=不存在 && 静态文件最后生成日期 > 模板文件最后修改日期 && 静态文件最后生成日期 > 固定缓存期限$content = '';$content = file_get_contents($function_cache.$function_block.'xs_phb2.tpl');return $content;}else{include './qs_config/qs_function/block_variable.php';$content = "";$num = $arr['num'];//次数$num2 = intval($num * 3);$num3 = $num2 - 1;$idsz = range(1,$num3);shuffle($idsz);if($arr['class'] !=0 ){$class = 'where sortid in('.$arr['class'].')';//分类if($arr['full'] == 1){$full = 'and fullflag = 0 and';//连载}if($arr['full'] == 2){$full = 'and fullflag = 1 and';//完结}if($arr['full'] == 0){$full = 'and';//完结}}else{if($arr['full'] == 1){$full = 'where fullflag = 0 and';//连载}if($arr['full'] == 2){$full = 'where fullflag = 1 and';//完结}if($arr['full'] == 0){$full = 'where';}}$order = $arr['order'];//排序$block = $db->get_results("select `articleid`,`articlename`,`author`,`fullflag`,`sortid`,`lastupdate`,`lastchapterid`,`lastchapter` from `".$qs_db_pre."article_article` $class $full display <> 2 order by `$order` desc limit $num2");// 当数据为空或数量不足时,从最新100条随机取数据if(empty($block) || count($block) < $num){$block = $db->get_results("select `articleid`,`articlename`,`author`,`fullflag`,`sortid`,`lastupdate`,`lastchapterid`,`lastchapter` from `".$qs_db_pre."article_article` where display <> 2 order by `postdate` desc limit 100");$num2 = min(count($block), $num * 3);$num3 = max($num2 - 1, 0);$idsz = range(0, $num3);shuffle($idsz);}for($i=0;$i<$num;$i++){$xs_i = floor($i+1);$lastupdate = date("m-d H:i:s",$block[$idsz[$i]]->lastupdate);$articleid = $block[$idsz[$i]]->articleid + $qs_group_id;$lastchapter = $block[$idsz[$i]]->lastchapter;$chapterid = strip_tags($block[$idsz[$i]]->lastchapterid + $qs_group_id);$subid = intval($articleid/1000);$articleid_1 = $block[$idsz[$i]]->articleid;$subid_1 = intval($articleid_1/1000);$articlename = $block[$idsz[$i]]->articlename;$author = array_strfiter($block[$idsz[$i]]->author);$sortname = mb_substr($sorts['article'][$block[$idsz[$i]]->sortid]['name'], 0, 2, 'UTF-8');include './qs_config/qs_class/rewrite_url.php';$files_html = file_get_contents('./'.$qs_theme_files.'/'.$qs_theme_name.'/block/xs_phb2.qs');include './qs_config/qs_class/block_function.php';$content .= $files_html;}qs_dir($function_cache);$fp = fopen($function_cache.$function_block.'xs_phb2.tpl',"w");fwrite($fp, $content);fclose($fp);return $content;unset($db,$block,$content);}}$tpl->registerPlugin("function","xs_phb2","xs_phb2");// 新书推荐 - 表格格式(分类|书名|作者)function xs_xinshu($arr){global $function_cache;global $qs_theme_name;global $qs_theme_files;global $qs_group_id;global $is_acode,$hashids;$function_block = $arr['block'];$cache_time = $arr['time'];$block_cache = file_exists($function_cache.$function_block.'xs_xinshu.tpl');if($block_cache != false){$block_mtime = filemtime($function_cache.$function_block.'xs_xinshu.tpl');}else{$block_mtime = '0';}$templates_mtime = filemtime('./'.$qs_theme_files.'/'.$qs_theme_name.'/block_function.qs_block');$time = time();$time_up = $time - $cache_time;if($block_cache != false && $block_mtime > $templates_mtime && $block_mtime > $time_up){$content = '';$content = file_get_contents($function_cache.$function_block.'xs_xinshu.tpl');return $content;}else{include './qs_config/qs_function/block_variable.php';$content = "";$num = $arr['num'];$num2 = intval($num * 3);$num3 = $num2 - 1;$idsz = range(1,$num3);shuffle($idsz);if($arr['class'] !=0 ){$class = 'where sortid in('.$arr['class'].')';$full = ($arr['full'] == 1) ? 'and fullflag = 0 and' : (($arr['full'] == 2) ? 'and fullflag = 1 and' : 'and');}else{$full = ($arr['full'] == 1) ? 'where fullflag = 0 and' : (($arr['full'] == 2) ? 'where fullflag = 1 and' : 'where');}$order = $arr['order'];$block = $db->get_results("select `articleid`,`articlename`,`author`,`fullflag`,`sortid` from `".$qs_db_pre."article_article` $class $full display <> 2 order by `$order` desc limit $num2");if(empty($block) || count($block) < $num){$block = $db->get_results("select `articleid`,`articlename`,`author`,`fullflag`,`sortid` from `".$qs_db_pre."article_article` where display <> 2 order by `postdate` desc limit 100");$num2 = min(count($block), $num * 3);$num3 = max($num2 - 1, 0);$idsz = range(0, $num3);shuffle($idsz);}for($i=0;$i<$num;$i++){$articleid = $block[$idsz[$i]]->articleid + $qs_group_id;$articleid_1 = $block[$idsz[$i]]->articleid;$subid = intval($articleid/1000);$subid_1 = intval($articleid_1/1000);$articlename = $block[$idsz[$i]]->articlename;$author = array_strfiter($block[$idsz[$i]]->author);$sortname = mb_substr($sorts['article'][$block[$idsz[$i]]->sortid]['name'], 0, 2, 'UTF-8');include './qs_config/qs_class/rewrite_url.php';$files_html = file_get_contents('./'.$qs_theme_files.'/'.$qs_theme_name.'/block/xs_xinshu.qs');include './qs_config/qs_class/block_function.php';$content .= $files_html;}qs_dir($function_cache);$fp = fopen($function_cache.$function_block.'xs_xinshu.tpl',"w");fwrite($fp, $content);fclose($fp);return $content;unset($db,$block,$content);}}$tpl->registerPlugin("function","xs_xinshu","xs_xinshu");function xs_phb3($arr){//首页分类列表global $function_cache;global $qs_theme_name;global $qs_theme_files;global $qs_group_id;global $is_acode,$hashids; //20251027声母逻辑 url展示声母$function_block = $arr['block'];$cache_time = $arr['time'];$block_cache = file_exists($function_cache.$function_block.'xs_phb3.tpl');//获取静态文件if($block_cache != false){$block_mtime = filemtime($function_cache.$function_block.'xs_phb3.tpl');//获取已生成静态文件的最后修改日期}else{$block_mtime = '0';}$templates_mtime = filemtime('./'.$qs_theme_files.'/'.$qs_theme_name.'/block_function.qs_block');//获取function文件最后修改日期$time = time();//当前服务器时间$time_up = $time - $cache_time;if($block_cache != false && $block_mtime > $templates_mtime && $block_mtime > $time_up){//静态文件!=不存在 && 静态文件最后生成日期 > 模板文件最后修改日期 && 静态文件最后生成日期 > 固定缓存期限$content = '';$content = file_get_contents($function_cache.$function_block.'xs_phb3.tpl');return $content;}else{include './qs_config/qs_function/block_variable.php';$content = "";$num = $arr['num'];//次数$num2 = intval($num * 3);$num3 = $num2 - 1;$idsz = range(1,$num3);shuffle($idsz);if($arr['class'] !=0 ){$class = 'where sortid in('.$arr['class'].')';//分类if($arr['full'] == 1){$full = 'and fullflag = 0 and';//连载}if($arr['full'] == 2){$full = 'and fullflag = 1 and';//完结}if($arr['full'] == 0){$full = 'and';//完结}}else{if($arr['full'] == 1){$full = 'where fullflag = 0 and';//连载}if($arr['full'] == 2){$full = 'where fullflag = 1 and';//完结}if($arr['full'] == 0){$full = 'where';}}$order = $arr['order'];//排序$block = $db->get_results("select `articleid`,`articlename`,`author`,`fullflag`,`sortid`,`lastupdate`,`lastchapterid`,`lastchapter`,`intro` from `".$qs_db_pre."article_article` $class $full display <> 2 order by `$order` desc limit $num2");for($i=0;$i<$num;$i++){$xs_i = floor($i+1);$lastupdate = date("m-d H:i:s",$block[$idsz[$i]]->lastupdate);$articleid = $block[$idsz[$i]]->articleid + $qs_group_id;$lastchapter = $block[$idsz[$i]]->lastchapter;$chapterid = strip_tags($block[$idsz[$i]]->lastchapterid + $qs_group_id);$subid = intval($articleid/1000);$articleid_1 = $block[$idsz[$i]]->articleid;$subid_1 = intval($articleid_1/1000);$articlename = $block[$idsz[$i]]->articlename;$author = array_strfiter($block[$idsz[$i]]->author);$sortname = $sorts['article'][$block[$idsz[$i]]->sortid]['name'];$intro = strFilter(mb_substr(strip_tags($block[$idsz[$i]]->intro),0,50,'utf-8')); //简介if($intro == ''){$intro = "欢迎阅读作者【".$author."】所著爽文《".$articlename."》,点击阅读《".$articlename."》最新章节";}include './qs_config/qs_class/rewrite_url.php';if($i==0){$files_html = file_get_contents('./'.$qs_theme_files.'/'.$qs_theme_name.'/block/xs_phb3_loop1.qs');include './qs_config/qs_class/block_function.php';$content .= $files_html;}else{$files_html = file_get_contents('./'.$qs_theme_files.'/'.$qs_theme_name.'/block/xs_phb3.qs');include './qs_config/qs_class/block_function.php';$content .= $files_html;}}qs_dir($function_cache);$fp = fopen($function_cache.$function_block.'xs_phb3.tpl',"w");fwrite($fp, $content);fclose($fp);return $content;unset($db,$block,$content);}}$tpl->registerPlugin("function","xs_phb3","xs_phb3");function xs_phb4($arr){//文字更新列表 右 最新入库、相关推荐global $function_cache;global $qs_theme_name;global $qs_theme_files;global $qs_group_id;global $tag_info_rewrite;global $is_acode,$hashids; //20251027声母逻辑 url展示声母$function_block = $arr['block'];$cache_time = $arr['time'];$block_cache = file_exists($function_cache.$function_block.'xs_phb4.tpl');//获取静态文件if($block_cache != false){$block_mtime = filemtime($function_cache.$function_block.'xs_phb4.tpl');//获取已生成静态文件的最后修改日期}else{$block_mtime = '0';}$templates_mtime = filemtime('./'.$qs_theme_files.'/'.$qs_theme_name.'/block_function.qs_block');//获取function文件最后修改日期$time = time();//当前服务器时间$time_up = $time - $cache_time;if($block_cache != false && $block_mtime > $templates_mtime && $block_mtime > $time_up){//静态文件!=不存在 && 静态文件最后生成日期 > 模板文件最后修改日期 && 静态文件最后生成日期 > 固定缓存期限$content = '';$content = file_get_contents($function_cache.$function_block.'xs_phb4.tpl');return $content;}else{include './qs_config/qs_function/block_variable.php';$content = "";$num = $arr['num'];//次数$num2 = intval($num * 3);$num3 = $num2 - 1;$idsz = range(1,$num3);shuffle($idsz);$order = $arr['order'];//排序$block = $db->get_results('SELECT * FROM `jieqi_qs_tag` ORDER BY `jieqi_qs_tag`.`langid` DESC LIMIT 0 , '.$num2.'');for($i=0;$i<$num;$i++){$xs_i = floor($i+1);$lastupdate = date("m-d H:i:s",$block[$idsz[$i]]->lastupdate);$articleid = $block[$idsz[$i]]->langid + $qs_group_id;$subid = intval($articleid/1000);$articleid_1 = $block[$idsz[$i]]->langid;$subid_1 = intval($articleid_1/1000);$articlename = $block[$idsz[$i]]->langname;$info_url = str_replace('{aid}',$articleid, $tag_info_rewrite);$info_url = str_replace('{bid}',$subid, $info_url);if($is_acode){ //20251027声母逻辑 url展示声母 $info_url=str_replace($articleid,$hashids->encode($articleid),$info_url); $info_url=str_replace($subid,$hashids->encode($subid),$info_url);}$files_html = file_get_contents('./'.$qs_theme_files.'/'.$qs_theme_name.'/block/xs_phb4.qs');include './qs_config/qs_class/block_function.php';$content .= $files_html;}qs_dir($function_cache);$fp = fopen($function_cache.$function_block.'xs_phb4.tpl',"w");fwrite($fp, $content);fclose($fp);return $content;unset($db,$block,$content);}}$tpl->registerPlugin("function","xs_phb4","xs_phb4");function fengmian($arr){global $function_cache;global $qs_theme_name;global $qs_theme_files;global $qs_group_id;global $is_acode,$hashids; //20251027声母逻辑 url展示声母$function_block = $arr['block'];$cache_time = $arr['time'];$block_cache = file_exists($function_cache.$function_block.'fengmian.tpl');//获取静态文件if($block_cache != false){$block_mtime = filemtime($function_cache.$function_block.'fengmian.tpl');//获取已生成静态文件的最后修改日期}else{$block_mtime = '0';}$templates_mtime = filemtime('./'.$qs_theme_files.'/'.$qs_theme_name.'/block_function.qs_block');//获取function文件最后修改日期$time = time();//当前服务器时间$time_up = $time - $cache_time;if($block_cache != false && $block_mtime > $templates_mtime && $block_mtime > $time_up){//静态文件!=不存在 && 静态文件最后生成日期 > 模板文件最后修改日期 && 静态文件最后生成日期 > 固定缓存期限$content = '';$content = file_get_contents($function_cache.$function_block.'fengmian.tpl');return $content;}else{include './qs_config/qs_function/block_variable.php';$content = "";$num = $arr['num'];//次数$num2 = intval($num * 3);$num3 = $num2 - 1;$idsz = range(1,$num3);shuffle($idsz);if($arr['class'] !=0 ){$class = 'where sortid in('.$arr['class'].')';//分类if($arr['full'] == 1){$full = 'and fullflag = 0 and';//连载}if($arr['full'] == 2){$full = 'and fullflag = 1 and';//完结}if($arr['full'] == 0){$full = 'and';//完结}}else{if($arr['full'] == 1){$full = 'where fullflag = 0 and';//连载}if($arr['full'] == 2){$full = 'where fullflag = 1 and';//完结}if($arr['full'] == 0){$full = 'where';}}$order = $arr['order'];//排序$block = $db->get_results("select `articleid`,`articlename`,`author`,`intro`,`sortid`,`lastupdate`,`fullflag`,`toptime` from `".$qs_db_pre."article_article` $class $full toptime > 0 and display <> 2 order by articleid desc limit $num");// 当数据为空时,从最新小说中随机取数据if(empty($block) || !is_array($block)){$block = $db->get_results("select `articleid`,`articlename`,`author`,`intro`,`sortid`,`lastupdate`,`fullflag`,`toptime` from `".$qs_db_pre."article_article` where display <> 2 order by `postdate` desc limit 100");}if(!empty($block) && is_array($block)){shuffle($block);}else{$block = array();}$num = min($num, count($block));for($i=0;$i<$num;$i++){$xs_i = floor($i+1);$lastupdate = date("m-d H:i:s",$block[$i]->lastupdate);$articleid = $block[$i]->articleid + $qs_group_id;$chapterid = strip_tags($block[$i]->lastchapterid + $qs_group_id);$subid = intval($articleid/1000);$articleid_1 = $block[$i]->articleid;$subid_1 = intval($articleid_1/1000);$intro = strFilter(mb_substr(strip_tags($block[$i]->intro),0,120,'utf-8')).'...'; //简介$author = array_strfiter($block[$i]->author);$articlename = $block[$i]->articlename;$sortname = $sorts['article'][$block[$i]->sortid]['name'];include './qs_config/qs_class/rewrite_url.php';$files_html = file_get_contents('./'.$qs_theme_files.'/'.$qs_theme_name.'/block/fengmian.qs');include './qs_config/qs_class/block_function.php';$content .= $files_html;}qs_dir($function_cache);$fp = fopen($function_cache.$function_block.'fengmian.tpl',"w");fwrite($fp, $content);fclose($fp);return $content;unset($db,$block,$content);}}$tpl->registerPlugin("function","fengmian","fengmian");function zhanwai($arr){//文字更新列表 左 最新更新global $function_cache;global $qs_theme_name;global $qs_theme_files;global $qs_group_id;$function_block = $arr['block'];$cache_time = $arr['time'];$block_cache = file_exists($function_cache.$function_block.'zhanwai.tpl');//获取静态文件if($block_cache != false){$block_mtime = filemtime($function_cache.$function_block.'zhanwai.tpl');//获取已生成静态文件的最后修改日期}else{$block_mtime = '0';}$templates_mtime = filemtime('./'.$qs_theme_files.'/'.$qs_theme_name.'/block_function.qs_block');//获取function文件最后修改日期$time = time();//当前服务器时间$time_up = $time - $cache_time;if($block_cache != false && $block_mtime > $templates_mtime && $block_mtime > $time_up){//静态文件!=不存在 && 静态文件最后生成日期 > 模板文件最后修改日期 && 静态文件最后生成日期 > 固定缓存期限$content = '';$content = file_get_contents($function_cache.$function_block.'zhanwai.tpl');return $content;}else{include './qs_config/qs_function/block_variable.php';global $db2;//站外数据库ezsql调用$sorts['article'][1] = array('id' => '1','name' => '玄幻修真','pinyin' => 'xuanhuan');$sorts['article'][2] = array('id' => '2','name' => '重生穿越','pinyin' => 'chongsheng');$sorts['article'][3] = array('id' => '3','name' => '都市小说','pinyin' => 'dushi');$sorts['article'][4] = array('id' => '4','name' => '军史小说','pinyin' => 'junshi');$sorts['article'][5] = array('id' => '5','name' => '网游小说','pinyin' => 'wangyou');$sorts['article'][6] = array('id' => '6','name' => '科幻小说','pinyin' => 'kehuan');$sorts['article'][7] = array('id' => '7','name' => '灵异小说','pinyin' => 'lingyi');$sorts['article'][8] = array('id' => '8','name' => '言情小说','pinyin' => 'yanqing');$sorts['article'][9] = array('id' => '9','name' => '其他小说','pinyin' => 'qita');$content = "";$num = $arr['num'];//次数$num2 = intval($num * 3);$num3 = $num2 - 1;$idsz = range(1,$num3);shuffle($idsz);if($arr['class'] !=0 ){$class = 'where sortid in('.$arr['class'].')';//分类if($arr['full'] == 1){$full = 'and fullflag = 0 and';//连载}if($arr['full'] == 2){$full = 'and fullflag = 1 and';//完结}if($arr['full'] == 0){$full = 'and';//完结}}else{if($arr['full'] == 1){$full = 'where fullflag = 0 and';//连载}if($arr['full'] == 2){$full = 'where fullflag = 1 and';//完结}if($arr['full'] == 0){$full = 'where';}}$order = $arr['order'];//排序$block = $db2->get_results("select `articleid`,`articlename`,`author`,`fullflag`,`sortid`,`lastupdate`,`lastchapterid`,`lastchapter` from `".$qs_db_pre."article_article` $class $full display <> 2 order by `$order` desc limit $num2");$ii=intval(0);for($i=0;$i<$num;$i++){$qs_group_id = '138138';//站群ID混淆 数字随意填,填【0】使用真实ID$ii++;if($ii=='1'){$qs_group_id = '112';//多网址站群ID混淆 数字随意填,填【0】使用真实ID}if($ii=='2'){$qs_group_id = '138138';//多网址站群ID混淆 数字随意填,填【0】使用真实ID}$xs_i = floor($i+1);$lastupdate = date("m-d",$block[$idsz[$i]]->lastupdate);$articleid = $block[$idsz[$i]]->articleid + $qs_group_id;$lastchapter = $block[$idsz[$i]]->lastchapter;$chapterid = strip_tags($block[$idsz[$i]]->lastchapterid + $qs_group_id);$subid = intval($articleid/1000);$articleid_1 = $block[$idsz[$i]]->articleid;$subid_1 = intval($articleid_1/1000);$articlename = $block[$idsz[$i]]->articlename;$author = array_strfiter($block[$idsz[$i]]->author);$sortname = $sorts['article'][$block[$idsz[$i]]->sortid]['name'];//$info_url = '/novel/{aid}/'; //信息页$info_url = str_replace('{aid}',$articleid, 'https://138xs.com/book/{aid}.html');$read_url = str_replace('{aid}',$articleid, 'https://138xs.com/id/{bid}/{aid}/{cid}.html');if($ii=='1'){$info_url = str_replace('{aid}',$articleid, 'https://112yq.cc/info_{aid}.html');$read_url = str_replace('{aid}',$articleid, 'https://112yq.cc/read_{bid}/{aid}/{cid}.html');}if($ii=='2'){$info_url = str_replace('{aid}',$articleid, 'https://138xs.com/book/{aid}.html');$read_url = str_replace('{aid}',$articleid, 'https://138xs.com/id/{bid}/{aid}/{cid}.html');}$info_url = str_replace('{bid}',$subid, $info_url);//$read_url = '/novel/{aid}/{cid}.html';//阅读页$read_url = str_replace('{bid}',$subid, $read_url);$read_url = str_replace('{cid}',$chapterid, $read_url);$files_html = file_get_contents('./'.$qs_theme_files.'/'.$qs_theme_name.'/block/zhanwai.qs');$author_url = str_replace('{author}',urlencode($author), $author_rewrite);$files_html = str_replace('',$fullflag, $files_html);$files_html = str_replace('',$xs_i, $files_html);$files_html = str_replace('',$info_url, $files_html);$files_html = str_replace('',$read_url, $files_html);$files_html = str_replace('',$lastchapter, $files_html);$files_html = str_replace('',$lastupdate, $files_html);$files_html = str_replace('',$articleid, $files_html);$files_html = str_replace('',$chapterid, $files_html);$files_html = str_replace('',$subid, $files_html);$files_html = str_replace('',$articleid_1, $files_html);$files_html = str_replace('',$subid_1, $files_html);$files_html = str_replace('',$articlename, $files_html);$files_html = str_replace('',$intro, $files_html);$files_html = str_replace('',$author, $files_html);$files_html = str_replace('',$author_url, $files_html);$files_html = str_replace('',$sortname, $files_html);$files_html = str_replace('',$article_sortid, $files_html);$files_html = str_replace('',$novel_img_url, $files_html);$content .= $files_html;unset($qs_group_id,$info_url,$read_url);}qs_dir($function_cache);$fp = fopen($function_cache.$function_block.'zhanwai.tpl',"w");fwrite($fp, $content);fclose($fp);return $content;unset($db2,$block,$content);}}$tpl->registerPlugin("function","zhanwai","zhanwai");function linju($arr){//小说ID直接调用if($arr['articleid']!=''){global $function_cache;global $qs_theme_name;global $qs_theme_files;global $qs_group_id;global $info_rewrite;global $files_links;global $is_acode,$hashids; //20251027声母逻辑 url展示声母$cache_time = $arr['time'];$articleid_2 = intval($arr['articleid']);$subid_2 = intval($articleid_2/1000);$block_cache = file_exists('./qs_html/linju/'.$subid_2.'/'.$articleid_2.'_linju.php');//获取静态文件$time = time();//当前服务器时间$time_up = $time - $cache_time;if($block_cache != false){$block_mtime = filemtime('./qs_html/linju/'.$subid_2.'/'.$articleid_2.'_linju.php');//获取文件时间}else{$block_mtime = '0';}if($block_cache != false && $block_mtime > $time_up){ //文件存在 //if($block_cache != false){//文件存在include './qs_html/linju/'.$subid_2.'/'.$articleid_2.'_linju.php';//导入静态文件$num = count((array)$qs_linju);$sj_id = range(0,$num-1);shuffle($sj_id);for($i=0;$i<$num;$i++){if($sj_id[$i]==0){//$articleid = intval($qs_linju[$sj_id[$i]]['id'] + 13869);//www.shxsw.com//$subid = intval($articleid/1000);//$zhanwai_info_url = str_replace('{aid}',$articleid, 'https://www.tingxs1.org/{aid}/" target="_blank');//www.shxsw.com信息页//$info_url = str_replace('{bid}',$subid, $zhanwai_info_url);}else{$articleid = $qs_linju[$sj_id[$i]]['id'] + $qs_group_id;$subid = intval($articleid/1000);$info_url = str_replace('{aid}',$articleid, $info_rewrite);$info_url = str_replace('{bid}',$subid, $info_url);}if($is_acode){ //20251027声母逻辑 url展示声母 $info_url=str_replace($articleid,$hashids->encode($articleid),$info_url); $info_url=str_replace($subid,$hashids->encode($subid),$info_url);}$articleid_1 = $qs_linju[$sj_id[$i]]['id'];$subid_1 = intval($articleid_1/1000);$articlename = $qs_linju[$sj_id[$i]]['name'];$files_html = file_get_contents('./'.$qs_theme_files.'/'.$qs_theme_name.'/block/linju.qs');include './qs_config/qs_class/block_function.php';$content .= $files_html;}}else{include './qs_config/qs_function/block_variable.php';$linju_php = 'get_results("select `articleid`,`articlename`,`author`,`intro`,`sortid`,`lastupdate`,`fullflag`,`toptime`,`lastchapter` from `".$qs_db_pre."article_article` where articleid < ".$articleid_2." order by articleid desc limit 20");$num = count((array)$block);$sj_id = range(0,$num-1);shuffle($sj_id);for($i=0;$i<$num;$i++){if($sj_id[$i]==0){//$articleid = intval($block[$sj_id[$i]]->articleid + 13869);//www.shxsw.com//$subid = intval($articleid/1000);//$zhanwai_info_url = str_replace('{aid}',$articleid, 'https://www.tingxs1.org/{aid}/" target="_blank');//www.shxsw.com信息页//$info_url = str_replace('{bid}',$subid, $zhanwai_info_url);}else{$articleid = $block[$sj_id[$i]]->articleid + $qs_group_id;$subid = intval($articleid/1000);$info_url = str_replace('{aid}',$articleid, $info_rewrite);$info_url = str_replace('{bid}',$subid, $info_url);}if($is_acode){ //20251027声母逻辑 url展示声母 $info_url=str_replace($articleid,$hashids->encode($articleid),$info_url); $info_url=str_replace($subid,$hashids->encode($subid),$info_url);}$articleid_1 = $block[$sj_id[$i]]->articleid;$subid_1 = intval($articleid_1/1000);$articlename = $block[$sj_id[$i]]->articlename;$author = $block[$sj_id[$i]]->author;$intro = strFilter(mb_substr(strip_tags($block[$sj_id[$i]]->intro),0,120,'utf-8')); //简介$linju_php .='$qs_linju['.$i.']=[\'id\'=>\''.$block[$i]->articleid.'\',\'name\'=>\''.$block[$i]->articlename.'\',\'author\'=>\''.$block[$i]->author.'\',\'intro\'=>\''.strFilter(mb_substr(strip_tags($block[$i]->intro),0,120,'utf-8')).'\'];'."\r\n";$files_html = file_get_contents('./'.$qs_theme_files.'/'.$qs_theme_name.'/block/linju.qs');include './qs_config/qs_class/block_function.php';$content .= $files_html;}qs_dir('./qs_html/linju/'.$subid_2.'/');$fp = fopen('./qs_html/linju/'.$subid_2.'/'.$articleid_2.'_linju.php',"w");fwrite($fp, $linju_php);fclose($fp);unset($db,$block);}return $content;unset($content);}else{$content = '';return $content;unset($content);}}$tpl->registerPlugin("function","linju","linju");function random_links($arr){//随机友情链接global $function_cache;global $qs_theme_name;global $qs_theme_files;$function_block = 'random_links';$cache_time = isset($arr['time']) ? $arr['time'] : 3600; // 默认3600秒缓存$num = isset($arr['num']) ? intval($arr['num']) : 30; // 默认随机30条$block_cache = file_exists($function_cache.$function_block.'.tpl');//获取静态文件if($block_cache != false){$block_mtime = filemtime($function_cache.$function_block.'.tpl');//获取已生成静态文件的最后修改日期}else{$block_mtime = '0';}$templates_mtime = filemtime('./'.$qs_theme_files.'/'.$qs_theme_name.'/block_function.qs_block');//获取function文件最后修改日期$time = time();//当前服务器时间$time_up = $time - $cache_time;if($block_cache != false && $block_mtime > $templates_mtime && $block_mtime > $time_up){//静态文件!=不存在 && 静态文件最后生成日期 > 模板文件最后修改日期 && 静态文件最后生成日期 > 固定缓存期限$content = '';$content = file_get_contents($function_cache.$function_block.'.tpl');return $content;}else{$content = "";$link_file = './qs_html/img/link/link.txt';// 检查文件是否存在if(!file_exists($link_file)){// 文件不存在,输出空数据qs_dir($function_cache);$fp = fopen($function_cache.$function_block.'.tpl',"w");fwrite($fp, $content);fclose($fp);return $content;}// 读取文件所有行$lines = file($link_file, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);// 如果文件为空或无有效内容if(empty($lines)){qs_dir($function_cache);$fp = fopen($function_cache.$function_block.'.tpl',"w");fwrite($fp, $content);fclose($fp);return $content;}// 随机打乱数组shuffle($lines);// 提取指定数量的链接$selected_lines = array_slice($lines, 0, min($num, count($lines)));// 生成输出内容foreach($selected_lines as $line){$line = trim($line);if(!empty($line)){$content .= $line . "\n";}}// 保存缓存文件qs_dir($function_cache);$fp = fopen($function_cache.$function_block.'.tpl',"w");fwrite($fp, $content);fclose($fp);return $content;}}$tpl->registerPlugin("function","random_links","random_links");function random_mululinks($arr){//随机目录链接global $function_cache;global $qs_theme_name;global $qs_theme_files;$function_block = 'random_mululinks';$cache_time = isset($arr['time']) ? $arr['time'] : 3600; // 默认3600秒缓存$num = isset($arr['num']) ? intval($arr['num']) : 30; // 默认随机30条$block_cache = file_exists($function_cache.$function_block.'.tpl');//获取静态文件if($block_cache != false){$block_mtime = filemtime($function_cache.$function_block.'.tpl');//获取已生成静态文件的最后修改日期}else{$block_mtime = '0';}$templates_mtime = filemtime('./'.$qs_theme_files.'/'.$qs_theme_name.'/block_function.qs_block');//获取function文件最后修改日期$time = time();//当前服务器时间$time_up = $time - $cache_time;if($block_cache != false && $block_mtime > $templates_mtime && $block_mtime > $time_up){//静态文件!=不存在 && 静态文件最后生成日期 > 模板文件最后修改日期 && 静态文件最后生成日期 > 固定缓存期限$content = '';$content = file_get_contents($function_cache.$function_block.'.tpl');return $content;}else{$content = "";$link_file = './qs_html/img/link/mulu_link.txt';// 检查文件是否存在if(!file_exists($link_file)){// 文件不存在,输出空数据qs_dir($function_cache);$fp = fopen($function_cache.$function_block.'.tpl',"w");fwrite($fp, $content);fclose($fp);return $content;}// 读取文件所有行$lines = file($link_file, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);// 如果文件为空或无有效内容if(empty($lines)){qs_dir($function_cache);$fp = fopen($function_cache.$function_block.'.tpl',"w");fwrite($fp, $content);fclose($fp);return $content;}// 随机打乱数组shuffle($lines);// 提取指定数量的链接$selected_lines = array_slice($lines, 0, min($num, count($lines)));// 生成输出内容foreach($selected_lines as $line){$line = trim($line);if(!empty($line)){$content .= $line . "\n";}}// 保存缓存文件qs_dir($function_cache);$fp = fopen($function_cache.$function_block.'.tpl',"w");fwrite($fp, $content);fclose($fp);return $content;}}$tpl->registerPlugin("function","random_mululinks","random_mululinks");