Changeset 296 for trunk/dns.cgi


Ignore:
Timestamp:
04/02/12 16:58:39 (13 years ago)
Author:
Kris Deugau
Message:

/trunk

Move action logging for user status change into userStatus(). See #35

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dns.cgi

    r295 r296  
    11591159    if ($flag && ($permissions{admin} || $permissions{user_edit})) {
    11601160      my $stat = userStatus($dbh,$webvar{id},$webvar{userstatus});
    1161       logaction(0, $session->param("username"), parentID($dbh, (id => $webvar{id}, type => 'user')),
    1162         ($stat ? 'Enabled' : 'Disabled')." ".userFullName($dbh, $webvar{id}, '%u'));
    1163       $page->param(resultmsg => ($stat ? 'Enabled' : 'Disabled')." ".userFullName($dbh, $webvar{id}, '%u'));
     1161      $page->param(resultmsg => $DNSDB::resultstr);
    11641162    } else {
    11651163      $page->param(errmsg => "You are not permitted to view or change the requested user");
Note: See TracChangeset for help on using the changeset viewer.