source: trunk/templates/axfr.tmpl@ 575

Last change on this file since 575 was 493, checked in by Kris Deugau, 12 years ago

/trunk

Overhaul session handling; pure URL-based sessions are subject to
copy-paste session-stealing. Convert to cookie-based session tracking
instead. This also provides bonuses in terms of inlinks from other
utilities or copy-paste links.
While session-handling was in pieces, add "pick-up-where-I-left-off"
login handling so that logins don't always end up only on the initial
domain list. This is especially handy for copy-paste links.

Also clean up some of the docucomments, use the CGI::Simple object to
do 302 redirects, and bring the revzone default sort field setup into
line with other thing-lists.

File size: 2.6 KB
Line 
1<table class="wholepage"><tr>
2<TMPL_INCLUDE NAME="menu.tmpl">
3
4<td align="center" valign="top">
5
6<form action="<TMPL_VAR NAME=script_self>" method="post">
7<fieldset>
8<input type="hidden" name="page" value="axfr" />
9<input type="hidden" name="doit" value="y" />
10
11<table>
12<TMPL_IF errmsg><tr><td class="errhead" colspan="2">Error: <TMPL_VARNAME=errmsg></td></tr></TMPL_IF>
13<tr class="tableheader"><td align="center" colspan="2">Import domains via AXFR</td></tr>
14<tr class="datalinelight">
15 <td>Import from host:</td>
16 <td><input name="ifrom"<TMPL_IF ifrom> value="<TMPL_VAR NAME=ifrom>"</TMPL_IF> /></td>
17</tr>
18<tr class="datalinelight">
19 <td>Import to group:</td>
20 <td>
21 <select name="group">
22 <TMPL_LOOP NAME=grouplist><option value="<TMPL_VAR NAME=groupval>"<TMPL_IF NAME=groupactive> selected="selected"</TMPL_IF>><TMPL_VAR NAME=groupname></option>
23 </TMPL_LOOP></select>
24 </td>
25</tr>
26<tr class="datalinelight">
27 <td>Rewrite SOA to group default?</td>
28 <td><input type="checkbox" name="rwsoa"<TMPL_IF rwsoa> checked="checked"</TMPL_IF> /></td>
29</tr>
30<tr class="datalinelight">
31 <td>Rewrite NS to group default?</td>
32 <td><input type="checkbox" name="rwns"<TMPL_IF rwns> checked="checked"</TMPL_IF> /></td>
33</tr>
34<tr class="datalinelight">
35 <td>Force all TTLs to new value?</td>
36 <td><input type="checkbox" name="forcettl"<TMPL_IF forcettl> checked="checked"</TMPL_IF> /><input name="newttl" size="7"<TMPL_IF newttl> value="<TMPL_VAR NAME=newttl>"</TMPL_IF> /></td>
37</tr>
38<tr class="datalinelight">
39 <td>Merge records on A+PTR or AAAA+PTR match?</td>
40 <td><input type="checkbox" name="mergematching"<TMPL_IF mergematching> checked="checked"</TMPL_IF> /></td>
41</tr>
42<tr class="datalinelight">
43 <td>Import as active?</td>
44 <td><input type="checkbox" name="domactive"<TMPL_UNLESS dominactive> checked="checked"</TMPL_UNLESS> /></td>
45</tr>
46<tr class="datalinelight">
47 <td valign="top">Domains to import:<br />(one per line)</td>
48 <td><textarea name="importdoms" rows="10" cols="45"><TMPL_IF importdoms><TMPL_VAR NAME=importdoms></TMPL_IF></textarea></td>
49</tr>
50<tr class="datalinelight">
51 <td colspan="2" align="center"><input type="submit" value=" Import domains " /></td>
52</tr>
53</table>
54
55</fieldset>
56</form>
57
58<TMPL_IF axfrresults>
59<br />
60<table>
61<tr class="tableheader"><td colspan="2">AXFR Import Results</td></tr>
62<TMPL_LOOP NAME=axfrresults>
63<tr class="datalinelight">
64 <td><TMPL_VAR NAME=domain></td>
65<TMPL_IF domok> <td>Imported OK</td>
66<TMPL_ELSE><TMPL_IF domwarn> <td class="warn">Import OK but:<br />
67<TMPL_VAR NAME=domwarn></td>
68<TMPL_ELSE> <td class="err">Failed: <TMPL_VAR NAME=domerr></td>
69</TMPL_IF></TMPL_IF>
70</tr>
71</TMPL_LOOP>
72</table>
73</TMPL_IF>
74
75</td>
76</tr>
77</table>
Note: See TracBrowser for help on using the repository browser.