if(in_array('forum_forumdisplay', $_G['setting']['rewritestatus'])) { $data['search']['forum_forumdisplay'] = "/".$_G['domain']['pregxprw']['forum']."\?mod\=forumdisplay&(amp;)?fid\=(\w+)(&page\=(\d+))?\"([^\>]*)\>/"; $data['replace']['forum_forumdisplay'] = 'rewriteoutput(\'forum_forumdisplay\', 0, $matches[1], $matches[3], $matches[5], $matches[6])'; } |
if(in_array('forum_forumdisplay_type', $_G['setting']['rewritestatus'])) { $data['search']['forum_forumdisplay_type'] = "/".$_G['domain']['pregxprw']['forum']."\?mod\=forumdisplay&(amp;)?fid\=(\w+)(&typeid\=(\w+))?(&filter\=typeid)?(&typeid\=(\w+))?(&filter\=typeid)?(&page\=(\d+))?\"([^\>]*)\>/e"; $data['replace']['forum_forumdisplay_type'] = "rewriteoutput('forum_forumdisplay_type', 0, $matches[1], $matches[3], $matches[8], $matches[11], $matches[12])"; } |
$data['rulesearch']['forum_forumdisplay'] = 'forum-{fid}-{page}.html'; $data['rulereplace']['forum_forumdisplay'] = 'forum.php?mod=forumdisplay&fid={fid}&page={page}'; $data['rulevars']['forum_forumdisplay']['{fid}'] = '(\w+)'; $data['rulevars']['forum_forumdisplay']['{page}'] = '([0-9]+)'; |
$data['rulesearch']['forum_forumdisplay_type'] = 'forum-{fid}-{typeid}-{page}.html'; $data['rulereplace']['forum_forumdisplay_type'] = 'forum.php?mod=forumdisplay&fid={fid}&filter=typeid&typeid={typeid}&page={page}'; $data['rulevars']['forum_forumdisplay_type']['{fid}'] = '(\w+)'; $data['rulevars']['forum_forumdisplay_type']['{typeid}'] = '(\w+)'; $data['rulevars']['forum_forumdisplay_type']['{page}'] = '([0-9]+)'; |
if($type == 'forum_forumdisplay') { list(,,, $fid, $page, $extra) = func_get_args(); $r = array( '{fid}' => empty($_G['setting']['forumkeys'][$fid]) ? $fid : $_G['setting']['forumkeys'][$fid], '{page}' => $page ? $page : 1, ); |
} if($type == 'forum_forumdisplay') { list(,,, $fid, $page, $extra) = func_get_args(); $r = array( '{fid}' => empty($_G['setting']['forumkeys'][$fid]) ? $fid : $_G['setting']['forumkeys'][$fid], '{page}' => $page ? $page : 1, ); } elseif($type == 'forum_forumdisplay_type') { list(,,, $fid, $typeid, $page, $extra) = func_get_args(); $r = array( '{fid}' => empty($_G['setting']['forumkeys'][$fid]) ? $fid : $_G['setting']['forumkeys'][$fid], '{typeid}' => $typeid, '{page}' => $page ? $page : 1, ); |
版权声明: 本站资源均来自互联网或会员发布,如果侵犯了您的权益请与我们联系,我们将在24小时内删除!谢谢!