From 0a08eec5102356a0b711d2a778d35a01a89dc690 Mon Sep 17 00:00:00 2001 From: SteveD Date: Fri, 3 May 2013 20:44:56 +0100 Subject: [PATCH] Issue #200 - format IP addresses --- e107_plugins/chatbox_menu/e_notify.php | 72 +++++++++++++------------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/e107_plugins/chatbox_menu/e_notify.php b/e107_plugins/chatbox_menu/e_notify.php index 11801672c..c88e05d45 100644 --- a/e107_plugins/chatbox_menu/e_notify.php +++ b/e107_plugins/chatbox_menu/e_notify.php @@ -1,36 +1,36 @@ - NT_LAN_CB_2); -} - - -if (!function_exists('notify_cboxpost')) { - function notify_cboxpost($data) { - global $nt; - include_lan(e_PLUGIN."chatbox_menu/languages/".e_LANGUAGE."/".e_LANGUAGE.".php"); - $message = NT_LAN_CB_3.': '.USERNAME.' ('.NT_LAN_CB_4.': '.$data['ip'].' )
'; - $message .= NT_LAN_CB_5.':
'.$data['cmessage'].'

'; - $nt -> send('cboxpost', NT_LAN_CB_6, $message); - } -} - + NT_LAN_CB_2); +} + + +if (!function_exists('notify_cboxpost')) { + function notify_cboxpost($data) { + global $nt; + include_lan(e_PLUGIN."chatbox_menu/languages/".e_LANGUAGE."/".e_LANGUAGE.".php"); + $message = NT_LAN_CB_3.': '.USERNAME.' ('.NT_LAN_CB_4.': '.e107::getIPHandler()->ipDecode($data['ip']).' )
'; + $message .= NT_LAN_CB_5.':
'.$data['cmessage'].'

'; + $nt -> send('cboxpost', NT_LAN_CB_6, $message); + } +} +