Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Foellmann <foellmann@foe-services.de>2014-04-05 17:35:38 +0400
committerChristian Foellmann <foellmann@foe-services.de>2014-04-05 17:35:38 +0400
commit9eb27ef6ebc763ddc6f6278462b8ffeed6de0e36 (patch)
treed3b4a1c7ae68cafb05b9d60040c9c22d457cee62 /libraries/logging.lib.php
parentd472216554769ba596795f23a70c1809fa8897a3 (diff)
INIT phpmyadmin 4.1.12 multilanguage
Diffstat (limited to 'libraries/logging.lib.php')
-rw-r--r--libraries/logging.lib.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/libraries/logging.lib.php b/libraries/logging.lib.php
new file mode 100644
index 0000000000..975fc5a0c3
--- /dev/null
+++ b/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_logUser($user, $status = 'ok')
+{
+ if (function_exists('apache_note')) {
+ apache_note('userID', $user);
+ apache_note('userStatus', $status);
+ }
+}
+
+?>