Changeset 93
- Timestamp:
- 04/14/11 16:48:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dns.cgi
r92 r93 664 664 $webvar{fname}, $webvar{lname}, $webvar{phone}); 665 665 if ($code eq 'OK') { 666 ##fixme - need to actually get a correct permission set to pass in here,667 # also a flag to revert custom permissions to inherited668 666 $newperms{admin} = 1 if $webvar{accttype} eq 'S'; 669 667 ($code,$msg) = changePermissions($dbh, 'user', $webvar{uid}, \%newperms, ($permstring eq 'i')); … … 817 815 ##fixme: find group id user is in (for logging) *before* we delete the user 818 816 ##fixme: get other user data too for log 817 my $userref = getUserData($dbh, $webvar{id}); 819 818 my ($code,$msg) = delUser($dbh, $webvar{id}); 820 819 if ($code ne 'OK') { … … 825 824 } else { 826 825 # success. go back to the user list, do not pass "GO" 827 ##log 828 logaction(0, $session->param("username"), $curgroup, "Deleted user $webvar{id}"); 826 # actions on users have a domain id of 0, always 827 logaction(0, $session->param("username"), $curgroup, "Deleted user $webvar{id}/".$userref->{username}. 828 " (".$userref->{lastname}.", ".$userref->{firstname}.")"); 829 829 changepage(page => "useradmin"); 830 830 } … … 961 961 $Text::Wrap::columns = 88; 962 962 963 # &%$@%@# high-bit crap. We should probably find a way to properly recode these instead of one-by-one. 963 # &%$@%@# high-bit crap. We should probably find a way to properly recode these 964 # instead of one-by-one. Note CGI::Simple's escapeHTML() doesn't do more than 965 # the bare minimum. :/ 964 966 # Mainly an XHTML validation thing. 967 $dominfo = $q->escapeHTML($dominfo); 965 968 $dominfo =~ s/\xa9/\©/g; 966 969 $dominfo =~ s/\xae/\®/g; … … 1269 1272 sub fill_fpnla { 1270 1273 my $count = shift; 1271 ##fixme1272 1274 if ($offset eq 'all') { 1273 1275 $page->param(perpage => $perpage); … … 1331 1333 1332 1334 # fill page count and first-previous-next-last-all bits 1333 ##fixme - hardcoded group bit1334 1335 fill_pgcount($count,"domains",groupName($dbh,$curgroup)); 1335 1336 fill_fpnla($count); … … 1487 1488 $row{groupval} = $groupid; 1488 1489 ##fixme: need magic 1490 ## ... WTF? 1489 1491 # $row{defgroup} = ''; 1490 1492 $row{groupactive} = 1 if $groupid == $cur; … … 1617 1619 my $entry = shift; 1618 1620 1619 ##fixme: ooohhh, nasty. what if we get a failure *here*? PTHBTT!1621 ##fixme: push SQL into DNSDB.pm 1620 1622 my $sth = $dbh->prepare("SELECT user_id, firstname || ' ' || lastname FROM users WHERE username=?"); 1621 1623 $sth->execute($username);
Note:
See TracChangeset
for help on using the changeset viewer.