multiple improvements

This commit is contained in:
Michael Save 2012-04-16 20:11:10 +10:00
parent f0412b0814
commit cc614e36b4
6 changed files with 138 additions and 9 deletions

11
mod.php
View file

@ -43,10 +43,17 @@ $pages = array(
'!^/bans/(\d+)$!' => 'bans', // ban list
'!^/(\w+)/delete/(\d+)$!' => 'delete', // delete post
'!^/(\w+)/(un)?lock/(\d+)$!' => 'lock', // lock thread
'!^/(\w+)/(un)?sticky/(\d+)$!' => 'sticky', // sticky thread
'!^/(\w+)/bump(un)?lock/(\d+)$!' => 'bumplock', // "bumplock" thread
// these pages aren't listed in the dashboard without $config['debug']
'!^/debug/antispam$!' => 'debug_antispam',
// This should always be at the end:
'!^/(\w+)/' . preg_quote($config['file_index'], '!') . '?$!' => 'view_board',
'!^/(\w+)/' . str_replace('%d', '(\d+)', preg_quote($config['file_page'], '!')) . '$!' => 'view_board',
'!^/(\w+)/$!' => 'view_board',
'!^/(\w+)/' . preg_quote($config['file_index'], '!') . '$!' => 'view_board',
'!^/(\w+)/' . str_replace('%d', '(\d+)', preg_quote($config['file_page'], '!')) . '$!' => 'view_board',
'!^/(\w+)/' . preg_quote($config['dir']['res'], '!') .
str_replace('%d', '(\d+)', preg_quote($config['file_page'], '!')) . '$!' => 'view_thread',
);