summaryrefslogtreecommitdiff
path: root/mod.php
diff options
context:
space:
mode:
authorMichael Save <savetheinternet@tinyboard.org>2012-04-16 20:11:10 +1000
committerMichael Save <savetheinternet@tinyboard.org>2012-04-16 20:11:10 +1000
commitcc614e36b4135d5b8ac000bad8ed450df0e61ffe (patch)
tree07026bb2a61e7d36498e40076383762b1098d007 /mod.php
parentf0412b08140e256056fd1ea41ea1930fcc321d22 (diff)
multiple improvements
Diffstat (limited to 'mod.php')
-rw-r--r--mod.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/mod.php b/mod.php
index 86169b59..8af74a7b 100644
--- a/mod.php
+++ b/mod.php
@@ -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',
);