From: Nicolas Boisselier Date: Tue, 31 Oct 2017 00:09:41 +0000 (+0000) Subject: www/dbq/dbq.php X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=0560a105730ea238f05b4f311ce84e247ab2d676;p=nb.git www/dbq/dbq.php --- diff --git a/www/dbq/dbq.php b/www/dbq/dbq.php index 3839e3ce..caac82ed 100644 --- a/www/dbq/dbq.php +++ b/www/dbq/dbq.php @@ -210,6 +210,11 @@ class DbQ extends nb { exit; } + public function user() { + if (!empty($_SERVER['REMOTE_USER'])) return $_SERVER['REMOTE_USER']; # empty since jessie + if (!empty($_SERVER['PHP_AUTH_USER'])) return $_SERVER['PHP_AUTH_USER']; + } + public function db($connect=[]) { // Connect