Changeset 725 for branches/stable/dns.cgi
- Timestamp:
- 06/20/16 13:18:07 (9 years ago)
- Location:
- branches/stable
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable
-
branches/stable/dns.cgi
r690 r725 25 25 use CGI::Simple; 26 26 use HTML::Template; 27 use CGI::Session ;27 use CGI::Session '-ip_match'; 28 28 use Net::DNS; 29 29 use DBI; … … 158 158 } 159 159 if (defined($webvar{filter})) { 160 $session->param($webvar{page}.'filter', '') if !$session->param($webvar{page}.'filter'); 160 161 if ($webvar{filter} ne $session->param($webvar{page}.'filter')) { 161 162 $uri_self =~ s/\&offset=[^&]//; … … 528 529 529 530 fill_grouplist("grouplist"); 530 my $loclist = $dnsdb->getLocDropdown($curgroup); 531 $page->param(loclist => $loclist); 531 fill_loclist($curgroup, $webvar{defloc} ? $webvar{defloc} : ''); 532 532 533 533 # prepopulate revpatt with the matching default record … … 1525 1525 unless ($permissions{admin} || $permissions{location_create}); 1526 1526 1527 my ($code,$msg) = $dnsdb->addLoc($curgroup, $webvar{locname}, $webvar{comments}, $webvar{iplist}); 1527 my ($code,$msg) = $dnsdb->addLoc(group => $curgroup, desc => $webvar{locname}, 1528 comments => $webvar{comments}, iplist => $webvar{iplist}); 1528 1529 1529 1530 if ($code eq 'OK' || $code eq 'WARN') { … … 1621 1622 } elsif ($webvar{page} eq 'dnsq') { 1622 1623 1623 $page->param(qfor => $webvar{qfor}) if $webvar{qfor}; 1624 if ($webvar{qfor}) { 1625 $webvar{qfor} =~ s/^\s*//; 1626 $webvar{qfor} =~ s/\s*$//; 1627 $page->param(qfor => $webvar{qfor}); 1628 } 1629 if ($webvar{resolver}) { 1630 $webvar{resolver} =~ s/^\s*//; 1631 $webvar{resolver} =~ s/\s*$//; 1632 $page->param(resolver => $webvar{resolver}); 1633 } 1624 1634 $page->param(typelist => $dnsdb->getTypelist('l', ($webvar{type} ? $webvar{type} : undef))); 1625 1635 $page->param(nrecurse => $webvar{nrecurse}) if $webvar{nrecurse}; 1626 $page->param(resolver => $webvar{resolver}) if $webvar{resolver};1627 1636 1628 1637 if ($webvar{qfor}) {
Note:
See TracChangeset
for help on using the changeset viewer.