The version of vichan running on lainchan.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
663B

  1. <?php
  2. include 'inc/functions.php';
  3. $global = isset($_GET['global']);
  4. $post = (isset($_GET['post']) ? $_GET['post'] : false);
  5. $board = (isset($_GET['board']) ? $_GET['board'] : false);
  6. if (!$post || !preg_match('/^delete_\d+$/', $post) || !$board || !openBoard($board)) {
  7. header('HTTP/1.1 400 Bad Request');
  8. error(_('Bad request.'));
  9. }
  10. if ($config['report_captcha']) {
  11. $captcha = generate_captcha($config['captcha']['extra']);
  12. } else {
  13. $captcha = null;
  14. }
  15. $body = Element('report.html', ['global' => $global, 'post' => $post, 'board' => $board, 'captcha' => $captcha, 'config' => $config]);
  16. echo Element('page.html', ['config' => $config, 'body' => $body]);