Changeset 469 for trunk/dns.cgi


Ignore:
Timestamp:
03/12/13 16:12:46 (12 years ago)
Author:
Kris Deugau
Message:

/trunk

Object conversion of DNSDB.pm, 5 of <mumble>. See #11.

  • convert a couple more initialization/setup subs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dns.cgi

    r468 r469  
    312312    my $flag = 0;
    313313    foreach (@viewablegroups) {
    314       $flag = 1 if isParent($dbh, $_, 'group', $webvar{id}, 'domain');
     314      $flag = 1 if $dnsdb->isParent(, $_, 'group', $webvar{id}, 'domain');
    315315    }
    316316    if ($flag && ($permissions{admin} || $permissions{domain_edit})) {
     
    416416    my $flag = 0;
    417417    foreach (@viewablegroups) {
    418       $flag = 1 if isParent($dbh, $_, 'group', $webvar{id}, 'revzone');
     418      $flag = 1 if $dnsdb->isParent(, $_, 'group', $webvar{id}, 'revzone');
    419419    }
    420420    if ($flag && ($permissions{admin} || $permissions{domain_edit})) {
     
    10921092    my $flag = 0;
    10931093    foreach (@viewablegroups) {
    1094       $flag = 1 if isParent($dbh, $_, 'group', $webvar{id}, 'user');
     1094      $flag = 1 if $dnsdb->isParent(, $_, 'group', $webvar{id}, 'user');
    10951095    }
    10961096    if ($flag && ($permissions{admin} || $permissions{user_edit} ||
     
    17751775    $row{whereami} = $uri_self;
    17761776    $row{curgrp} = ($_ == $cur);
    1777     $row{expanded} = isParent($dbh, $_, 'group', $cur, 'group');
     1777    $row{expanded} = $dnsdb->isParent(, $_, 'group', $cur, 'group');
    17781778    $row{expanded} = 1 if $_ == $cur;
    17791779    $row{subs} = fill_grptree($_,$cur,$indent.'    ');
     
    23372337  } else {
    23382338    foreach (@viewablegroups) {
    2339       return 1 if isParent($dbh, $_, 'group', $entity, $entype);
     2339      return 1 if $dnsdb->isParent(, $_, 'group', $entity, $entype);
    23402340    }
    23412341  }
Note: See TracChangeset for help on using the changeset viewer.