* Copyright (C) 2004-2005 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 * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * 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. * * $Id$ * $Source$ */ /** \file htdocs/admin/system/index.php \brief Page accueil infos système \version $Revision$ */ require("./pre.inc.php"); include_once $dolibarr_main_document_root."/lib/".$conf->db->type.".lib.php"; $langs->load("admin"); $langs->load("user"); if (!$user->admin) accessforbidden(); llxHeader(); print_titre($langs->trans("SummarySystem")); print "
\n"; print ''; print "\n"; print "\n"; print '
Dolibarr
".$langs->trans("Version")."" . DOL_VERSION . "
'; print "
\n"; print ''; 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 '
".$langs->trans("OS")."
([^\/]*)
".$langs->trans("Version")."".$reg[1]."
'; print "
\n"; print ''; print "\n"; print "\n"; print "\n"; print "\n"; print '
".$langs->trans("WebServer")."
".$langs->trans("Version")."".$_SERVER["SERVER_SOFTWARE"]."
".$langs->trans("DocumentRootServer")."" . DOL_DOCUMENT_ROOT . "
".$langs->trans("DataRootServer")."" . DOL_DATA_ROOT . "
'; print "
\n"; print ''; 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"; if ($conf->db->type == 'mysql') { $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 '
".$langs->trans("Database")."
".$langs->trans("Version")."" . $row[1] . "
".$langs->trans("Type")."" . $conf->db->type . "
".$langs->trans("Host")."" . $conf->db->host . "
".$langs->trans("User")."" . $conf->db->user . " 
".$langs->trans("Password")."" . ereg_replace(".","*",$conf->db->pass) . " 
".$langs->trans("DatabaseName")."" . $conf->db->name . "
'; llxFooter("Dernière modification $Date$ révision $Revision$"); ?>