2016-10-22 14:57:10 +00:00
|
|
|
<?php
|
|
|
|
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
|
|
|
/**
|
|
|
|
* Logging functionality for webserver.
|
|
|
|
*
|
|
|
|
* This includes web server specific code to log some information.
|
|
|
|
*
|
|
|
|
* @package PhpMyAdmin
|
|
|
|
*/
|
2017-04-20 10:55:30 +00:00
|
|
|
if (! defined('PHPMYADMIN')) {
|
|
|
|
exit;
|
|
|
|
}
|
2016-10-22 14:57:10 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Logs user information to webserver logs.
|
|
|
|
*
|
|
|
|
* @param string $user user name
|
|
|
|
* @param string $status status message
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
2017-04-20 10:55:30 +00:00
|
|
|
function PMA_log_user($user, $status = 'ok')
|
2016-10-22 14:57:10 +00:00
|
|
|
{
|
|
|
|
if (function_exists('apache_note')) {
|
|
|
|
apache_note('userID', $user);
|
|
|
|
apache_note('userStatus', $status);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-04-20 10:55:30 +00:00
|
|
|
?>
|