mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Apache log intergration. In apache conf file one can use ${MOODULEUSER}n in LogFormat to get the current logged in username in moodle. Implemented by Patrick Li.
This commit is contained in:
parent
8465c58a8d
commit
a559eee64e
2 changed files with 15 additions and 0 deletions
|
@ -409,6 +409,12 @@ global $THEME;
|
|||
}
|
||||
}
|
||||
|
||||
/// Apache log intergration. In apache conf file one can use ${MOODULEUSER}n in
|
||||
/// LogFormat to get the current logged in username in moodle.
|
||||
if ($USER && function_exists('apache_note')) {
|
||||
apache_note('MOODLEUSER', $USER->username);
|
||||
}
|
||||
|
||||
/***
|
||||
*** init_performance_info() {
|
||||
***
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue