| #1422 | //首页分页URL解析 |
| #1423 | protected function index_page_url($cfg = array(), $uri = ''){ |
| #1424 | |
| #1425 | |
| #1426 | $url_suffix = isset($_ENV['_config']['url_suffix']) ? $_ENV['_config']['url_suffix'] : '.html'; |
| #1427 | $url_suffix_len = strlen($url_suffix); |
| #1428 | if(substr($uri, 0, 6) == 'index_' && substr($uri, -$url_suffix_len) == $url_suffix) { |
| #1429 | $newurl = substr($uri, 0, -$url_suffix_len); |
| #1430 | preg_match("/^index_(\d+)$/i", $newurl, $mat); |
| #1431 | if( isset($mat[1]) ){ |