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.

25 lines
652B

  1. <?php
  2. include 'inc/functions.php';
  3. include 'inc/mod/pages.php';
  4. if (!isset($_GET['board']) || !preg_match("/{$config['board_regex']}/u", $_GET['board'])) {
  5. http_response_code(400);
  6. error('Bad board.');
  7. }
  8. if (!openBoard($_GET['board'])) {
  9. http_response_code(404);
  10. error('No board.');
  11. }
  12. if ($config['public_logs'] == 0) error('This board has public logs disabled. Ask the board owner to enable it.');
  13. if ($config['public_logs'] == 1) $hide_names = false;
  14. if ($config['public_logs'] == 2) $hide_names = true;
  15. if (!isset($_GET['page'])) {
  16. $page = 1;
  17. } else {
  18. $page = (int)$_GET['page'];
  19. };
  20. mod_board_log($board['uri'], $page, $hide_names, true);