/phpmyadmin/libraries/logging.lib.php

https://bitbucket.org/adarshj/convenient_website · PHP · 22 lines · 9 code · 2 blank · 11 comment · 1 complexity · ef59174622d7254af15c3450d336610b MD5 · raw file

  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. /**
  11. * Logs user information to webserver logs.
  12. */
  13. function PMA_log_user($user, $status = 'ok')
  14. {
  15. if (function_exists('apache_note')) {
  16. apache_note('userID', $user);
  17. apache_note('userStatus', $status);
  18. }
  19. }
  20. ?>