Changeset 486


Ignore:
Timestamp:
03/15/13 12:42:45 (12 years ago)
Author:
Kris Deugau
Message:

/trunk

Object conversion of DNSDB.pm, part 18. See #11.

  • clean up a couple of missed method calls in dns.cgi and dns-rpc.cgi, and a couple of references to the obsoleted %config
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dns-rpc.cgi

    r483 r486  
    9191sub _aclcheck {
    9292  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}};
    9494  return 0;
    9595}
     
    105105    die "Missing remote username\n" if !$argref->{rpcuser};
    106106    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}) );
    109109  }
    110110}
     
    122122  my $argref = shift;
    123123  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});
    125125    $argref->{ttl} = $tmp->{minttl};
    126126  }
     
    216216    ($code,$msg) = $dnsdb->delGroup($args{group});
    217217  } else {
    218     my $grpid = DNSDB::groupID($dbh, $args{group});
     218    my $grpid = $dnsdb->groupID($args{group});
    219219    die "Can't find group\n" if !$grpid;
    220220    ($code,$msg) = $dnsdb->delGroup($grpid);
  • trunk/dns.cgi

    r484 r486  
    19351935    $page->param(port   => $webvar{port}) if $webvar{type} == $reverse_typemap{SRV};
    19361936  } else {
    1937     my $domroot = ($webvar{defrec} eq 'y' ? 'ADMINDOMAIN' : ".$config{domain}");
     1937    my $domroot = ($webvar{defrec} eq 'y' ? 'ADMINDOMAIN' : ".$dnsdb->{domain}");
    19381938    $page->param(name   => ($webvar{name} ? $webvar{name} : $domroot));
    19391939    my $zname = ($webvar{defrec} eq 'y' ? 'ZONE' : $dnsdb->revName($webvar{parentid}));
Note: See TracChangeset for help on using the changeset viewer.