NT_LAN_CB_2);
}
if (!function_exists('notify_cboxpost')) {
function notify_cboxpost($data) {
global $nt;
$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);
}
}
*/
// v2.x Standard
class chatbox_menu_notify extends notify // plugin-folder + '_notify'
{
function config()
{
$config = array();
$config[] = array(
'name' => NT_LAN_CB_2, // "Message posted"
'function' => "cboxpost",
'category' => ''
);
return $config;
}
function cboxpost($data)
{
$message = NT_LAN_CB_3.': '.USERNAME.' ('.NT_LAN_CB_4.': '.e107::getIPHandler()->ipDecode($data['ip']).' )
';
$message .= NT_LAN_CB_5.':
'.$data['cmessage'].'
';
$this->send('cboxpost', NT_LAN_CB_6, $message);
}
}