diff options
Diffstat (limited to 'etc/inc/notices.inc')
-rw-r--r-- | etc/inc/notices.inc | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/etc/inc/notices.inc b/etc/inc/notices.inc index 51605db..6880844 100644 --- a/etc/inc/notices.inc +++ b/etc/inc/notices.inc @@ -346,9 +346,12 @@ function notify_via_growl($message) { global $config; $growl_ip = $config['notifications']['growl']['ipaddress']; $growl_password = $config['notifications']['growl']['password']; + $growl_name = $config['notifications']['growl']['name']; + $growl_notification = $config['notifications']['growl']['notification_name']; + if(!empty($growl_ip)) { - $growl = new Growl($growl_ip, $growl_password); - $growl->notify("pfSense growl alert", "pfSense", "{$message}"); + $growl = new Growl($growl_ip, $growl_password, $growl_name); + $growl->notify("{$growl_notification}", "pfSense", "{$message}"); } } @@ -365,8 +368,12 @@ function register_via_growl() { global $config; $growl_ip = $config['notifications']['growl']['ipaddress']; $growl_password = $config['notifications']['growl']['password']; + $growl_name = $config['notifications']['growl']['name']; + $growl_notification = $config['notifications']['growl']['notification_name']; + if($growl_ip) { - $growl = new Growl($growl_ip, $growl_password); + $growl = new Growl($growl_ip, $growl_password, $growl_name); + $growl->addNotification($growl_notification); $growl->register(); } } |