From 684b7f84929ac1c714e0dd803b23551f2e2acee4 Mon Sep 17 00:00:00 2001 From: asiekierka Date: Tue, 8 Jan 2013 04:31:09 +0100 Subject: [PATCH] [EDIT] added dummy page --- inc/mod/pages.php | 12 ++++++++++++ mod.php | 1 + 2 files changed, 13 insertions(+) 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; diff --git a/mod.php b/mod.php index d9faf263..49010897 100644 --- a/mod.php +++ b/mod.php @@ -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