source: branches/acl/header.inc@ 289

Last change on this file since 289 was 223, checked in by Kris Deugau, 20 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: 2.8 KB
Line 
1<html>
2<head>
3 <title>TEST [IP Database v2] TEST</title>
4 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
5 <link rel="stylesheet" type="text/css" href="/ip/ipdb.css">
6
7<script language=javascript>
8function openHelp() {
9 window.open("/ip/help.html", "help_window", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=700,height=300")
10}
11function openTables() {
12 window.open("/ip/tables.html", "subnet_tables", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=600,height=250")
13}
14function helpAllocTypes() {
15 window.open("/ip/alloctypes.html", "alloc_window", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=750,height=550")
16}
17function popNotes(page) {
18 window.open(page, "IPDB_notes", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=400,height=300");
19}
20</script>
21
22</head>
23<body bgcolor="#ffff00" text="#000000" link="#000000" vlink="#000000" alink="#ff0000" leftmargin="0" topmargin="0" marginwidth="0" style="font-family: helvetica">
24
25<table width="98%" border="0" cellspacing="0" cellpadding="0" height="0">
26 <tbody><tr>
27 <td nowrap=""><a href="/ip/index.shtml" target="_blank"><img src="/ip/images/logo.png" width="167" height="60" border="0" alt="[ Logo ]"></a></td>
28 <td nowrap="" valign="bottom">
29 <div align="right"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="2">
30 <a href="/ip/index.shtml">
31 TEST [IP Database v2 Home] TEST</a></font></b></div>
32 </td>
33 </tr>
34</tbody></table>
35
36<table width="100%" border="0" cellspacing="0" cellpadding="0"
37<tr bgcolor="#000000"><td></td></tr></table>
38<!-- end line and top. -->
39<table width="100%" cellspacing="0">
40<tr class="color1">
41<td width=10></td>
42<form method="POST" action="/ip/cgi-bin/main.cgi">
43<td>Search:
44<input type="text" name="input" size="20" maxlength="50" class="regular">
45<input type=radio name="searchfor" value="ipblock">IP/IP block
46<input type=radio name="searchfor" value="desc" checked=yes>Description
47<input type=radio name="searchfor" value="cust">Customer ID
48<input type=hidden name=page value="1">
49<input type=hidden name=action value="search">
50<input type=submit value="Go!" class="heading">
51<input type="button" value=" Help? " onclick="openHelp()" class="regular">
52&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
53$$EXTRA0$$
54</td>
55</form>
56</tr>
57</table>
58<!-- start another line -->
59<!-- There has GOT to be a better way to do this... Ugh. -->
60<table width="100%" border="0" cellspacing="0" cellpadding="0" height="1" bgcolor="#000000">
61 <tbody><tr>
62 <td></td>
63 </tr>
64</tbody></table>
65<table width="98%" border=0><tr><td align=right><a href="javascript:popNotes('/ip/changes.html')">Recent Changes</a></td></tr></table>
66<br>
Note: See TracBrowser for help on using the repository browser.