伪静态规则,伪静态形式全部可以按照帝国原有的后台来走。(本方法修改系统文件)
第一步、打开/e/class/connect.php文件,找到
此函数整个修改为://返回TAGS列表伪静态
function eReturnRewriteTagsUrl
第二步、打开/e/tags/index.php文件//返回TAGS列表伪静态
function eReturnRewriteTagsUrl(t a g i d , tagid,tagid,tagname,$ecms=0){
global p u b l i c r , public_r,publicr,empire,d b t b p r e ; i f ( ! dbtbpre; if(!dbtbpre;if(!tagid){
t a g n a m e = R e p P o s t V a r ( tagname=RepPostVar(tagname=RepPostVar(tagname);
if(!$tagname){
r [ ′ p a g e u r l ′ ] = r['pageurl']=r[′pageurl′]=public_r[‘newsurl’];
$r[‘rewrite’]=0;
return $r;
}
t a g r = tagr=tagr=empire->fetch1(“select tagid,num from {KaTeX parse error: Expected 'EOF', got '}' at position 8: dbtbpre}̲enewstags where…tagname’ limit 1”);
if(!$tagr[‘tagid’]){
r [ ′ p a g e u r l ′ ] = r['pageurl']=r[′pageurl′]=public_r[‘newsurl’];
$r[‘rewrite’]=0;
return $r;
}
t a g i d = tagid=tagid=tagr[‘tagid’];
}
if(empty($public_r[‘rewritetags’])){
r [ ′ p a g e u r l ′ ] = r['pageurl']=r[′pageurl′]=public_r[‘newsurl’].“e/tags/?tagid=”.$tagid;
KaTeX parse error: Expected 'EOF', got '}' at position 25: …e']=0; }̲else{ …ecms==1){
r [ ′ p a g e u r l ′ ] = r['pageurl']=r[′pageurl′]=public_r[‘newsurl’].str_replace(array(’[!–tagname–]’,’[!–page–]’),array(t a g i d , 0 ) , tagid,0),tagid,0),public_r[‘rewritetags’]);
}else{
r [ ′ p a g e u r l ′ ] = r['pageurl']=r[′pageurl′]=public_r[‘newsurl’].str_replace(’[!–tagname–]’,t a g i d , tagid,tagid,public_r[‘rewritetags’]);
}
$r[‘rewrite’]=1;
}
return $r;
}
1、17 18行左右 找到:
修改为://TAGS
t a g i d = ( i n t ) tagid=(int)tagid=(int)_GET[‘tagid’];
2、分页修改://TAGS
t a g i d = ( i n t ) tagid=(int)tagid=(int)_GET[‘tagname’];
193行左右找到
if(KaTeX parse error: Expected 'EOF', got '&' at position 14: tagr['tagid']&̲&empty(add)&&KaTeX parse error: Expected 'EOF', got '&' at position 10: search=='&̲tagname='.tagname.’&line=’.KaTeX parse error: Expected 'EOF', got '&' at position 26: …tagslistnum'].'&̲tempid='.public_r[‘tagstempid’])
{