Adaptation look des phpinfo au style Dolibarr.
This commit is contained in:
parent
9c67fba5f4
commit
f2902ffcf3
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* $Id$
|
* $Id$
|
||||||
* $Source$
|
* $Source$
|
||||||
@ -18,10 +18,10 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
* 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
|
\brief Page des infos système de php
|
||||||
\version $Revision$
|
\version $Revision$
|
||||||
*/
|
*/
|
||||||
@ -44,10 +44,12 @@ if ($_GET["what"] == 'conf')
|
|||||||
}
|
}
|
||||||
elseif ($_GET["what"] == 'env')
|
elseif ($_GET["what"] == 'env')
|
||||||
{
|
{
|
||||||
|
$title=$langs->trans("OSEnv");
|
||||||
phpinfo(INFO_ENVIRONMENT);
|
phpinfo(INFO_ENVIRONMENT);
|
||||||
}
|
}
|
||||||
elseif ($_GET["what"] == 'modules')
|
elseif ($_GET["what"] == 'modules')
|
||||||
{
|
{
|
||||||
|
$title=$langs->trans("Modules");
|
||||||
phpinfo(INFO_MODULES);
|
phpinfo(INFO_MODULES);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -58,7 +60,7 @@ else
|
|||||||
$chaine = ob_get_contents();
|
$chaine = ob_get_contents();
|
||||||
ob_end_clean();
|
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('background-color: #ffffff;','',$chaine);
|
||||||
$chaine = eregi_replace('.*<style','<style',$chaine);
|
$chaine = eregi_replace('.*<style','<style',$chaine);
|
||||||
$chaine = eregi_replace('<title>.*<body>','',$chaine);
|
$chaine = eregi_replace('<title>.*<body>','',$chaine);
|
||||||
@ -68,6 +70,23 @@ $chaine = eregi_replace('table.*important; }','',$chaine);
|
|||||||
$chaine = eregi_replace('<hr />','',$chaine);
|
$chaine = eregi_replace('<hr />','',$chaine);
|
||||||
$chaine = eregi_replace('</body></html>','',$chaine);
|
$chaine = eregi_replace('</body></html>','',$chaine);
|
||||||
$chaine = eregi_replace('body, td, th, h1, h2 {font-family: sans-serif;}','',$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('<h1>','<div class="titre">',$chaine);
|
||||||
|
$chaine = eregi_replace('<h2>','<div class="titre">',$chaine);
|
||||||
|
$chaine = eregi_replace('</h1>','</div><br>',$chaine);
|
||||||
|
$chaine = eregi_replace('</h2>','</div>',$chaine);
|
||||||
|
|
||||||
|
$chaine = eregi_replace('<td class="e">','<td class="impair">',$chaine);
|
||||||
|
$chaine = eregi_replace('<td class="v">','<td class="pair">',$chaine);
|
||||||
|
|
||||||
|
if ($title)
|
||||||
|
{
|
||||||
|
print_titre($title);
|
||||||
|
print '<br>';
|
||||||
|
}
|
||||||
|
|
||||||
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 "$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 "<br>\n";
|
print "<br>\n";
|
||||||
|
|||||||
@ -11,6 +11,7 @@ OtherSetup=Other setup
|
|||||||
Modules=Modules
|
Modules=Modules
|
||||||
ModulesCommon=Common modules
|
ModulesCommon=Common modules
|
||||||
ModulesSpecial=Special modules
|
ModulesSpecial=Special modules
|
||||||
|
OSEnv=OS Environment
|
||||||
Box=Box
|
Box=Box
|
||||||
Boxes=Boxes
|
Boxes=Boxes
|
||||||
System=System
|
System=System
|
||||||
|
|||||||
@ -11,6 +11,7 @@ OtherSetup=Divers
|
|||||||
Modules=Modules
|
Modules=Modules
|
||||||
ModulesCommon=Modules standards
|
ModulesCommon=Modules standards
|
||||||
ModulesSpecial=Modules spéciaux
|
ModulesSpecial=Modules spéciaux
|
||||||
|
OSEnv=Environnement OS
|
||||||
Box=Boîte
|
Box=Boîte
|
||||||
Boxes=Boîtes
|
Boxes=Boîtes
|
||||||
System=Système
|
System=Système
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user