diff options
author | David M <davidmj@users.sourceforge.net> | 2006-12-17 16:11:48 +0000 |
---|---|---|
committer | David M <davidmj@users.sourceforge.net> | 2006-12-17 16:11:48 +0000 |
commit | f4c8c73a8b735925be215661b0879aa316c3d1f4 (patch) | |
tree | da5daa282f8a9aefe62ce5cac1352eed608f6555 /phpBB/includes/mcp/mcp_post.php | |
parent | 1e34820cd87837b545b310022ee460803d8c5b54 (diff) | |
download | forums-f4c8c73a8b735925be215661b0879aa316c3d1f4.tar forums-f4c8c73a8b735925be215661b0879aa316c3d1f4.tar.gz forums-f4c8c73a8b735925be215661b0879aa316c3d1f4.tar.bz2 forums-f4c8c73a8b735925be215661b0879aa316c3d1f4.tar.xz forums-f4c8c73a8b735925be215661b0879aa316c3d1f4.zip |
- 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
Diffstat (limited to 'phpBB/includes/mcp/mcp_post.php')
-rw-r--r-- | phpBB/includes/mcp/mcp_post.php | 9 |
1 files 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<a href="mailto:\2">\2</a>\3', $whois); - $whois = preg_replace('#(\s)(http:/{2}[^\s]*)(\s)#', '\1<a href="\2">\2</a>\3', $whois); - + $whois = preg_replace('#(\s)(ht{2}p:/{2}\S*)(\s)#', '\1<a href="\2">\2</a>\3', $whois); + $template->assign_vars(array( 'RETURN_POST' => sprintf($user->lang['RETURN_POST'], '<a href="' . append_sid("{$phpbb_root_path}mcp.$phpEx", "i=$id&mode=$mode&p=$post_id") . '">', '</a>'), '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); |