diff options
| author | asiekierka <asiekierka@gmail.com> | 2013-01-08 04:31:09 +0100 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2013-01-24 03:52:55 +1100 |
| commit | 684b7f84929ac1c714e0dd803b23551f2e2acee4 (patch) | |
| tree | 754cb56d0dd53f9c7f1e94e9e991d5e0c59f066f | |
| parent | b086e47cfceabda8f96af52113e4441d1719e67a (diff) | |
[EDIT] added dummy page
| -rw-r--r-- | inc/mod/pages.php | 12 | ||||
| -rw-r--r-- | mod.php | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/inc/mod/pages.php b/inc/mod/pages.php index 1c31631c..f0c1b7fc 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -986,6 +986,18 @@ function mod_ban_post($board, $delete, $post, $token = false) { mod_page(_('New ban'), 'mod/ban_form.html', $args); } +function mod_edit_post($board, $post) { + global $config, $mod; + + if (!openBoard($board)) + error($config['error']['noboard']); + + if (!hasPermission($config['mod']['editpost'], $board)) + error($config['error']['noaccess']); + + error("Unimplemented!"); +} + function mod_delete($board, $post) { global $config, $mod; @@ -65,6 +65,7 @@ $pages = array( '/(\w+)/deletefile/(\d+)' => 'secure deletefile', // delete file from post '/(\w+)/deletebyip/(\d+)(/global)?' => 'secure deletebyip', // delete all posts by IP address '/(\w+)/(un)?lock/(\d+)' => 'secure lock', // lock thread + '/(\w+)/edit/(\d+)' => 'secure edit_post', // edit post '/(\w+)/(un)?sticky/(\d+)' => 'secure sticky', // sticky thread '/(\w+)/bump(un)?lock/(\d+)' => 'secure bumplock', // "bumplock" thread |
