From d9252b1f7a274278315997f0e80903dd542c8ca7 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 9 Jul 2009 19:22:37 -0400 Subject: Adding System: Advanced: Notifications to priv list --- etc/inc/priv.defs.inc | 6 ++++++ usr/local/www/system_advanced_notifications.php | 11 ++++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/etc/inc/priv.defs.inc b/etc/inc/priv.defs.inc index cc9af58..0c6749c 100644 --- a/etc/inc/priv.defs.inc +++ b/etc/inc/priv.defs.inc @@ -768,6 +768,12 @@ $priv_list['page-system-advancedfunctions']['descr'] = "Allow access to the 'Sys $priv_list['page-system-advancedfunctions']['match'] = array(); $priv_list['page-system-advancedfunctions']['match'][] = "system_advanced.php*"; +$priv_list['page-system-advancedfunctions'] = array(); +$priv_list['page-system-advancedfunctions']['name'] = "WebCfg - System: Advanced: Notifications"; +$priv_list['page-system-advancedfunctions']['descr'] = "Allow access to the 'System: Advanced: Notifications' page."; +$priv_list['page-system-advancedfunctions']['match'] = array(); +$priv_list['page-system-advancedfunctions']['match'][] = "system_advanced_notifications.php*"; + $priv_list['page-system-advancedfunctions-createcertificates'] = array(); $priv_list['page-system-advancedfunctions-createcertificates']['name'] = "WebCfg - System: Advanced functions: Create Certificates page"; $priv_list['page-system-advancedfunctions-createcertificates']['descr'] = "Allow access to the 'System: Advanced functions: Create Certificates' page."; diff --git a/usr/local/www/system_advanced_notifications.php b/usr/local/www/system_advanced_notifications.php index b15a9dd..710668f 100644 --- a/usr/local/www/system_advanced_notifications.php +++ b/usr/local/www/system_advanced_notifications.php @@ -41,6 +41,11 @@ if (!is_array($config['notifications']['growls'])) $a_tunable = &$config['notifications']['growl']; +if($a_tunable['password']) + $pconfig['password'] = $a_tunable['password']; +if($a_tunable['ipaddress']) + $pconfig['ipaddress'] = $a_tunable['ipaddress']; + if ($_POST) { unset($input_errors); @@ -124,14 +129,14 @@ include("head.inc"); IP Address -
+
This is the IP address that you would like to send growl notifications to. Password -
+
Enter the password of the remote growl notification device. @@ -141,7 +146,7 @@ include("head.inc");
- + -- cgit v1.1