Changeset 447 for trunk/dns-rpc.cgi
- Timestamp:
- 01/04/13 17:08:30 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dns-rpc.cgi
r426 r447 56 56 'dnsdb.updateUser' => \&updateUser, 57 57 'dnsdb.delUser' => \&delUser, 58 'dnsdb.getLocDropdown' => \&getLocDropdown, 58 59 'dnsdb.getSOA' => \&getSOA, 59 60 'dnsdb.getRecLine' => \&getRecLine, … … 160 161 _commoncheck(\%args, 'y'); 161 162 162 my ($code, $msg) = DNSDB::addRDNS($dbh, $args{revzone}, $args{revpatt}, $args{group}, $args{state} );163 die $msgif $code eq 'FAIL';163 my ($code, $msg) = DNSDB::addRDNS($dbh, $args{revzone}, $args{revpatt}, $args{group}, $args{state}, $args{defloc}); 164 die "$msg\n" if $code eq 'FAIL'; 164 165 return $msg; # domain ID 165 166 } … … 279 280 #sub getLocCount {} 280 281 #sub getLocList {} 281 #sub getLocDropdown {} 282 283 sub getLocDropdown { 284 my %args = @_; 285 286 _commoncheck(\%args); 287 $args{defloc} = '' if !$args{defloc}; 288 289 my $ret = DNSDB::getLocDropdown($dbh, $args{group}, $args{defloc}); 290 return $ret; 291 } 282 292 283 293 sub getSOA {
Note:
See TracChangeset
for help on using the changeset viewer.