Under mod_perl the WebGUI user is automatically added to the access-log for better statistics.
This commit is contained in:
parent
80d9099815
commit
ce1c4abbb6
1 changed files with 6 additions and 0 deletions
|
|
@ -235,6 +235,12 @@ sub open {
|
||||||
###----------------------------
|
###----------------------------
|
||||||
### current user's account and profile information (from users and userProfileData tables)
|
### current user's account and profile information (from users and userProfileData tables)
|
||||||
$session{user} = _getUserInfo($session{var}{userId},$session{dbh});
|
$session{user} = _getUserInfo($session{var}{userId},$session{dbh});
|
||||||
|
if ($session{env}{MOD_PERL}) {
|
||||||
|
my $r = Apache->request;
|
||||||
|
if(defined($r)) {
|
||||||
|
$r->connection->user($session{user}{username});
|
||||||
|
}
|
||||||
|
}
|
||||||
###----------------------------
|
###----------------------------
|
||||||
### current page's properties (from page table)
|
### current page's properties (from page table)
|
||||||
$session{page} = _getPageInfo("",$session{dbh},$session{setting}{notFoundPage},$session{config}{scripturl});
|
$session{page} = _getPageInfo("",$session{dbh},$session{setting}{notFoundPage},$session{config}{scripturl});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue