From addbcae775ae23b6fa41d76c419cd54f73c22d8b Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 17 Apr 2010 21:56:11 -0400 Subject: Fix growl issues. Ticket #518 Ticket #519 Submibtted-by: Blake Skinner --- usr/local/www/system_advanced_notifications.php | 27 +++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'usr/local/www/system_advanced_notifications.php') diff --git a/usr/local/www/system_advanced_notifications.php b/usr/local/www/system_advanced_notifications.php index 1905a51..6b8b121 100644 --- a/usr/local/www/system_advanced_notifications.php +++ b/usr/local/www/system_advanced_notifications.php @@ -46,6 +46,17 @@ if($config['notifications']['growl']['password']) if($config['notifications']['growl']['ipaddress']) $pconfig['ipaddress'] = $config['notifications']['growl']['ipaddress']; +if($config['notifications']['growl']['notification_name']) + $pconfig['notification_name'] = $config['notifications']['growl']['notification_name']; +else + $pconfig['notification_name'] = 'pfSense growl alert'; + +if($config['notifications']['growl']['name']) + $pconfig['name'] = $config['notifications']['growl']['name']; +else + $pconfig['name'] = 'PHP-Growl'; + + // SMTP if($config['notifications']['smtp']['ipaddress']) $pconfig['smtpipaddress'] = $config['notifications']['smtp']['ipaddress']; @@ -81,6 +92,8 @@ if ($_POST) { // Growl $config['notifications']['growl']['ipaddress'] = $_POST['ipaddress']; $config['notifications']['growl']['password'] = $_POST['password']; + $config['notifications']['growl']['name'] = $_POST['name']; + $config['notifications']['growl']['notification_name'] = $_POST['notification_name']; // SMTP $config['notifications']['smtp']['ipaddress'] = $_POST['smtpipaddress']; @@ -148,6 +161,20 @@ include("head.inc"); Growl + Registration Name + + '>
+ Enter the name to register with the Growl server (default: PHP-Growl). + + + + Notification Name + + '>
+ Enter a name for the Growl notifications (default: pfSense growl alert). + + + IP Address '>
-- cgit v1.1