diff options
| author | asiekierka <asiekierka@gmail.com> | 2013-01-08 04:31:09 +0100 |
|---|---|---|
| committer | asiekierka <asiekierka@gmail.com> | 2013-01-08 04:31:09 +0100 |
| commit | a051ca64ababcf49f4eebf9b768b301c9e8cc06e (patch) | |
| tree | 55019e051134ddff900ff508a35c838c8aaac522 | |
| parent | 60fceb9a2033a6386228b39849488a5b715097a3 (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 4f1ab73c..fb9f364d 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -985,6 +985,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 |
