diff --git a/htdocs/admin/system/phpinfo.php b/htdocs/admin/system/phpinfo.php index 4f6b2cbe690..0bd48f24665 100644 --- a/htdocs/admin/system/phpinfo.php +++ b/htdocs/admin/system/phpinfo.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004 Laurent Destailleur + * Copyright (C) 2004-2005 Laurent Destailleur * * $Id$ * $Source$ @@ -18,10 +18,10 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * */ -/*! \file htdocs/admin/system/phpinfo.php +/** + \file htdocs/admin/system/phpinfo.php \brief Page des infos système de php \version $Revision$ */ @@ -44,10 +44,12 @@ if ($_GET["what"] == 'conf') } elseif ($_GET["what"] == 'env') { + $title=$langs->trans("OSEnv"); phpinfo(INFO_ENVIRONMENT); } elseif ($_GET["what"] == 'modules') { + $title=$langs->trans("Modules"); phpinfo(INFO_MODULES); } else @@ -58,7 +60,7 @@ else $chaine = ob_get_contents(); ob_end_clean(); -# Nettoie la sortie php pour inclusion dans une page deja existante +// Nettoie la sortie php pour inclusion dans une page deja existante $chaine = eregi_replace('background-color: #ffffff;','',$chaine); $chaine = eregi_replace('.*.*','',$chaine); @@ -68,6 +70,23 @@ $chaine = eregi_replace('table.*important; }','',$chaine); $chaine = eregi_replace('
','',$chaine); $chaine = eregi_replace('','',$chaine); $chaine = eregi_replace('body, td, th, h1, h2 {font-family: sans-serif;}','',$chaine); +$chaine = eregi_replace('cellpadding="3" ','cellpadding="1" cellspacing="1"',$chaine); +$chaine = eregi_replace('class="h"','class="liste_titre"',$chaine); +$chaine = eregi_replace('th>','td>',$chaine); +// Titres +$chaine = eregi_replace('

','
',$chaine); +$chaine = eregi_replace('

','
',$chaine); +$chaine = eregi_replace('

','

',$chaine); +$chaine = eregi_replace('

','',$chaine); + +$chaine = eregi_replace('','',$chaine); +$chaine = eregi_replace('','',$chaine); + +if ($title) +{ + print_titre($title); + print '
'; +} print "$chaine\n"; // Ne pas centrer la réponse php car certains tableau du bas très large rendent ceux du haut complètement à droite print "
\n"; diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang index 5c85d646fd6..a15da38078b 100644 --- a/htdocs/langs/en_US/admin.lang +++ b/htdocs/langs/en_US/admin.lang @@ -11,6 +11,7 @@ OtherSetup=Other setup Modules=Modules ModulesCommon=Common modules ModulesSpecial=Special modules +OSEnv=OS Environment Box=Box Boxes=Boxes System=System diff --git a/htdocs/langs/fr_FR/admin.lang b/htdocs/langs/fr_FR/admin.lang index 458c5022d22..62036006029 100644 --- a/htdocs/langs/fr_FR/admin.lang +++ b/htdocs/langs/fr_FR/admin.lang @@ -11,6 +11,7 @@ OtherSetup=Divers Modules=Modules ModulesCommon=Modules standards ModulesSpecial=Modules spéciaux +OSEnv=Environnement OS Box=Boîte Boxes=Boîtes System=Système