- Timestamp:
- 04/08/16 15:03:39 (9 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/main.cgi
r829 r830 1100 1100 if ($blockinfo->{revavail} || $blockinfo->{revpartial}) { 1101 1101 $page->param(showrev => ($blockinfo->{revavail} || $blockinfo->{revpartial}) ); 1102 $page->param(v6 => $cidr->{isv6}); 1103 $page->param(dnslink => $IPDB::dnsadmin_url); 1104 1105 # get the DNSAdmin zone ID(s) for this allocation. 1106 # Multiple zones should be rare, but are NOT impossible! 1107 my $revlist = getRevID($ip_dbh, user => $authuser, cidr => $blockinfo->{block}, 1108 location => $blockinfo->{location}); 1109 $page->param(revlist => $revlist); 1110 1102 1111 my $cached; 1103 1112 # Get rDNS info; duplicates a bit of getBlockData but also does the RPC call if possible … … 1284 1293 } 1285 1294 1295 # and now IPv6 1296 ##fixme: how to remove an entry? maybe treat empty host as "delete meeeee!"? 1297 if ($webvar{v6list}) { 1298 my @v6lines = split /\n/, $webvar{v6list}; 1299 foreach (@v6lines) { 1300 s/^\s+//; 1301 s/\s+$//; 1302 next if /^$/; 1303 my ($ip,$name) = split /,/; 1304 $iprev{"host_$ip"} = $name; 1305 } 1306 } 1307 1286 1308 # Merge with reserved freeblock 1287 1309 $updargs{fbmerge} = $webvar{expandme} if $webvar{expandme}; -
trunk/templates/edit.tmpl
r828 r830 39 39 <td class="heading">Reverse DNS:</td> 40 40 <TMPL_IF showrev> 41 <TMPL_IF v6> 42 <td class="regular"> 43 <div class="rdns revdata"> 44 <ul class="collapsible nocheckbox notalist"> 45 <li> 46 <label for="per-iplist">Enter per-IP reverse entries as comma-separated ip,host lines below (click to show) <img src="<TMPL_VAR NAME=webpath>/images/tree_open.png"></label> 47 <input type="checkbox" id="per-iplist" /> 48 <ul class="notalist"> 49 <li> 50 <textarea rows="8" cols="70" name="v6list" class="regular"><TMPL_VAR NAME=v6list></textarea> 51 View reverse zone(s): 52 <TMPL_LOOP NAME=revlist><a href="<TMPL_VAR NAME=dnslink>/dns.cgi?page=reclist&id=<TMPL_VAR NAME=rdns_id>&defrec=n&revrec=y"><TMPL_VAR NAME=revnet></a> 53 </TMPL_LOOP> 54 </li> 55 </ul> 56 </li> 57 </ul> 58 </div> 59 </td> 60 <TMPL_ELSE> 41 61 <td class="regular"> 42 62 Pattern: <TMPL_IF maychange> … … 63 83 </TMPL_LOOP> 64 84 </table> 85 <TMPL_IF revlist>View reverse zone(s): 86 <TMPL_LOOP NAME=revlist><a href="<TMPL_VAR NAME=dnslink>/dns.cgi?page=reclist&id=<TMPL_VAR NAME=rdns_id>&defrec=n&revrec=y"><TMPL_VAR NAME=revnet></a> 87 </TMPL_LOOP></TMPL_IF> 65 88 </li> 66 89 </ul> … … 70 93 </TMPL_IF> 71 94 </td> 95 </TMPL_IF> 72 96 <TMPL_ELSE> 73 97 <td>Reverse DNS information not currently available for this netblock</td>
Note:
See TracChangeset
for help on using the changeset viewer.