From db2cab0e048b69396baa9fdfcf3f2193be133394 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Garci=CC=81a?= Date: Mon, 30 Jul 2012 03:51:40 +0200 Subject: [PATCH] Better parsing, replacing preg_replace for str_replace for easy replacements --- htdocs/admin/system/phpinfo.php | 42 +++++++++++++-------------------- 1 file changed, 17 insertions(+), 25 deletions(-) diff --git a/htdocs/admin/system/phpinfo.php b/htdocs/admin/system/phpinfo.php index d0f6ffecefe..505ed5a6a9a 100644 --- a/htdocs/admin/system/phpinfo.php +++ b/htdocs/admin/system/phpinfo.php @@ -63,17 +63,17 @@ ob_start(); if ($_GET["what"] == 'conf') { - $title=$langs->trans("Setup"); + $title = 'Setup'; phpinfo(INFO_CONFIGURATION); } elseif ($_GET["what"] == 'env') { - $title=$langs->trans("OSEnv"); + $title = 'OSEnv'; phpinfo(INFO_ENVIRONMENT); } elseif ($_GET["what"] == 'modules') { - $title=$langs->trans("Modules"); + $title = 'Modules'; phpinfo(INFO_MODULES); } else @@ -85,37 +85,29 @@ $chaine = ob_get_contents(); ob_end_clean(); // Nettoie la sortie php pour inclusion dans une page deja existante -$chaine = preg_replace('/background-color: #ffffff;/i','',$chaine); -$chaine = preg_replace('/(.*)