Changeset 479 for trunk/dns.cgi
- Timestamp:
- 03/13/13 17:39:28 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dns.cgi
r477 r479 1096 1096 if ($flag && ($permissions{admin} || $permissions{user_edit} || 1097 1097 ($permissions{self_edit} && $webvar{id} == $session->param('uid')) )) { 1098 my $stat = userStatus($dbh,$webvar{id},$webvar{userstatus});1098 my $stat = $dnsdb->userStatus($webvar{id}, $webvar{userstatus}); 1099 1099 $page->param(resultmsg => $DNSDB::resultstr); 1100 1100 } else { … … 1199 1199 unless $permissions{admin} || $permissions{user_create}; 1200 1200 # no scope check; user is created in the current group 1201 ($code,$msg) = addUser($dbh,$webvar{uname}, $curgroup, $webvar{pass1},1201 ($code,$msg) = $dnsdb->addUser($webvar{uname}, $curgroup, $webvar{pass1}, 1202 1202 ($webvar{makeactive} eq 'on' ? 1 : 0), $webvar{accttype}, $permstring, 1203 1203 $webvar{fname}, $webvar{lname}, $webvar{phone}); … … 1214 1214 # or self-torture trying to not commit the transaction until we're really done. 1215 1215 # Allowing for changing group, but not coding web support just yet. 1216 ($code,$msg) = updateUser($dbh,$webvar{uid}, $webvar{uname}, $webvar{gid}, $webvar{pass1},1216 ($code,$msg) = $dnsdb->updateUser($webvar{uid}, $webvar{uname}, $webvar{gid}, $webvar{pass1}, 1217 1217 ($webvar{makeactive} eq 'on' ? 1 : 0), $webvar{accttype}, 1218 1218 $webvar{fname}, $webvar{lname}, $webvar{phone}); … … 1275 1275 fill_clonemelist(); 1276 1276 1277 my $userinfo = getUserData($dbh,$webvar{user});1277 my $userinfo = $dnsdb->getUserData($webvar{user}); 1278 1278 fill_actypelist($userinfo->{type}); 1279 1279 # not using this yet, but adding it now means we can *much* more easily do so later. … … 1319 1319 $page->param(user => $dnsdb->userFullName($webvar{id})); 1320 1320 } elsif ($webvar{del} eq 'ok') { 1321 my ($code,$msg) = delUser($dbh,$webvar{id});1321 my ($code,$msg) = $dnsdb->delUser($webvar{id}); 1322 1322 if ($code eq 'OK') { 1323 1323 # success. go back to the user list, do not pass "GO" … … 1965 1965 local $webvar{clonesrc} = 0 if !defined($webvar{clonesrc}); 1966 1966 1967 my $clones = getUserDropdown($dbh,$curgroup, $webvar{clonesrc});1967 my $clones = $dnsdb->getUserDropdown($curgroup, $webvar{clonesrc}); 1968 1968 $page->param(clonesrc => $clones); 1969 1969 } … … 2190 2190 my $childlist = join(',',@childgroups); 2191 2191 2192 my $count = getUserCount($dbh,(childlist => $childlist, curgroup => $curgroup,2193 filter => ($filter ? $filter : undef), startwith => ($startwith ? $startwith : undef) ) );2192 my $count = $dnsdb->getUserCount(childlist => $childlist, curgroup => $curgroup, 2193 filter => ($filter ? $filter : undef), startwith => ($startwith ? $startwith : undef) ); 2194 2194 2195 2195 # fill page count and first-previous-next-last-all bits … … 2216 2216 $page->param(searchsubs => $searchsubs) if $searchsubs; 2217 2217 2218 my $ulist = getUserList($dbh,(childlist => $childlist, curgroup => $curgroup,2218 my $ulist = $dnsdb->getUserList(childlist => $childlist, curgroup => $curgroup, 2219 2219 filter => ($filter ? $filter : undef), startwith => ($startwith ? $startwith : undef), 2220 offset => $webvar{offset}, sortby => $sortby, sortorder => $sortorder) );2220 offset => $webvar{offset}, sortby => $sortby, sortorder => $sortorder); 2221 2221 # Some UI things need to be done to the list (unlike other lists) 2222 2222 foreach my $u (@{$ulist}) {
Note:
See TracChangeset
for help on using the changeset viewer.