summaryrefslogtreecommitdiff
path: root/hugo/libraries/logging.lib.php
diff options
context:
space:
mode:
Diffstat (limited to 'hugo/libraries/logging.lib.php')
-rw-r--r--hugo/libraries/logging.lib.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/hugo/libraries/logging.lib.php b/hugo/libraries/logging.lib.php
new file mode 100644
index 0000000..dee8407
--- /dev/null
+++ b/hugo/libraries/logging.lib.php
@@ -0,0 +1,30 @@
+<?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
+ */
+if (! defined('PHPMYADMIN')) {
+ exit;
+}
+
+/**
+ * Logs user information to webserver logs.
+ *
+ * @param string $user user name
+ * @param string $status status message
+ *
+ * @return void
+ */
+function PMA_log_user($user, $status = 'ok')
+{
+ if (function_exists('apache_note')) {
+ apache_note('userID', $user);
+ apache_note('userStatus', $status);
+ }
+}
+
+?>