From b210bfca98ebdf15748d0c859c7b566b572ce4ca Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Sun, 7 Jan 2018 05:27:20 +0000 Subject: [PATCH] www/dbq/dbq.php --- www/dbq/dbq.php | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/www/dbq/dbq.php b/www/dbq/dbq.php index 8fe08cf8..8b06f3d2 100644 --- a/www/dbq/dbq.php +++ b/www/dbq/dbq.php @@ -281,6 +281,17 @@ class DbQ extends nb { $bottom = []; + if ($this->http_user()) { + $bottom[] = 'Logout: ' + .$this->http_user() + .' (can: '.$this->perm2h().')' + #.'' + .''; + } + + if ($this->perm >= self::ADMIN and !empty($this->db->pdo)) { $r = [ '/(^|;)password=[^;]*/' => '', @@ -289,16 +300,6 @@ class DbQ extends nb { $bottom[] = 'Database: '.preg_replace(array_keys($r),$r,$this->db->pdo); } - #debug($_SERVER); - if ($this->http_user()) $bottom[] = 'Logout: ' - .$this->http_user() - .' (can: '.$this->perm2h().')'.''; - - if ($this->perm >= self::READ) { - #echo ''; - #$bottom[] = ''; - } - if ($bottom and $this->page->is('html')) echo $this->page->tag('div class="block" style="display:inline-block"',join('
'.NB_EOL,$bottom)); $this->page->end(); -- 2.47.3