摘要:
1:在includes/cls_template.php里顶部插入分类函数代码: //通过参数判断是否存在二级分类 function get_subcate_byurl($url) { $rs = strpos($url,"category"); if($rs!==false) { preg_match("/d+/i",$url,$matches); $cid = $matches[0]; $cat_arr = array(); $sql = "select * from ".$GLOBALS['ecs']->t 阅读全文