Re:7楼panman的帖子
楼主说的是万能文章系统,全功能版风格默认的是news目录,在这个目录下,找到global.php文件,查找:
/** *获取信息内容 **/ function list_content($SQL,$leng=40){ global $db,$_pre,$webdb; $query=$db->query("SELECT A.* FROM {$_pre}content A $SQL"); while( $rs=$db->fetch_array($query) ){ //把辅信息表的内容也同时取出来,方便给模板调用 $rs[mid] && $rss=$db->get_one("SELECT * FROM {$_pre}content_$rs[mid] WHERE id=$rs[id] LIMIT 1"); is_array($rss) && $rs=$rs+$rss; if($webdb[Info_KeepDataTxt]) { $_rid=$rs[rid]; $dirid=floor($_rid/1000); $rs[content]=read_file(Mpath."php168/data/1_$dirid/$_rid.php"); $rs[content]=substr($rs[content], 15); } $rs[content]=@preg_replace('/<([^>]*)>/is',"",$rs[content]); //把HTML代码过滤掉 $rs[content]=get_word($rs[full_content]=$rs[content],100); $rs[title]=get_word($rs[full_title]=$rs[title],$leng); if($rs[titlecolor]||$rs[fonttype]){ $titlecolor=$rs[titlecolor]?"color:$rs[titlecolor];":''; $font_weight=$rs[fonttype]==1?'font-weight:bold;':''; $rs[title]="<font style='$titlecolor$font_weight'>$rs[title]</font>"; } $rs[posttime]=date("Y-m-d",$rs[full_time]=$rs[posttime]); if($rs[picurl]){ $rs[picurl]=tempdir($rs[picurl]); } $listdb[]=$rs; } return $listdb; }
|