* Copyright (C) 2004-2006 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/databases/".$conf->db->type.".lib.php"; $langs->load("admin"); $langs->load("user"); if (!$user->admin) accessforbidden(); llxHeader(); print_fiche_titre($langs->trans("SummarySystem"),'','setup'); //print "
\n"; print info_admin($langs->trans("SystemInfoDesc")).'
'; 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"; // Serveur web 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"; // Php print ''; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print '
".$langs->trans("Php")."
".$langs->trans("Version")."".phpversion()."
".$langs->trans("PhpWebLink")."".php_sapi_name()."
".$langs->trans("SmartyLibs")."".$dolibarr_smarty_libs_dir."
".$langs->trans("SmartyCompile")."".$dolibarr_smarty_compile."
".$langs->trans("SmartyCache")."".$dolibarr_smarty_cache."
'; print "
\n"; // Base de donnée print ''; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print '
".$langs->trans("Database")."
".$langs->trans("Version")."" . $db->getVersion() . "
".$langs->trans("DriverType")."" . $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('$Date$ - $Revision$'); ?>