From f4c8c73a8b735925be215661b0879aa316c3d1f4 Mon Sep 17 00:00:00 2001 From: David M Date: Sun, 17 Dec 2006 16:11:48 +0000 Subject: [PATCH] - exclude the IP of the post in the "other IP's" list git-svn-id: file:///svn/phpbb/trunk@6776 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/mcp/mcp_post.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/phpBB/includes/mcp/mcp_post.php b/phpBB/includes/mcp/mcp_post.php index 44558eb553..f17821ae28 100644 --- a/phpBB/includes/mcp/mcp_post.php +++ b/phpBB/includes/mcp/mcp_post.php @@ -38,12 +38,12 @@ function mcp_post_details($id, $mode, $action) $ip = request_var('ip', ''); include($phpbb_root_path . 'includes/functions_user.' . $phpEx); - + $whois = user_ipwhois($ip); - + $whois = preg_replace('#(\s)([\w\-\._\+]+@[\w\-\.]+)(\s)#', '\1\2\3', $whois); - $whois = preg_replace('#(\s)(http:/{2}[^\s]*)(\s)#', '\1\2\3', $whois); - + $whois = preg_replace('#(\s)(ht{2}p:/{2}\S*)(\s)#', '\1\2\3', $whois); + $template->assign_vars(array( 'RETURN_POST' => sprintf($user->lang['RETURN_POST'], '', ''), 'WHOIS' => trim($whois)) @@ -275,6 +275,7 @@ function mcp_post_details($id, $mode, $action) $sql = 'SELECT poster_ip, COUNT(poster_ip) AS postings FROM ' . POSTS_TABLE . ' WHERE poster_id = ' . $post_info['poster_id'] . ' + AND poster_ip <> ' . $db->sql_escape($post_info['poster_ip']) . ' GROUP BY poster_ip ORDER BY postings DESC'; $result = $db->sql_query($sql);