Changeset 476 for trunk/dns.cgi
- Timestamp:
- 03/13/13 13:20:50 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dns.cgi
r474 r476 874 874 # https://secure.deepnet.cx/trac/dnsadmin/ticket/8 for the UI enhancement 875 875 # that will make this variable. 876 my ($code,$msg) = addGroup($dbh,$webvar{newgroup}, $webvar{pargroup}, \%newperms, 1);876 my ($code,$msg) = $dnsdb->addGroup($webvar{newgroup}, $webvar{pargroup}, \%newperms, 1); 877 877 if ($code eq 'OK') { 878 878 if ($alterperms) { … … 917 917 918 918 } elsif ($webvar{del} eq 'ok') { 919 my ($code,$msg) = delGroup($dbh,$webvar{id});919 my ($code,$msg) = $dnsdb->delGroup($webvar{id}); 920 920 if ($code eq 'OK') { 921 921 ##fixme: need to clean up log when deleting a major container … … 1060 1060 # Do the $webvar{bulkaction} 1061 1061 my ($code, $msg); 1062 ($code, $msg) = changeGroup($dbh,'domain', $webvar{$_}, $webvar{destgroup})1062 ($code, $msg) = $dnsdb->changeGroup('domain', $webvar{$_}, $webvar{destgroup}) 1063 1063 if $webvar{bulkaction} eq 'move'; 1064 1064 if ($webvar{bulkaction} eq 'deactivate' || $webvar{bulkaction} eq 'activate') { … … 1766 1766 1767 1767 my $grptree = HTML::Template->new(filename => 'templates/grptree.tmpl'); 1768 getChildren($dbh,$root,\@childlist,'immediate');1768 $dnsdb->getChildren($root, \@childlist, 'immediate'); 1769 1769 return if $#childlist == -1; 1770 1770 my @grouplist; … … 2032 2032 2033 2033 my @childgroups; 2034 getChildren($dbh,$curgroup, \@childgroups, 'all') if $searchsubs;2034 $dnsdb->getChildren($curgroup, \@childgroups, 'all') if $searchsubs; 2035 2035 my $childlist = join(',',@childgroups); 2036 2036 … … 2090 2090 2091 2091 my @childgroups; 2092 getChildren($dbh,$curgroup, \@childgroups, 'all') if $searchsubs;2092 $dnsdb->getChildren($curgroup, \@childgroups, 'all') if $searchsubs; 2093 2093 my $childlist = join(',',@childgroups); 2094 2094 2095 my ($count) = getGroupCount($dbh,(childlist => $childlist, curgroup => $curgroup,2096 filter => ($filter ? $filter : undef), startwith => ($startwith ? $startwith : undef) ) );2095 my ($count) = $dnsdb->getGroupCount(childlist => $childlist, curgroup => $curgroup, 2096 filter => ($filter ? $filter : undef), startwith => ($startwith ? $startwith : undef) ); 2097 2097 2098 2098 # fill page count and first-previous-next-last-all bits … … 2125 2125 $sortby = 'g2.group_name' if $sortby eq 'parent'; 2126 2126 2127 my $glist = getGroupList($dbh,(childlist => $childlist, curgroup => $curgroup,2127 my $glist = $dnsdb->getGroupList(childlist => $childlist, curgroup => $curgroup, 2128 2128 filter => ($filter ? $filter : undef), startwith => ($startwith ? $startwith : undef), 2129 offset => $webvar{offset}, sortby => $sortby, sortorder => $sortorder) );2129 offset => $webvar{offset}, sortby => $sortby, sortorder => $sortorder); 2130 2130 2131 2131 $page->param(grouptable => $glist); … … 2145 2145 2146 2146 my @childlist; 2147 getChildren($dbh,$root,\@childlist,'immediate');2147 $dnsdb->getChildren($root, \@childlist, 'immediate'); 2148 2148 return if $#childlist == -1; 2149 2149 foreach (@childlist) { … … 2188 2188 2189 2189 my @childgroups; 2190 getChildren($dbh,$curgroup, \@childgroups, 'all') if $searchsubs;2190 $dnsdb->getChildren($curgroup, \@childgroups, 'all') if $searchsubs; 2191 2191 my $childlist = join(',',@childgroups); 2192 2192 … … 2235 2235 2236 2236 my @childgroups; 2237 getChildren($dbh,$curgroup, \@childgroups, 'all') if $searchsubs;2237 $dnsdb->getChildren($curgroup, \@childgroups, 'all') if $searchsubs; 2238 2238 my $childlist = join(',',@childgroups); 2239 2239
Note:
See TracChangeset
for help on using the changeset viewer.