Changeset 486 for trunk/dns-rpc.cgi
- Timestamp:
- 03/15/13 12:42:45 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dns-rpc.cgi
r483 r486 91 91 sub _aclcheck { 92 92 my $subsys = shift; 93 return 1 if grep /$ENV{REMOTE_ADDR}/, @{$ DNSDB::config{rpcacl}{$subsys}};93 return 1 if grep /$ENV{REMOTE_ADDR}/, @{$dnsdb->{rpcacl}{$subsys}}; 94 94 return 0; 95 95 } … … 105 105 die "Missing remote username\n" if !$argref->{rpcuser}; 106 106 die "Couldn't set userdata for logging\n" 107 unless DNSDB::initRPC($dbh,(username => $argref->{rpcuser}, rpcsys => $argref->{rpcsystem},108 fullname => ($argref->{fullname} ? $argref->{fullname} : $argref->{rpcuser}) ) );107 unless $dnsdb->initRPC(username => $argref->{rpcuser}, rpcsys => $argref->{rpcsystem}, 108 fullname => ($argref->{fullname} ? $argref->{fullname} : $argref->{rpcuser}) ); 109 109 } 110 110 } … … 122 122 my $argref = shift; 123 123 if (!$argref->{ttl}) { 124 my $tmp = DNSDB::getSOA($dbh,$argref->{defrec}, $argref->{revrec}, $argref->{parent_id});124 my $tmp = $dnsdb->getSOA($argref->{defrec}, $argref->{revrec}, $argref->{parent_id}); 125 125 $argref->{ttl} = $tmp->{minttl}; 126 126 } … … 216 216 ($code,$msg) = $dnsdb->delGroup($args{group}); 217 217 } else { 218 my $grpid = DNSDB::groupID($dbh,$args{group});218 my $grpid = $dnsdb->groupID($args{group}); 219 219 die "Can't find group\n" if !$grpid; 220 220 ($code,$msg) = $dnsdb->delGroup($grpid);
Note:
See TracChangeset
for help on using the changeset viewer.