mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
#i51 - #i63 - #i64
git-svn-id: file:///svn/phpbb/trunk@8095 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -47,13 +47,7 @@ class acp_users
|
||||
|
||||
$user_ip = request_var('user_ip', '');
|
||||
$domain = gethostbyaddr($user_ip);
|
||||
$ipwhois = '';
|
||||
|
||||
if ($ipwhois = user_ipwhois($user_ip))
|
||||
{
|
||||
$ipwhois = preg_replace('#(\s)([\w\-\._\+]+@[\w\-\.]+)(\s)#', '\1<a href="mailto:\2">\2</a>\3', $ipwhois);
|
||||
$ipwhois = preg_replace('#(\s)(http:/{2}[^\s]*)(\s)#', '\1<a href="\2">\2</a>\3', $ipwhois);
|
||||
}
|
||||
$ipwhois = user_ipwhois($user_ip);
|
||||
|
||||
$template->assign_vars(array(
|
||||
'MESSAGE_TITLE' => sprintf($user->lang['IP_WHOIS_FOR'], $domain),
|
||||
|
Reference in New Issue
Block a user