logging.lib.php 567 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * Logging functionality for webserver.
  5. *
  6. * This includes web server specific code to log some information.
  7. *
  8. * @package PhpMyAdmin
  9. */
  10. if (! defined('PHPMYADMIN')) {
  11. exit;
  12. }
  13. /**
  14. * Logs user information to webserver logs.
  15. *
  16. * @param string $user user name
  17. * @param string $status status message
  18. *
  19. * @return void
  20. */
  21. function PMA_logUser($user, $status = 'ok')
  22. {
  23. if (function_exists('apache_note')) {
  24. apache_note('userID', $user);
  25. apache_note('userStatus', $status);
  26. }
  27. }
  28. ?>