| #248 | |
| #249 | //朝代检索 |
| #250 | //$pattern = '/shiciguwen\/chaodai\/(.+)(?:\/page_(\d+))?\/$/'; |
| #251 | $pattern = '/^shiciguwen\/chaodai\/([^\/]+)\/(page_(\d+)\/)?$/'; |
| #252 | preg_match($pattern, $uri, $matches); |
| #253 | if(isset($matches[1])){ |
| #254 | $_GET['control'] = 'guoxue'; |
| #255 | $_GET['action'] = 'shiciguwen_jiansuo'; |
| #256 | $_GET['chaodai'] = $matches[1]; |
| #257 | if(isset($matches[3])){ |