source: trunk/templates/admin/main.tmpl@ 541

Last change on this file since 541 was 541, checked in by Kris Deugau, 11 years ago

/trunk

Start on SQL in admin.cgi. See #34.

  • Convert Q-n-D allocation list on main page to use existing getTypeList()
  • Convert timestamp-update master block list to use new getMasterList(), with a flag set to return the last-modified time. Also convert main.cgi new assignment page to use this, with the flag set to not return the lastmod.
  • Tweak admin main template to match

While following the code for the master block list, I also removed
several useless globals (@masterblocks, %allocated, %free, and
%routed) since they were only used originally in one place (index
page from main.cgi), obsoleted by changes in r523, and in fact got
overridden locally before that anyway.

File size: 2.2 KB
Line 
1<hr>
2<div>WARNING: There are FAR fewer controls on what you can do here. Use the
3main interface if at all possible.</div>
4<hr>
5<form action="admin.cgi" method="POST"><fieldset><legend class="noshow">&nbsp;</legend>
6
7<input type="hidden" name="action" value="alloc">
8Allocate block/IP: <input name="cidr"> as
9<select name="alloctype">
10<TMPL_LOOP NAME=typelist><option value="<TMPL_VAR NAME=type>"<TMPL_IF sel> selected</TMPL_IF>><TMPL_VAR NAME=listname></option>
11</TMPL_LOOP>
12</select>
13to <input name="custid">
14<input type="submit" value=" GIMME!! ">
15</fieldset></form>
16
17<hr>
18<form action="admin.cgi" method="POST"><fieldset><legend class="noshow">&nbsp;</legend>
19<input type="hidden" name="action" value="alloctweak">
20Manually update allocation data in this /24: <input name="allocfrom">
21<input type="submit" value="Show allocations">
22</fieldset></form>
23
24<hr>
25<div>
26rWHOIS tools:
27<form action="admin.cgi" method="POST"><fieldset><legend class="noshow">&nbsp;</legend>
28<input type="hidden" name="action" value="touch">
29Bump "last updated" timestamp on this master:
30<select name="whichmaster">
31<TMPL_LOOP NAME=masterlist><option value="<TMPL_VAR NAME=master>"><TMPL_VAR NAME=master> (<TMPL_VAR NAME=mtime>)</option>
32</TMPL_LOOP>
33</select>
34<input type="submit" value="Update timestamp"> (Sets timestamp to "now")
35</fieldset></form>
36
37<a href="admin.cgi?action=listcust">Edit customer data for rWHOIS</a> - data used for
38blocks with the SWIP box checkmarked. Links to edit/add data are on this page.
39</div>
40
41<hr>
42<div>
43<a href="admin.cgi?action=showpools">List IP Pools</a> for manual tweaking and updates
44</div>
45
46<hr>
47<div>
48<a href="admin.cgi?action=showusers">Manage users</a> (add/remove users; change
49internal access controls - note that this does NOT include IP-based limits)<br>
50<a href="admin.cgi?action=emailnotice">Manage email notice options</a> (pick which events
51and allocation types cause notifications; configure recipient lists for notices)
52</div>
53
54<hr>
55<div>
56Consistency check tools<br>
57<a href="consistency-check.pl">General</a>: Check general netblock consistency.<br>
58
59<a href="freespace.pl">Free space</a>: List total and aggregate free space. Does not
60include private networks (192.168.0.0/16, 172.16.0.0/12, 10.0.0.0/8)
61</div>
Note: See TracBrowser for help on using the repository browser.