Project

General

Profile

« Previous | Next » 

Revision d9252b1f

Added by Scott Ullrich about 16 years ago

Adding System: Advanced: Notifications to priv list

View differences:

etc/inc/priv.defs.inc
768 768
$priv_list['page-system-advancedfunctions']['match'] = array();
769 769
$priv_list['page-system-advancedfunctions']['match'][] = "system_advanced.php*";
770 770

  
771
$priv_list['page-system-advancedfunctions'] = array();
772
$priv_list['page-system-advancedfunctions']['name'] = "WebCfg - System: Advanced: Notifications";
773
$priv_list['page-system-advancedfunctions']['descr'] = "Allow access to the 'System: Advanced: Notifications' page.";
774
$priv_list['page-system-advancedfunctions']['match'] = array();
775
$priv_list['page-system-advancedfunctions']['match'][] = "system_advanced_notifications.php*";
776

  
771 777
$priv_list['page-system-advancedfunctions-createcertificates'] = array();
772 778
$priv_list['page-system-advancedfunctions-createcertificates']['name'] = "WebCfg - System: Advanced functions: Create Certificates page";
773 779
$priv_list['page-system-advancedfunctions-createcertificates']['descr'] = "Allow access to the 'System: Advanced functions: Create Certificates' page.";
usr/local/www/system_advanced_notifications.php
41 41

  
42 42
$a_tunable = &$config['notifications']['growl'];
43 43

  
44
if($a_tunable['password']) 
45
	$pconfig['password'] = $a_tunable['password'];
46
if($a_tunable['ipaddress']) 
47
	$pconfig['ipaddress'] = $a_tunable['ipaddress'];
48

  
44 49
if ($_POST) {
45 50

  
46 51
	unset($input_errors);
......
124 129
						<tr>
125 130
							<td width="22%" valign="top" class="vncell">IP Address</td>
126 131
							<td width="78%" class="vtable">
127
								<input name='ipaddress'><br/>
132
								<input name='ipaddress' value=''><br/>
128 133
								This is the IP address that you would like to send growl notifications to.
129 134
							</td>
130 135
						</tr>
131 136
						<tr>
132 137
							<td width="22%" valign="top" class="vncell">Password</td>
133 138
							<td width="78%" class="vtable">
134
								<input name='password'><br/>
139
								<input name='password' type='password' value=''><br/>
135 140
								Enter the password of the remote growl notification device.
136 141
							</td>
137 142
						</tr>
......
141 146
							</td>
142 147
							<td>
143 148
								<br/>
144
								<input type='submit' value='Save'></form>
149
								<input type='submit' id='Submit' name='Submit' value='Save'></form>
145 150
							</td>
146 151
						</tr>
147 152
					</table>

Also available in: Unified diff