Changeset 247


Ignore:
Timestamp:
02/28/12 16:42:02 (13 years ago)
Author:
Kris Deugau
Message:

/trunk

Extend logaction sub to accept an optional rdns ID. See #26.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dns.cgi

    r245 r247  
    22262226  my $groupid = shift;
    22272227  my $entry = shift;
     2228  my $revid = shift || 0;
    22282229
    22292230##fixme: push SQL into DNSDB.pm
     
    22332234  my ($user_id, $fullname) = $sth->fetchrow_array;
    22342235
    2235   $sth = $dbh->prepare("INSERT INTO log (domain_id,user_id,group_id,email,name,entry) ".
    2236         "VALUES (?,?,?,?,?,?)") or warn $dbh->errstr;
    2237   $sth->execute($domid,$user_id,$groupid,$username,$fullname,$entry) or warn $sth->errstr;
     2236  $sth = $dbh->prepare("INSERT INTO log (domain_id,user_id,group_id,email,name,entry,rdns_id) ".
     2237        "VALUES (?,?,?,?,?,?,?)") or warn $dbh->errstr;
     2238  $sth->execute($domid,$user_id,$groupid,$username,$fullname,$entry,$revid) or warn $sth->errstr;
    22382239} # end logaction()
    22392240
Note: See TracChangeset for help on using the changeset viewer.