From: Nicolas Boisselier Date: Sun, 7 Jan 2018 05:27:20 +0000 (+0000) Subject: www/dbq/dbq.php X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=b210bfca98ebdf15748d0c859c7b566b572ce4ca;p=nb.git www/dbq/dbq.php --- 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();