Changeset 284 for trunk/cgi-bin/admin.cgi
- Timestamp:
- 09/21/05 16:30:31 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/admin.cgi
r259 r284 285 285 286 286 print "<hr>Users with access:\n<table border=1>\n"; 287 print "<tr><td></td><td align=center colspan=3>General access</td></tr>\n"; 287 288 print "<tr><td>Username</td><td>Add new</td><td>Change</td>". 288 "<td>Delete</td><td> Admin user</td></tr>\n".289 "<td>Delete</td><td>Systems/Networking</td><td>Admin user</td></tr>\n". 289 290 "<form action=admin.cgi method=POST>\n"; 290 291 $sth = $ip_dbh->prepare("select username,acl from users order by username"); … … 298 299 "></td><td><input type=checkbox name=change".($data[1] =~ /c/ ? ' checked=y' : ''). 299 300 "></td><td><input type=checkbox name=del".($data[1] =~ /d/ ? ' checked=y' : ''). 301 "></td><td><input type=checkbox name=sysnet".($data[1] =~ /s/ ? ' checked=y' : ''). 300 302 "></td><td><input type=checkbox name=admin".($data[1] =~ /A/ ? ' checked=y' : ''). 301 303 qq(></td><td><input type=submit value="Update"></td></form>\n). … … 310 312 my $acl = 'b'; 311 313 if ($webvar{admin} eq 'on') { 312 $acl .= "acd A";314 $acl .= "acdsA"; 313 315 } else { 314 316 $acl .= ($webvar{add} eq 'on' ? 'a' : ''). 315 317 ($webvar{change} eq 'on' ? 'c' : ''). 316 ($webvar{del} eq 'on' ? 'd' : ''); 318 ($webvar{del} eq 'on' ? 'd' : ''). 319 ($webvar{sysnet} eq 'on' ? 's' : ''); 317 320 } 318 321 print "New ACL: $acl<br>\n";
Note:
See TracChangeset
for help on using the changeset viewer.