Changeset 308 for trunk/dns.cgi


Ignore:
Timestamp:
04/17/12 18:12:07 (13 years ago)
Author:
Kris Deugau
Message:

/trunk

UI-layer changes to move action logging for importAXFR() out of
dns.cgi (see #35) and introduce a UI checkbox to merge matching
A/AAAA and PTR records on import (see #26, sort of)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dns.cgi

    r297 r308  
    14721472  $page->param(rwsoa => $webvar{rwsoa}) if $webvar{rwsoa};
    14731473  $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};
    14741476  $page->param(dominactive => 1) if (!$webvar{domactive} && $webvar{doit});     # eww.
    14751477  $page->param(importdoms => $webvar{importdoms}) if $webvar{importdoms};
     
    14901492    }
    14911493
     1494    # Bizarre Things Happen when you AXFR a null-named zone.
     1495    $webvar{importdoms} =~ s/^\s+//;
    14921496    my @domlist = split /\s+/, $webvar{importdoms};
    14931497    my @results;
     
    14951499      my %row;
    14961500      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});
    14981502      $row{domok} = $msg if $code eq 'OK';
    14991503      if ($code eq 'WARN') {
     
    15061510      }
    15071511      $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");
    15101512      $row{domain} = $domain;
    15111513      push @results, \%row;
Note: See TracChangeset for help on using the changeset viewer.