Changeset 221 for branches/acl/cgi-bin/main.cgi
- Timestamp:
- 04/13/05 13:24:15 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/acl/cgi-bin/main.cgi
r214 r221 22 22 openlog "IPDB","pid","local2"; 23 23 24 # Present HTTP AUTH headers, as well as opening content-type. 25 #print 'WWW-Authenticate: Basic realm="ViaNet IP Database"\n'; 24 26 # Collect the username from HTTP auth. If undefined, we're in a test environment. 25 27 my $authuser; … … 171 173 print qq(<div align=right style="position: absolute; right: 30px;">). 172 174 qq(<a href="/ip/cgi-bin/admin.cgi">Admin tools</a></div><br>\n) 173 if $ authuser =~ /kdeugau|jodyh|jipp/;175 if $IPDBacl{$authuser} =~ /A/; 174 176 175 177 # We print the footer here, so we don't have to do it elsewhere. … … 448 450 } 449 451 print "</table>\n"; 450 print qq(<a href="/ip/addmaster.shtml">Add new master block</a><br><br>\n); 452 if ($IPDBacl{$authuser} =~ /a/) { 453 print qq(<a href="/ip/addmaster.shtml">Add new master block</a><br><br>\n); 454 } 451 455 print "Note: Free blocks noted here include both routed and unrouted blocks.\n"; 452 456
Note:
See TracChangeset
for help on using the changeset viewer.