From 34dbfcc4212255c076485f56ff68008212a9c5ed Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 4 Sep 2004 11:19:13 +0000 Subject: [PATCH] =?UTF-8?q?Secu:=20Toutes=20les=20pages=20de=20l'espace=20?= =?UTF-8?q?"infos=20syst=E8mes"=20sont=20prot=E9g=E9s=20par=20test=20sur?= =?UTF-8?q?=20user=3Dadmin=20Trad:=20Toutes=20les=20chaines=20de=20toutes?= =?UTF-8?q?=20les=20pages=20de=20l'espace=20"infos=20syst=E8mes"=20sont=20?= =?UTF-8?q?traduites=20Norm:=20Suppression=20de=20cellpadding=20et=20cells?= =?UTF-8?q?pacing=20au=20profit=20de=20la=20feuille=20de=20style=20de=20l'?= =?UTF-8?q?espace=20"infos=20syst=E8me".?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/admin/system/constall.php | 13 +- htdocs/admin/system/gen-commande.php | 12 ++ htdocs/admin/system/gendata.php | 15 +- htdocs/admin/system/index.php | 61 +++--- .../admin/system/mysql-tables-contraintes.php | 35 +++- htdocs/admin/system/mysql-tables.php | 176 +++++++++--------- htdocs/admin/system/mysql.php | 50 +++-- htdocs/admin/system/os.php | 12 +- htdocs/admin/system/pear.php | 11 +- htdocs/admin/system/pear_packages.php | 13 +- htdocs/admin/system/phpinfo.php | 8 + htdocs/admin/system/pre.inc.php | 74 ++++---- htdocs/admin/system/update.php | 13 +- htdocs/admin/system/web.php | 22 ++- 14 files changed, 315 insertions(+), 200 deletions(-) diff --git a/htdocs/admin/system/constall.php b/htdocs/admin/system/constall.php index 68621dbd6cd..fccd1395c7a 100644 --- a/htdocs/admin/system/constall.php +++ b/htdocs/admin/system/constall.php @@ -19,18 +19,27 @@ * $Id$ * $Source$ */ + +/*! \file htdocs/admin/system/constall.php + \brief Page d'info de toutes les constantes + \version $Revision$ +*/ + require("./pre.inc.php"); +$langs->load("admin"); + + if (!$user->admin) accessforbidden(); llxHeader(); -print_titre("Liste de tous les paramètres de configuration Dolibarr"); +print_titre($langs->trans("SummaryConst")); print '
'; -print ''; +print '
'; print ''; print ''; print ''; diff --git a/htdocs/admin/system/gen-commande.php b/htdocs/admin/system/gen-commande.php index 36c1cc3f8cb..015448a0fe2 100644 --- a/htdocs/admin/system/gen-commande.php +++ b/htdocs/admin/system/gen-commande.php @@ -1,5 +1,6 @@ + * Copyright (C) 2004 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -18,8 +19,19 @@ * $Id$ * $Source$ */ + +/*! \file htdocs/admin/system/pre.inc.php + \brief Générateur de données aléatoires pour les produits et sociétés + \version $Revision$ +*/ + require("./pre.inc.php"); +$langs->load("admin"); + +if (!$user->admin) + accessforbidden(); + llxHeader(); $sql = "SELECT rowid FROM ".MAIN_DB_PREFIX."product"; $productsid = array(); diff --git a/htdocs/admin/system/gendata.php b/htdocs/admin/system/gendata.php index ddcb42cff17..866bbc0cedc 100644 --- a/htdocs/admin/system/gendata.php +++ b/htdocs/admin/system/gendata.php @@ -1,5 +1,6 @@ + * Copyright (C) 2004 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -18,12 +19,24 @@ * $Id$ * $Source$ */ + +/*! \file htdocs/admin/system/gendata.php + \brief Page de génération de données aléatoires pour les commandes et expedition + \version $Revision$ +*/ + require("./pre.inc.php"); +$langs->load("admin"); + $user->getrights('commande'); $user->getrights('expedition'); +if (!$user->admin) + accessforbidden(); + llxHeader(); + ?>

Attention : Ceci est un générateur de données aléatoires, ne pas utiliser sur une base de données en production, les opérations ne sont pas réversibles

