Changeset 477 for trunk/dns.cgi
- Timestamp:
- 03/13/13 17:10:34 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dns.cgi
r476 r477 315 315 } 316 316 if ($flag && ($permissions{admin} || $permissions{domain_edit})) { 317 my $stat = zoneStatus($dbh,$webvar{id},'n',$webvar{zonestatus});317 my $stat = $dnsdb->zoneStatus($webvar{id}, 'n', $webvar{zonestatus}); 318 318 $page->param(resultmsg => $DNSDB::resultstr); 319 319 } else { … … 362 362 $webvar{makeactive} = 0 if !defined($webvar{makeactive}); 363 363 364 my ($code,$msg) = addDomain($dbh,$webvar{domain},$webvar{group},($webvar{makeactive} eq 'on' ? 1 : 0));364 my ($code,$msg) = $dnsdb->addDomain($webvar{domain}, $webvar{group}, ($webvar{makeactive} eq 'on' ? 1 : 0)); 365 365 366 366 if ($code eq 'OK') { … … 396 396 } elsif ($webvar{del} eq 'ok') { 397 397 my $pargroup = $dnsdb->parentID(id => $webvar{id}, type => 'domain', revrec => $webvar{revrec}); 398 my ($code,$msg) = delZone($dbh,$webvar{id}, $webvar{revrec});398 my ($code,$msg) = $dnsdb->delZone($webvar{id}, $webvar{revrec}); 399 399 if ($code eq 'OK') { 400 400 changepage(page => "domlist", resultmsg => $msg); … … 419 419 } 420 420 if ($flag && ($permissions{admin} || $permissions{domain_edit})) { 421 my $stat = zoneStatus($dbh,$webvar{id},'y',$webvar{zonestatus});421 my $stat = $dnsdb->zoneStatus($webvar{id}, 'y', $webvar{zonestatus}); 422 422 $page->param(resultmsg => $DNSDB::resultstr); 423 423 } else { … … 464 464 } 465 465 466 my ($code,$msg) = addRDNS($dbh,$webvar{revzone}, $webvar{revpatt}, $webvar{group},466 my ($code,$msg) = $dnsdb->addRDNS($webvar{revzone}, $webvar{revpatt}, $webvar{group}, 467 467 ($webvar{makeactive} eq 'on' ? 1 : 0), $webvar{location}); 468 468 … … 497 497 my $pargroup = $dnsdb->parentID(id => $webvar{id}, type => 'revzone', revrec => $webvar{revrec}); 498 498 my $zone = $dnsdb->revName($webvar{id}); 499 my ($code,$msg) = delZone($dbh,$webvar{id}, 'y');499 my ($code,$msg) = $dnsdb->delZone($webvar{id}, 'y'); 500 500 if ($code eq 'OK') { 501 501 changepage(page => "revzones", resultmsg => $msg); … … 625 625 626 626 if ($webvar{defrec} eq 'n') { 627 my $defloc = getZoneLocation($dbh,$webvar{revrec}, $webvar{parentid});627 my $defloc = $dnsdb->getZoneLocation($webvar{revrec}, $webvar{parentid}); 628 628 fill_loclist($curgroup, $defloc); 629 629 } … … 635 635 636 636 # location check - if user does not have record_locchg, set $webvar{location} to default location for zone 637 my $parloc = getZoneLocation($dbh,$webvar{revrec}, $webvar{parentid});637 my $parloc = $dnsdb->getZoneLocation($webvar{revrec}, $webvar{parentid}); 638 638 $webvar{location} = $parloc unless ($permissions{admin} || $permissions{record_locchg}); 639 639 … … 993 993 fill_grouplist("grouplist"); 994 994 995 my $count = getZoneCount($dbh, (revrec => 'n', curgroup => $curgroup));995 my $count = $dnsdb->getZoneCount(revrec => 'n', curgroup => $curgroup); 996 996 997 997 $page->param(curpage => $webvar{page}); … … 1000 1000 $page->param(perpage => $perpage); 1001 1001 1002 my $domlist = getZoneList($dbh, (revrec => 'n', curgroup => $curgroup));1002 my $domlist = $dnsdb->getZoneList(revrec => 'n', curgroup => $curgroup); 1003 1003 my $rownum = 0; 1004 1004 foreach my $dom (@{$domlist}) { … … 1063 1063 if $webvar{bulkaction} eq 'move'; 1064 1064 if ($webvar{bulkaction} eq 'deactivate' || $webvar{bulkaction} eq 'activate') { 1065 my $stat = zoneStatus($dbh,$webvar{$_},'n',($webvar{bulkaction} eq 'activate' ? 'domon' : 'domoff'));1065 my $stat = $dnsdb->zoneStatus($webvar{$_}, 'n', ($webvar{bulkaction} eq 'activate' ? 'domon' : 'domoff')); 1066 1066 $code = (defined($stat) ? 'OK' : 'FAIL'); 1067 1067 $msg = (defined($stat) ? $DNSDB::resultstr : $DNSDB::errstr); 1068 1068 } 1069 ($code, $msg) = delZone($dbh,$webvar{$_}, 'n')1069 ($code, $msg) = $dnsdb->delZone($webvar{$_}, 'n') 1070 1070 if $webvar{bulkaction} eq 'delete'; 1071 1071 … … 2035 2035 my $childlist = join(',',@childgroups); 2036 2036 2037 my $count = getZoneCount($dbh,(childlist => $childlist, curgroup => $curgroup, revrec => $webvar{revrec},2038 filter => ($filter ? $filter : undef), startwith => ($startwith ? $startwith : undef) ) );2037 my $count = $dnsdb->getZoneCount(childlist => $childlist, curgroup => $curgroup, revrec => $webvar{revrec}, 2038 filter => ($filter ? $filter : undef), startwith => ($startwith ? $startwith : undef) ); 2039 2039 2040 2040 # fill page count and first-previous-next-last-all bits … … 2067 2067 $page->param(group => $curgroup); 2068 2068 2069 my $zonelist = getZoneList($dbh, (childlist => $childlist, curgroup => $curgroup, 2070 revrec => $webvar{revrec}, 2069 my $zonelist = $dnsdb->getZoneList(childlist => $childlist, curgroup => $curgroup, revrec => $webvar{revrec}, 2071 2070 filter => ($filter ? $filter : undef), startwith => ($startwith ? $startwith : undef), 2072 2071 offset => $webvar{offset}, sortby => $sortby, sortorder => $sortorder 2073 ) );2072 ); 2074 2073 # probably don't need this, keeping for reference for now 2075 2074 # foreach (@$zonelist) {
Note:
See TracChangeset
for help on using the changeset viewer.