- Timestamp:
- 04/17/12 18:12:07 (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dns.cgi
r297 r308 1472 1472 $page->param(rwsoa => $webvar{rwsoa}) if $webvar{rwsoa}; 1473 1473 $page->param(rwns => $webvar{rwns}) if $webvar{rwns}; 1474 # This next one is arguably better on by default, but Breaking Things Is Bad, Mmmkay? 1475 $page->param(mergematching => $webvar{mergematching}) if $webvar{mergematching}; 1474 1476 $page->param(dominactive => 1) if (!$webvar{domactive} && $webvar{doit}); # eww. 1475 1477 $page->param(importdoms => $webvar{importdoms}) if $webvar{importdoms}; … … 1490 1492 } 1491 1493 1494 # Bizarre Things Happen when you AXFR a null-named zone. 1495 $webvar{importdoms} =~ s/^\s+//; 1492 1496 my @domlist = split /\s+/, $webvar{importdoms}; 1493 1497 my @results; … … 1495 1499 my %row; 1496 1500 my ($code,$msg) = importAXFR($dbh, $webvar{ifrom}, $domain, $webvar{group}, 1497 $webvar{zonestatus}, $webvar{rwsoa}, $webvar{rwns} );1501 $webvar{zonestatus}, $webvar{rwsoa}, $webvar{rwns}, $webvar{mergematching}); 1498 1502 $row{domok} = $msg if $code eq 'OK'; 1499 1503 if ($code eq 'WARN') { … … 1506 1510 } 1507 1511 $msg = "<br />\n".$msg if $msg =~ m|<br />|; 1508 logaction(domainID($dbh, $domain), $session->param("username"), $webvar{group},1509 "AXFR import $domain from $webvar{ifrom} ($code): $msg");1510 1512 $row{domain} = $domain; 1511 1513 push @results, \%row; -
trunk/templates/axfr.tmpl
r38 r308 35 35 </tr> 36 36 <tr class="datalinelight"> 37 <td>Merge records on A+PTR or AAAA+PTR match?</td> 38 <td><input type="checkbox" name="mergematching"<TMPL_IF mergematching> checked="checked"</TMPL_IF> /></td> 39 </tr> 40 <tr class="datalinelight"> 37 41 <td>Import as active?</td> 38 42 <td><input type="checkbox" name="domactive"<TMPL_UNLESS dominactive> checked="checked"</TMPL_UNLESS> /></td> … … 40 44 <tr class="datalinelight"> 41 45 <td valign="top">Domains to import:<br />(one per line)</td> 42 <td><textarea name="importdoms" rows="10" cols=" 25"><TMPL_IF importdoms><TMPL_VAR NAME=importdoms></TMPL_IF></textarea></td>46 <td><textarea name="importdoms" rows="10" cols="45"><TMPL_IF importdoms><TMPL_VAR NAME=importdoms></TMPL_IF></textarea></td> 43 47 </tr> 44 48 <tr class="datalinelight">
Note:
See TracChangeset
for help on using the changeset viewer.