diff options
-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> |