diff options
author | Scott Ullrich <sullrich@pfsense.homeunix.net> | 2009-07-09 19:22:37 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.homeunix.net> | 2009-07-09 19:22:37 -0400 |
commit | d9252b1f7a274278315997f0e80903dd542c8ca7 (patch) | |
tree | 2a32145fb85070c9b36b2ed3e55797390f40d99c | |
parent | 35b6111233952f38ec771570bdf8f08bbe7d1787 (diff) | |
download | pfsense-d9252b1f7a274278315997f0e80903dd542c8ca7.zip pfsense-d9252b1f7a274278315997f0e80903dd542c8ca7.tar.gz |
Adding System: Advanced: Notifications to priv list
-rw-r--r-- | etc/inc/priv.defs.inc | 6 | ||||
-rw-r--r-- | 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"); <tr> <td width="22%" valign="top" class="vncell">IP Address</td> <td width="78%" class="vtable"> - <input name='ipaddress'><br/> + <input name='ipaddress' value=''><br/> This is the IP address that you would like to send growl notifications to. </td> </tr> <tr> <td width="22%" valign="top" class="vncell">Password</td> <td width="78%" class="vtable"> - <input name='password'><br/> + <input name='password' type='password' value=''><br/> Enter the password of the remote growl notification device. </td> </tr> @@ -141,7 +146,7 @@ include("head.inc"); </td> <td> <br/> - <input type='submit' value='Save'></form> + <input type='submit' id='Submit' name='Submit' value='Save'></form> </td> </tr> </table> |