Changeset 486
- Timestamp:
- 03/15/13 12:42:45 (12 years ago)
- Location:
- trunk
- Files:
-
- 2 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); -
trunk/dns.cgi
r484 r486 1935 1935 $page->param(port => $webvar{port}) if $webvar{type} == $reverse_typemap{SRV}; 1936 1936 } else { 1937 my $domroot = ($webvar{defrec} eq 'y' ? 'ADMINDOMAIN' : ".$ config{domain}");1937 my $domroot = ($webvar{defrec} eq 'y' ? 'ADMINDOMAIN' : ".$dnsdb->{domain}"); 1938 1938 $page->param(name => ($webvar{name} ? $webvar{name} : $domroot)); 1939 1939 my $zname = ($webvar{defrec} eq 'y' ? 'ZONE' : $dnsdb->revName($webvar{parentid}));
Note:
See TracChangeset
for help on using the changeset viewer.