Browse Source

[EDIT] added dummy page

tags/vichan-devel-4.0-gold
asiekierka 11 years ago
parent
commit
a051ca64ab
2 changed files with 13 additions and 0 deletions
  1. +12
    -0
      inc/mod/pages.php
  2. +1
    -0
      mod.php

+ 12
- 0
inc/mod/pages.php View File

@@ -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;


+ 1
- 0
mod.php View File

@@ -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


Loading…
Cancel
Save