From: Nicolas Boisselier Date: Sat, 7 Jan 2017 17:40:54 +0000 (+0000) Subject: add filters to phpinfo X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=962480fda9e1148a450ebb1719e60a810d05401a;p=nb.git add filters to phpinfo --- diff --git a/www/dbq/dbq.php b/www/dbq/dbq.php index 4eddb031..5a48eb48 100644 --- a/www/dbq/dbq.php +++ b/www/dbq/dbq.php @@ -532,6 +532,11 @@ class DbQ extends nb { $rows = []; $row = []; $section = ''; + $p = [ + 'section' => $this->p('section',''), + 'name' => $this->p('name',''), + 'value' => $this->p('value',''), + ]; foreach (explode("\n",$this->page->phpinfo()) as $line) { @@ -550,6 +555,10 @@ class DbQ extends nb { } #debug($m); + if ($p['name'] and !$this->str_match($name,$p['name'])) continue; + if ($p['value'] and !$this->str_match($value,$p['value'])) continue; + if ($p['section'] and !$this->str_match($_section,$p['section'])) continue; + $rows[] = [ 'section' => $_section, 'name' => $name,