Changeset 101 for trunk/dns.cgi
- Timestamp:
- 07/06/11 17:17:46 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dns.cgi
r98 r101 37 37 38 38 my @debugbits; # temp, to be spit out near the end of processing 39 my $debugenv = 1;39 my $debugenv = 0; 40 40 41 41 # Let's do these templates right... … … 1269 1269 no warnings qw( uninitialized ); 1270 1270 1271 $page->param(name => $webvar{name}); 1271 ##todo: allow BIND-style bare names, ASS-U-ME that the name is within the domain? 1272 # prefill <domain> or DOMAIN in "Host" space for new records 1273 my $domroot = ($webvar{defrec} eq 'y' ? 'DOMAIN' : domainName($dbh,$webvar{parentid})); 1274 $page->param(name => $domroot); 1272 1275 $page->param(address => $webvar{address}); 1273 1276 $page->param(distance => $webvar{distance}) … … 1275 1278 $page->param(weight => $webvar{weight}) if $webvar{type} == $reverse_typemap{SRV}; 1276 1279 $page->param(port => $webvar{port}) if $webvar{type} == $reverse_typemap{SRV}; 1277 $page->param(ttl => ($webvar{ttl} ? $webvar{ttl} : $DNSDB::def{minttl})); 1280 # retrieve the right ttl instead of falling (way) back to the hardcoded system default 1281 my %soa = getSOA($dbh,$webvar{defrec},$webvar{parentid}); 1282 $page->param(ttl => ($webvar{ttl} ? $webvar{ttl} : $soa{minttl})); 1278 1283 } 1279 1284 … … 1677 1682 1678 1683 ##fixme: push SQL into DNSDB.pm 1684 ##fixme: add bits to retrieve group/domain name info to retain after entity is deleted? 1679 1685 my $sth = $dbh->prepare("SELECT user_id, firstname || ' ' || lastname FROM users WHERE username=?"); 1680 1686 $sth->execute($username);
Note:
See TracChangeset
for help on using the changeset viewer.