| 
            Last change
 on this file since 279 was             223, checked in by Kris Deugau, 21 years ago           | 
        
        
          | 
             
/branches/acl 
 
All access to add new records should be ACL-ified.  Users without 
the "a" ACL option cannot add a new master block, or click the 
"Add new assignment" link;  the links aren't there to click. 
They cannot assign existing free blocks;  the link has been 
removed.  Checks are also done later in the processing to make 
sure that a crafted URL can't get around the restrictions. 
 
 
printHeader() in CommonWeb.pm has been updated to allow replacement 
of arbitrary elements in the header.inc file.  It is now called 
*once* at the beginning of main.cgi to allow the "Add new assignment" 
link to be disabled. 
 
 
A new sub, exitError(), has been added to deal with the (rare) 
case where the code must exit with an error before anything (like 
HTTP headers, as required for CGI) has been printed. 
 
 
           | 
        
        
          | 
            File size:
            498 bytes
           | 
        
      
      
| Line |   | 
|---|
| 1 | <div class="indent">
 | 
|---|
| 2 | <div class="heading">Add new master IP block</div><br>
 | 
|---|
| 3 | <table class="regular" bgcolor="black" cellspacing="1" cellpadding="1">
 | 
|---|
| 4 | <form method="POST" action="/ip/cgi-bin/main.cgi" class="regular">
 | 
|---|
| 5 | <tr class="color1"><td>Master block to add: (CIDR) </td><td><input type=text name=cidr></td></tr> <tr class="color2">
 | 
|---|
| 6 | <td class="center" colspan="2"><input type="submit" value="  Assign  "></td>
 | 
|---|
| 7 | <input type="hidden" name="action" value="newmaster">
 | 
|---|
| 8 | </form>
 | 
|---|
| 9 | </tr>
 | 
|---|
| 10 | </table>
 | 
|---|
| 11 | </div>
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.