Changeset 488
- Timestamp:
- 03/19/13 17:30:51 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DNSDB.pm
r487 r488 175 175 # it relies on visibility flags from the rectypes table in the DB 176 176 my %validators; 177 178 # Username, full name, ID - mainly for logging179 my %userdata;180 177 181 178 # Entity-relationship reference hashes. … … 378 375 undef, 379 376 ($args{domain_id}, $args{rdns_id}, $args{group_id}, $args{entry}, 380 $ userdata{userid}, $userdata{username}, $userdata{fullname}) );377 $self->{loguserid}, $self->{logusername}, $self->{logfullname}) ); 381 378 # } elsif ($config{log_channel} eq 'file') { 382 379 # } elsif ($config{log_channel} eq 'syslog') { … … 1488 1485 " FROM users WHERE username=?", undef, ($args{username}) ); 1489 1486 } 1490 %userdata = %{$tmpuser}; 1491 $userdata{lastname} = '' if !$userdata{lastname}; 1492 $userdata{fullname} = "$userdata{firstname} $userdata{lastname} ($args{rpcsys})"; 1487 $tmpuser->{lastname} = '' if !$tmpuser->{lastname}; 1488 $self->{loguserid} = $tmpuser->{userid}; 1489 $self->{logusername} = $tmpuser->{username}; 1490 $self->{logfullname} = "$tmpuser->{firstname} $tmpuser->{lastname} ($args{rpcsys})"; 1493 1491 return 1 if $tmpuser; 1494 1492 } # end initRPC() … … 1549 1547 ##fixme: errors are unpossible! 1550 1548 1551 $ userdata{username} = $username;1552 $ userdata{userid} = $uid;1553 $ userdata{fullname} = $fullname;1549 $self->{logusername} = $username; 1550 $self->{loguserid} = $uid; 1551 $self->{logfullname} = $fullname; 1554 1552 1555 1553 # convert to real check once we have other logging channels
Note:
See TracChangeset
for help on using the changeset viewer.