Changeset 486 for trunk/dns-rpc.cgi


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
File:
1 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);
Note: See TracChangeset for help on using the changeset viewer.