From cf29551cd4725d04c0a6965291a182d7ea409652 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Br=C3=BCmmer?= Date: Fri, 1 Jul 2016 13:41:20 +0200 Subject: [PATCH 1/3] fix display error with phpinfo only show the -content and add some stylings --- phpminiadmin.php | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/phpminiadmin.php b/phpminiadmin.php index 41f53f0..addf297 100644 --- a/phpminiadmin.php +++ b/phpminiadmin.php @@ -100,7 +100,11 @@ $time_start=microtime_float(); if ($_REQUEST['phpinfo']){ - ob_start();phpinfo();$sqldr='
'.ob_get_clean().'
'; + ob_start(); + phpinfo(); + $html = ob_get_clean(); + preg_match("/]*>(.*?)<\/body>/is", $html, $matches); // show only -content + $sqldr='
'.$matches[1].'
'; }else{ if ($DB['db']){ if ($_REQUEST['shex']){ @@ -268,16 +272,16 @@ function print_header(){