public function status() {
$rows = [];
- //
-# NB 25.12.16 $rows[] = [ 'name' => $this->page->tag('h4','*APP'), 'value' => '' ];
- //
+ // Dbq
if ($this->client_content_type()) $rows[] = [
'name' => 'dbq.client_content_type',
'value' => $this->client_content_type(),
'value' => ($this->page->is('html') ? 1 : 0),
];
- //
-# NB 25.12.16 $rows[] = [ 'name' => $this->page->tag('h4','*CLIENT HEADERS'), 'value' => '' ];
- //
+ // Machine
+ #if ($this->perm >= self::ADMIN) {}
+ if (function_exists('posix_uname')) {
+ foreach (posix_uname() as $k=>$v) {
+ $rows[] = [ 'name' => 'posix.uname.'.$k, 'value' => $v ];
+ }
+ }
+
+ // Client headers
foreach ([
'addr',
] as $k) {
'value' => ( is_scalar($v) ? $v : json_encode($v) ),
];
- //
-# NB 25.12.16 $rows[] = [ 'name' => $this->page->tag('h4','*SERVER HEADERS'), 'value' => '' ];
-
- //
+ // Envs
foreach ([
'addr',
'port',
if ($v==='') continue;
$rows[] = [ 'name' => 'server.'.$k, 'value' => $v ];
}
+
+ // Server headers
foreach (headers_list() as $v) {
list($k,$v) = explode(': ',$v);
$rows[] = [
];
}
- //
-
return $rows;
}