From: Nicolas Boisselier Date: Thu, 9 Feb 2017 09:09:34 +0000 (+0000) Subject: www/dbq/dbq.php X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=52fdb9207e1e423d94238b23eb34e01eeb29ef37;p=nb.git www/dbq/dbq.php --- diff --git a/www/dbq/dbq.php b/www/dbq/dbq.php index 9efa7df1..7ca9f467 100644 --- a/www/dbq/dbq.php +++ b/www/dbq/dbq.php @@ -460,12 +460,6 @@ class DbQ extends nb { public function status() { #$this->perm--; $rows = []; - // Client headers - foreach ($this->client_header() as $k=>$v) $rows[] = [ - 'name' => 'client.header.'.$k, - 'value' => ( is_scalar($v) ? $v : json_encode($v) ), - ]; - // Server foreach ([ 'addr', @@ -481,6 +475,12 @@ class DbQ extends nb { $rows[] = [ 'name' => 'server.'.$k, 'value' => $v ]; } + // Client headers + foreach ($this->client_header() as $k=>$v) $rows[] = [ + 'name' => 'client.header.'.$k, + 'value' => ( is_scalar($v) ? $v : json_encode($v) ), + ]; + // Admin or bye ! if ($this->perm < self::ADMIN) return $rows;