Changeset 675 for trunk/templates


Ignore:
Timestamp:
01/15/15 17:52:26 (10 years ago)
Author:
Kris Deugau
Message:

/trunk

Extend per-IP rDNS through the "confirm add" page and the "edit" page. See #1.

  • Add flag in getBlockRDNS return to indicate if the results are from local caching instead of RPC results. There isn't really a clear way to globally flag "RPC server is up".
  • Add a sub to retrieve per-IP reverse DNS information for a passed CIDR range. Not limited in IPDB.pm, but dnsadmin will refuse to return anything for a block larger than /24 (v4) or /120 (v6) - an 8 bit inverse mask.
  • Use the new sub on editing a small(ish) non-pool block. CSS magic notwithstanding, handling more than 32 IPs in a list like this is awkward.
Location:
trunk/templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/assign.tmpl

    r672 r675  
    7373<tr class="<TMPL_VAR NAME=rowa>">
    7474<td>Reverse DNS pattern:</td>
    75 <td><input type="text" name="rdns" value="<TMPL_VAR NAME=rdns>" size="40"><input type="button" value=" ? " onclick="helpRDNS()" class="regular"></td>
     75<td>
     76<input type="text" name="rdns" value="<TMPL_VAR NAME=rdns>" size="40">
     77<input type="button" value=" ? " onclick="helpRDNS()" class="regular">
     78<TMPL_IF cached>(cached)</TMPL_IF>
     79</td>
    7680</tr>
    7781
  • trunk/templates/edit.tmpl

    r634 r675  
    2222
    2323<tr class="row1">
    24 <td class="heading">Reverse DNS pattern:</td>
    25 <td class="regular">
    26 <TMPL_IF maychange>
     24<td class="heading">Reverse DNS:</td>
     25<td class="regular">
     26Pattern: <TMPL_IF maychange>
    2727<input type="text" name="rdns" size="40" value="<TMPL_VAR NAME=rdns>">
    2828<TMPL_ELSE>
     
    3030</TMPL_IF>
    3131<input type="button" value=" ? " onclick="helpRDNS()" class="regular">
     32<TMPL_IF cached>(cached)</TMPL_IF>
     33<TMPL_IF r_iplist>
     34<div class="rdns revdata">
     35<ul class="collapsible notalist">
     36<li>
     37<label for="per-iplist">Per-IP reverse entries (click to show) <img src="<TMPL_VAR NAME=webpath>/images/tree_open.png"></label>
     38<input type="checkbox" id="per-iplist" />
     39<ul class="notalist">
     40<li>
     41<table>
     42<TMPL_LOOP name="r_iplist">
     43<tr>
     44<td><TMPL_VAR NAME=r_ip></td>
     45<td><input class="host" name="host_<TMPL_VAR NAME=r_ip>" value="<TMPL_VAR NAME=iphost>"></td>
     46</tr>
     47</TMPL_LOOP>
     48</table>
     49</li>
     50</ul>
     51</li>
     52</ul>
     53</div>
     54</TMPL_IF>
    3255</td>
    3356</tr>
Note: See TracChangeset for help on using the changeset viewer.