Changeset 286 for branches/stable/cgi-bin/admin.cgi
- Timestamp:
- 09/23/05 15:54:31 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/cgi-bin/admin.cgi
r269 r286 301 301 302 302 print "<hr>Users with access:\n<table border=1>\n"; 303 print "<tr><td></td><td align=center colspan=3>General access</td></tr>\n"; 303 304 print "<tr><td>Username</td><td>Add new</td><td>Change</td>". 304 "<td>Delete</td><td> Admin user</td></tr>\n".305 "<td>Delete</td><td>Systems/Networking</td><td>Admin user</td></tr>\n". 305 306 "<form action=admin.cgi method=POST>\n"; 306 307 $sth = $ip_dbh->prepare("select username,acl from users order by username"); … … 314 315 "></td><td><input type=checkbox name=change".($data[1] =~ /c/ ? ' checked=y' : ''). 315 316 "></td><td><input type=checkbox name=del".($data[1] =~ /d/ ? ' checked=y' : ''). 317 "></td><td><input type=checkbox name=sysnet".($data[1] =~ /s/ ? ' checked=y' : ''). 316 318 "></td><td><input type=checkbox name=admin".($data[1] =~ /A/ ? ' checked=y' : ''). 317 319 qq(></td><td><input type=submit value="Update"></td></form>\n). … … 326 328 my $acl = 'b'; 327 329 if ($webvar{admin} eq 'on') { 328 $acl .= "acd A";330 $acl .= "acdsA"; 329 331 } else { 330 332 $acl .= ($webvar{add} eq 'on' ? 'a' : ''). 331 333 ($webvar{change} eq 'on' ? 'c' : ''). 332 ($webvar{del} eq 'on' ? 'd' : ''); 334 ($webvar{del} eq 'on' ? 'd' : ''). 335 ($webvar{sysnet} eq 'on' ? 's' : ''); 333 336 } 334 337 print "New ACL: $acl<br>\n";
Note:
See TracChangeset
for help on using the changeset viewer.