Changeset 308 for trunk/dns.cgi
- Timestamp:
- 04/17/12 18:12:07 (13 years ago)
- File:
-
- 1 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;
Note:
See TracChangeset
for help on using the changeset viewer.