Browse Source

?/IP/: Don't show posts for board user doesn't have access to

pull/40/head
Michael Foster 11 years ago
parent
commit
343397d561
  1. 2
      inc/mod/pages.php

2
inc/mod/pages.php

@ -744,6 +744,8 @@ function mod_page_ip($ip) {
$boards = listBoards();
foreach ($boards as $board) {
openBoard($board['uri']);
if (!hasPermission($config['mod']['show_ip'], $board['uri']))
continue;
$query = prepare(sprintf('SELECT * FROM `posts_%s` WHERE `ip` = :ip ORDER BY `sticky` DESC, `id` DESC LIMIT :limit', $board['uri']));
$query->bindValue(':ip', $ip);

Loading…
Cancel
Save