From 962480fda9e1148a450ebb1719e60a810d05401a Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Sat, 7 Jan 2017 17:40:54 +0000 Subject: [PATCH] add filters to phpinfo --- www/dbq/dbq.php | 9 +++++++++ 1 file changed, 9 insertions(+) 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, -- 2.47.3