@@ -51,7 +64,7 @@ $sql = "SELECT rowid FROM ".MAIN_DB_PREFIX."commande"; $commandesid = array(); if ($db->query($sql)) { $num = $db->num_rows(); $i = 0; while ($i < $num) { $row = $db->fetch_row($i); $commandesid[$i] = $row[0]; $i++; } } else { print "err"; } -print '
'.$langs->trans("Parameter").''.$langs->trans("Value").'
'; +print '
'; print ''; print ''; print ''; diff --git a/htdocs/admin/system/index.php b/htdocs/admin/system/index.php index d89f2efd311..c9da4aa7c63 100644 --- a/htdocs/admin/system/index.php +++ b/htdocs/admin/system/index.php @@ -20,80 +20,87 @@ * $Source$ */ -// Choix du menu à garder fixe -// Ceci va servir pour garder le menu fixe quelquesoit les liens cliqué +/*! \file htdocs/admin/system/index.php + \brief Page accueil infos système + \version $Revision$ +*/ + +// \todo eldy Choix du menu à garder fixe à finir. +// Ceci va servir pour garder le menu fixe quelquesoit les liens cliqués // dans ce menu. Cela permet d'appeler des pages en dehors sans perdre // le menu qui nous intéresse. -// ELDY: A finir //session_start(); //$fix_top_menu="accueil"; //$fix_left_menu="system"; //session_register("fix_top_menu"); //session_register("fix_left_menu"); -//include_once("../../allpre.inc.php"); require("./pre.inc.php"); +//include_once("../../allpre.inc.php"); + +$langs->load("admin"); +$langs->load("user"); + if (!$user->admin) accessforbidden(); llxHeader(); -print_titre("Résumé des informations systèmes Dolibarr"); +print_titre($langs->trans("SummarySystem")); print "
\n"; -print '
SociétésProduitsFactures
'; -print "\n"; -print "\n"; -//print "\n"; +print '
Dolibar
Version" . DOL_VERSION . "
Version de la base de données" . DOL_VERSION_DB . "
'; +print "\n"; +print "\n"; print '
Dolibarr
".$langs->trans("Version")."" . DOL_VERSION . "
'; print "
\n"; -print ''; -print "\n"; +print '
OS
'; +print "\n"; // Récupère la version de l'OS ob_start(); phpinfo(); $chaine = ob_get_contents(); ob_end_clean(); eregi('System ',$chaine,$reg); -print "\n"; +print "\n"; print '
".$langs->trans("OS")."
([^\/]*)
Version".$reg[1]."
".$langs->trans("Version")."".$reg[1]."
'; print "
\n"; -print ''; -print "\n"; -print "\n"; -print "\n"; +print '
Serveur Web
Version".$_SERVER["SERVER_SOFTWARE"]."
document root" . DOL_DOCUMENT_ROOT . "
'; +print "\n"; +print "\n"; +print "\n"; print '
".$langs->trans("WebServer")."
".$langs->trans("Version")."".$_SERVER["SERVER_SOFTWARE"]."
".$langs->trans("DocumentRootServer")."" . DOL_DOCUMENT_ROOT . "
'; print "
\n"; -print ''; -print "\n"; -print "\n"; -print "\n"; +print '
PHP
Version".phpversion()."
Liaison Web-PHP".php_sapi_name()."
'; +print "\n"; +print "\n"; +print "\n"; print '
".$langs->trans("Php")."
".$langs->trans("Version")."".phpversion()."
".$langs->trans("PhpWebLink")."".php_sapi_name()."
'; print "
\n"; -print ''; -print "\n"; +print '
Base de données
'; +print "\n"; $sql = "SHOW VARIABLES LIKE 'version'"; $result = $db->query($sql); if ($result) { $row = $db->fetch_row(); } -print "\n"; +print "\n"; print "\n"; -print "\n"; -print "\n"; -print "\n"; -print "\n"; +print "\n"; +print "\n"; +print "\n"; +print "\n"; print '
".$langs->trans("Database")."
Version" . $row[1] . "
".$langs->trans("Version")."" . $row[1] . "
".$langs->trans("Type")."" . $conf->db->type . "
Host" . $conf->db->host . "
User" . $conf->db->user . " 
Pass" . $conf->db->pass . " 
Database name" . $conf->db->name . "
".$langs->trans("Host")."" . $conf->db->host . "
".$langs->trans("User")."" . $conf->db->user . " 
".$langs->trans("Password")."" . $conf->db->pass . " 
".$langs->trans("DatabaseName")."" . $conf->db->name . "
'; diff --git a/htdocs/admin/system/mysql-tables-contraintes.php b/htdocs/admin/system/mysql-tables-contraintes.php index 02a3c97fbc3..8afafdddf36 100644 --- a/htdocs/admin/system/mysql-tables-contraintes.php +++ b/htdocs/admin/system/mysql-tables-contraintes.php @@ -19,40 +19,54 @@ * $Id$ * $Source$ */ + +/*! \file htdocs/admin/system/mysql-tables-contraintes.php + \brief Page d'info des contraintes de la base + \version $Revision$ +*/ + require("./pre.inc.php"); include_once $dolibarr_main_document_root."/lib/${dolibarr_main_db_type}.lib.php"; +$langs->load("admin"); + + if (!$user->admin) accessforbidden(); llxHeader(); + + +print_titre($langs->trans("Constraints")); + if($dolibarr_main_db_type=="mysql") { -print_titre("Tables Mysql - Contraintes"); $sql = "SHOW TABLE STATUS"; $base=1; } else { -print_titre("Tables PostreSql - Contraintes"); -$sql = "select conname,contype from pg_constraint;"; +$sql = "select conname,contype from pg_constraint;"; $base=2; } + print '
'; -print ''; +print '
'; print ''; + if($base==1) { -print ''; +print ''; print ''; -print ''; +print ''; } else { - print ''; - print ''; + print ''; + print ''; } + print "\n"; @@ -71,8 +85,9 @@ if ($result) print ''; print ''; - print ''; - + if($base==1) { + print ''; + } print ''; $i++; } diff --git a/htdocs/admin/system/mysql-tables.php b/htdocs/admin/system/mysql-tables.php index 648b5b9a90c..0b20d4de159 100644 --- a/htdocs/admin/system/mysql-tables.php +++ b/htdocs/admin/system/mysql-tables.php @@ -19,9 +19,17 @@ * $Id$ * $Source$ */ + +/*! \file htdocs/admin/system/mysql-tables.php + \brief Page d'infos des tables de la base + \version $Revision$ +*/ + require("./pre.inc.php"); include_once $dolibarr_main_document_root."/lib/${dolibarr_main_db_type}.lib.php"; +$langs->load("admin"); + if (!$user->admin) accessforbidden(); @@ -34,100 +42,96 @@ if ($_GET["action"] == 'convert') llxHeader(); +print_titre($langs->trans("Tables")." ".ucfirst($dolibarr_main_db_type)); + if($dolibarr_main_db_type=="mysql") { - - print_titre("Tables Mysql"); - -print '
'; -print '
Tables'.$langs->trans("Tables").''.$langs->trans("Type").'Contraintes'.$langs->trans("Constraints").'ContraintesType de la contrainte'.$langs->trans("Constraints").''.$langs->trans("ConstraintsType").'
'.$row[0].''.$row[1].''.$row[14].''.$row[14].'
'; -print ''; -print ''; -print ''; -print ''; -print ''; -print ''; -print ''; -print ''; -print ''; -print ''; -print "\n"; - -$sql = "SHOW TABLE STATUS"; - -$result = $db->query($sql); -if ($result) -{ - $num = $db->num_rows(); - $var=True; - $i=0; - while ($i < $num) + print '
'; + print '
Nom de la table'.$langs->trans("Type").'Format lignesNb enr.Avg_row_lengthData_lengthMax_Data_lengthIndex_lengthLast check
'; + print ''; + print ''; + print ''; + print ''; + print ''; + print ''; + print ''; + print ''; + print ''; + print ''; + print "\n"; + + $sql = "SHOW TABLE STATUS"; + + $result = $db->query($sql); + if ($result) { - $row = $db->fetch_row($i); - $var=!$var; - print ""; - - print ''; - print ''; - if ($row[1] == "MyISAM") - { - print ''; - } - else - { - print ''; - } - print ''; - print ''; - print ''; - print ''; - print ''; - print ''; - print ''; - print ''; - $i++; + $num = $db->num_rows(); + $var=True; + $i=0; + while ($i < $num) + { + $row = $db->fetch_row($i); + $var=!$var; + print ""; + + print ''; + print ''; + if ($row[1] == "MyISAM") + { + print ''; + } + else + { + print ''; + } + print ''; + print ''; + print ''; + print ''; + print ''; + print ''; + print ''; + print ''; + $i++; + } } } - -} else { -print_titre("Tables Mysql"); -print '
'; -print '
'.$langs->trans("TableName").''.$langs->trans("Type").''.$langs->trans("TableLineFormat").''.$langs->trans("NbOfRecord").'Avg_row_lengthData_lengthMax_Data_lengthIndex_lengthLast check
'.$row[0].''.$row[1].'Convertir-'.$row[2].''.$row[3].''.$row[4].''.$row[5].''.$row[6].''.$row[7].''.$row[12].'
'.$row[0].''.$row[1].'Convertir-'.$row[2].''.$row[3].''.$row[4].''.$row[5].''.$row[6].''.$row[7].''.$row[12].'
'; -print ''; -print ''; -print ''; -print ''; -print ''; -print ''; -print ''; -print "\n"; -$sql = "select relname,seq_tup_read,idx_tup_fetch,n_tup_ins,n_tup_upd,n_tup_del - from pg_stat_user_tables;"; - -$result = $db->query($sql); -if ($result) -{ - $num = $db->num_rows(); - $var=True; - $i=0; - while ($i < $num) + print '
'; + print '
Nom de la tableNombre de tuples luNb index fetcher.Nbre de tuples insererNbre de tuple modifierNbre de tuple supprimer
'; + print ''; + print ''; + print ''; + print ''; + print ''; + print ''; + print ''; + print "\n"; + $sql = "select relname,seq_tup_read,idx_tup_fetch,n_tup_ins,n_tup_upd,n_tup_del from pg_stat_user_tables;"; + + $result = $db->query($sql); + if ($result) { - $row = $db->fetch_row($i); - $var=!$var; - print ""; - print ''; - print ''; - print ''; - print ''; - print ''; - print ''; - print ''; - $i++; - } -} -print '
'.$langs->trans("TableName").'Nombre de tuples luNb index fetcher.Nbre de tuples insererNbre de tuple modifierNbre de tuple supprimer
'.$row[0].''.$row[1].''.$row[2].''.$row[3].''.$row[4].''.$row[5].'
'; + $num = $db->num_rows(); + $var=True; + $i=0; + while ($i < $num) + { + $row = $db->fetch_row($i); + $var=!$var; + print ""; + print ''.$row[0].''; + print ''.$row[1].''; + print ''.$row[2].''; + print ''.$row[3].''; + print ''.$row[4].''; + print ''.$row[5].''; + print ''; + $i++; + } + } + print ''; } llxFooter(); ?> diff --git a/htdocs/admin/system/mysql.php b/htdocs/admin/system/mysql.php index 7968d417082..13ff85afbe4 100644 --- a/htdocs/admin/system/mysql.php +++ b/htdocs/admin/system/mysql.php @@ -19,44 +19,40 @@ * $Id$ * $Source$ */ + +/*! \file htdocs/admin/system/pre.inc.php + \brief Page des infos système de la base de donnée + \version $Revision$ +*/ + require("./pre.inc.php"); +include_once $dolibarr_main_document_root."/lib/${dolibarr_main_db_type}.lib.php"; -//include "/home/vegeta/www/dolibarr/htdocs/conf/conf.php"; -// ici comme ça j'ai la style sheet! - -/*$conf = "../../conf/conf.php"; -if (file_exists($conf)) -{ - include($conf); -}*/ - - include_once $dolibarr_main_document_root."/lib/${dolibarr_main_db_type}.lib.php"; - - +$langs->load("admin"); if (!$user->admin) accessforbidden(); llxHeader(); +print_titre($langs->trans("DatabaseConfiguration")); + if($dolibarr_main_db_type=="mysql") { - print_titre("Configuration MySql"); $sql = "SHOW VARIABLES"; $base=1; } else { - print_titre("Configuration Pgsql"); $sql = "select name,setting from pg_settings;"; $base=2; } print '
'; -print ''; +print '
'; print ''; -print ''; -print ''; +print ''; +print ''; print "\n"; @@ -68,16 +64,16 @@ if ($result) $var=True; while ($i < $num) { - $objp = $db->fetch_object( $i); - $var=!$var; - print ""; - if($base==1) - print ''; - else - print ''; - print ''; - - $i++; + $objp = $db->fetch_object( $i); + $var=!$var; + print ""; + if($base==1) + print ''; + else + print ''; + print ''; + + $i++; } } print '
Propriétés du serveurValeur'.$langs->trans("Parameter").''.$langs->trans("Value").'
'.$objp->Variable_name.''.$objp->Value.''.$objp->name.''.$objp->setting.'
'.$objp->Variable_name.''.$objp->Value.''.$objp->name.''.$objp->setting.'
'; diff --git a/htdocs/admin/system/os.php b/htdocs/admin/system/os.php index a8ba4617abd..da88008442e 100644 --- a/htdocs/admin/system/os.php +++ b/htdocs/admin/system/os.php @@ -18,8 +18,16 @@ * $Id$ * $Source$ */ + +/*! \file htdocs/admin/system/os.php + \brief Page des infos système de l'OS + \version $Revision$ +*/ + require("./pre.inc.php"); +$langs->load("admin"); + if (!$user->admin) accessforbidden(); @@ -30,7 +38,7 @@ print_titre("OS"); print "
\n"; -print ''; +print '
'; print ''; print "\n"; // Récupère la version de l'OS @@ -39,7 +47,7 @@ phpinfo(); $chaine = ob_get_contents(); ob_end_clean(); eregi('System ',$chaine,$reg); -print "\n"; +print "\n"; print '
'.$langs->trans("Parameter").''.$langs->trans("Value").'
([^\/]*)
Version".$reg[1]."
".$langs->trans("Version")."".$reg[1]."
'; diff --git a/htdocs/admin/system/pear.php b/htdocs/admin/system/pear.php index 85d8764193a..e8914080f61 100644 --- a/htdocs/admin/system/pear.php +++ b/htdocs/admin/system/pear.php @@ -19,15 +19,24 @@ * $Id$ * $Source$ */ + +/*! \file htdocs/admin/system/pear.php + \brief Page des infos système de PEAR + \version $Revision$ +*/ + require("./pre.inc.php"); +$langs->load("admin"); + if (!$user->admin) accessforbidden(); llxHeader(); -print "TODO"; +// \todo +print $langs->trans("NotYetAvailable"); //include_once "PEAR/Info.php"; //$info = new PEAR_Info(); diff --git a/htdocs/admin/system/pear_packages.php b/htdocs/admin/system/pear_packages.php index acdcf2cb7d5..c95f639a328 100644 --- a/htdocs/admin/system/pear_packages.php +++ b/htdocs/admin/system/pear_packages.php @@ -19,17 +19,24 @@ * $Id$ * $Source$ */ + +/*! \file htdocs/admin/system/pear_packages.php + \brief Page des infos système des packages PEAR + \version $Revision$ +*/ + require("./pre.inc.php"); +$langs->load("admin"); + if (!$user->admin) accessforbidden(); -//require_once "PEAR/Info.php"; - llxHeader(); -print "TODO"; +// \todo Afficher info PEAR +print $langs->trans("NotYetAvailable"); //$info = new PEAR_Info(); //$info->getPackages(); diff --git a/htdocs/admin/system/phpinfo.php b/htdocs/admin/system/phpinfo.php index 9ac50c51523..5de2f0a4ec5 100644 --- a/htdocs/admin/system/phpinfo.php +++ b/htdocs/admin/system/phpinfo.php @@ -20,8 +20,16 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ + +/*! \file htdocs/admin/system/phpinfo.php + \brief Page des infos système de PHP + \version $Revision$ +*/ + require("./pre.inc.php"); +$langs->load("admin"); + if (!$user->admin) accessforbidden(); diff --git a/htdocs/admin/system/pre.inc.php b/htdocs/admin/system/pre.inc.php index 8beabb77583..0b9ddea9479 100644 --- a/htdocs/admin/system/pre.inc.php +++ b/htdocs/admin/system/pre.inc.php @@ -19,42 +19,52 @@ * $Id$ * $Source$ */ + +/*! \file htdocs/admin/system/pre.inc.php + \brief Gestionnaire menu page infos système + \version $Revision$ +*/ + require("../../main.inc.php"); function llxHeader($head = "", $urlp = "") { - /* - * - * - */ - top_menu($head); + global $langs; - $menu = new Menu(); - - $menu->add("index.php", "Résumé"); - - $menu->add(DOL_URL_ROOT."/about.php", "Dolibarr"); - $menu->add_submenu("constall.php", "Tous les paramètres"); - - $menu->add("os.php", "OS"); - - $menu->add("web.php", "Serveur Web"); - - $menu->add("phpinfo.php", "Php"); - - $menu->add_submenu("phpinfo.php?what=conf", "Conf"); - - $menu->add_submenu("phpinfo.php?what=env", "Env"); - - $menu->add_submenu("phpinfo.php?what=modules", "Modules"); - - $menu->add("pear.php", "Pear"); - $menu->add_submenu("pear_packages.php", "Paquets"); - - $menu->add("mysql.php", "Base de données"); - $menu->add_submenu("mysql-tables.php", "Tables"); - $menu->add_submenu("mysql-tables-contraintes.php", "Tables Contraintes"); - - left_menu($menu->liste); + $langs->load("admin"); + + /* + * + * + */ + top_menu($head); + + $menu = new Menu(); + + $menu->add("index.php", $langs->trans("Summary")); + + $menu->add(DOL_URL_ROOT."/about.php", "Dolibarr"); + $menu->add_submenu("constall.php", $langs->trans("AllParameters")); + + $menu->add("os.php", $langs->trans("OS")); + + $menu->add("web.php", $langs->trans("WebServer")); + + $menu->add("phpinfo.php", $langs->trans("Php")); + + $menu->add_submenu("phpinfo.php?what=conf", $langs->trans("PhpConf")); + + $menu->add_submenu("phpinfo.php?what=env", $langs->trans("PhpEnv")); + + $menu->add_submenu("phpinfo.php?what=modules", $langs->trans("PhpModules")); + + $menu->add("pear.php", $langs->trans("Pear")); + $menu->add_submenu("pear_packages.php", $langs->trans("PearPackages")); + + $menu->add("mysql.php", $langs->trans("Database")); + $menu->add_submenu("mysql-tables.php", $langs->trans("Tables")); + $menu->add_submenu("mysql-tables-contraintes.php", $langs->trans("Constraints")); + + left_menu($menu->liste); } ?> diff --git a/htdocs/admin/system/update.php b/htdocs/admin/system/update.php index a7a4d99d2dd..aad28c06fe4 100644 --- a/htdocs/admin/system/update.php +++ b/htdocs/admin/system/update.php @@ -1,5 +1,6 @@ + * Copyright (C) 2004 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -19,8 +20,16 @@ * $Source$ * */ + +/*! \file htdocs/admin/system/update.php + \brief Page de mise a jour Dolibarr + \version $Revision$ +*/ + require("./pre.inc.php"); +$langs->load("admin"); + $user->getrights('facture'); print "user " . $user->rights->facture->lire . " !"; @@ -44,7 +53,7 @@ if ($user->societe_id > 0) /* * */ -print_titre("Mise à jour système"); +print_titre($langs->trans("SystemUpdate")); $err = 0; /* * Factures @@ -97,7 +106,7 @@ $db->close(); if ($err == 0) { - print "

Votre système a été mise à jour avec succés."; + print '
'.$langs->trans("SystemSuccessfulyUpdated").''; } llxFooter("Dernière modification $Date$ révision $Revision$"); diff --git a/htdocs/admin/system/web.php b/htdocs/admin/system/web.php index 25f12f9b6f0..46bf6818242 100644 --- a/htdocs/admin/system/web.php +++ b/htdocs/admin/system/web.php @@ -18,25 +18,33 @@ * $Id$ * $Source$ */ + +/*! \file htdocs/admin/system/web.php + \brief Page des infos système du serveur Web + \version $Revision$ +*/ + require("./pre.inc.php"); +$langs->load("admin"); + if (!$user->admin) accessforbidden(); llxHeader(); -print_titre("Serveur Web"); +print_titre($langs->trans("WebServer")); print "
\n"; -print ''; +print '
'; print "\n"; -print "\n"; -print "\n"; -print "\n"; -print "\n"; -print "\n"; +print "\n"; +print "\n"; +print "\n"; +print "\n"; +print "\n"; print '
".$langs->trans("Parameter")."".$langs->trans("Value")."
Version".$_SERVER["SERVER_SOFTWARE"]."
Nom du serveur virtuel" . $_SERVER["SERVER_NAME"] . "
IP".$_SERVER["SERVER_ADDR"]."
Port" . $_SERVER["SERVER_PORT"] . "
Racine du serveur".$_SERVER["DOCUMENT_ROOT"]."
".$langs->trans("Version")."".$_SERVER["SERVER_SOFTWARE"]."
".$langs->trans("VirtualServerName")."" . $_SERVER["SERVER_NAME"] . "
".$langs->trans("IP")."".$_SERVER["SERVER_ADDR"]."
".$langs->trans("Port")."" . $_SERVER["SERVER_PORT"] . "
".$langs->trans("DocumentRootServer")."".$_SERVER["DOCUMENT_ROOT"]."
'; llxFooter();