Changeset 190 for trunk/dns.cgi


Ignore:
Timestamp:
12/08/11 18:12:01 (13 years ago)
Author:
Kris Deugau
Message:

/trunk

Start passing user data into DNSDB.pm subs for logging internal
to DNSDB.pm
addDomain() hacked up - may be useful to only pass UID and retrieve
that on log insert in _log() later instead of passing username
and fullname from UI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dns.cgi

    r188 r190  
    343343  }
    344344
    345   my ($code,$msg) = addDomain($dbh,$webvar{domain},$webvar{group},($webvar{makeactive} eq 'on' ? 1 : 0));
     345  my ($code,$msg) = addDomain($dbh,$webvar{domain},$webvar{group},($webvar{makeactive} eq 'on' ? 1 : 0),
     346        (name => $session->param("username"), id => $session->param("uid")));
    346347
    347348  if ($code eq 'OK') {
     
    352353    $session->param('add_failed', 1);
    353354##fixme:  domain a security risk for XSS?
     355##fixme:  keep active/inactive state, group selection
    354356    changepage(page => "newdomain", domain => $webvar{domain}, errmsg => $msg);
    355357  }
Note: See TracChangeset for help on using the changeset viewer.