Changeset 437
- Timestamp:
- 10/30/12 12:23:30 (12 years ago)
- Location:
- branches/stable
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable
-
branches/stable/DNSDB.pm
r434 r437 1744 1744 my $domain = shift; 1745 1745 my $group = shift; 1746 my $status = shift || 1; 1746 my $status = shift; 1747 $status = (defined($status) ? $status : 0); # force sane semantics, and allow passing "null" (inactive) status 1747 1748 my $rwsoa = shift || 0; 1748 1749 my $rwns = shift || 0; 1750 my $newttl = shift; 1749 1751 1750 1752 ##fixme: add mode to delete&replace, merge+overwrite, merge new? … … 1801 1803 while (my $rr = $res->axfr_next()) { 1802 1804 my $type = $rr->type; 1805 my $ttl = ($newttl ? $newttl : $rr->ttl); # allow force-override TTLs 1803 1806 1804 1807 my $sql = "INSERT INTO records (domain_id,host,type,ttl,val"; -
branches/stable/dns.cgi
r432 r437 1462 1462 $page->param(rwsoa => $webvar{rwsoa}) if $webvar{rwsoa}; 1463 1463 $page->param(rwns => $webvar{rwns}) if $webvar{rwns}; 1464 $page->param(forcettl => $webvar{forcettl}) if $webvar{forcettl}; 1465 $page->param(newttl => $webvar{newttl}) if $webvar{newttl}; 1464 1466 $page->param(dominactive => 1) if (!$webvar{domactive} && $webvar{doit}); # eww. 1465 1467 $page->param(importdoms => $webvar{importdoms}) if $webvar{importdoms}; … … 1485 1487 my %row; 1486 1488 my ($code,$msg) = importAXFR($dbh, $webvar{ifrom}, $domain, $webvar{group}, 1487 $webvar{domstatus}, $webvar{rwsoa}, $webvar{rwns} );1489 $webvar{domstatus}, $webvar{rwsoa}, $webvar{rwns}, ($webvar{forcettl}); 1488 1490 $row{domok} = $msg if $code eq 'OK'; 1489 1491 if ($code eq 'WARN') { -
branches/stable/templates/axfr.tmpl
r38 r437 33 33 <td>Rewrite NS to group default?</td> 34 34 <td><input type="checkbox" name="rwns"<TMPL_IF rwns> checked="checked"</TMPL_IF> /></td> 35 </tr> 36 <tr class="datalinelight"> 37 <td>Force all TTLs to new value?</td> 38 <td><input type="checkbox" name="forcettl"<TMPL_IF forcettl> checked="checked"</TMPL_IF> /><input name="newttl" size="7"<TMPL_IF newttl> value="<TMPL_VAR NAME=newttl>"</TMPL_IF> /></td> 35 39 </tr> 36 40 <tr class="datalinelight">
Note:
See TracChangeset
for help on using the changeset viewer.