* 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"); $langs->load("install"); 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 '
".$langs->trans("WebServer")."
".$langs->trans("Version")."".$_SERVER["SERVER_SOFTWARE"]."
'; print "
\n"; // Php print ''; print "\n"; print "\n"; print "\n"; print '
".$langs->trans("Php")."
".$langs->trans("Version")."".phpversion()."
".$langs->trans("PhpWebLink")."".php_sapi_name()."
'; 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("DatabaseServer")."" . $conf->db->host . "
".$langs->trans("DatabaseName")."" . $conf->db->name . "
".$langs->trans("User")."" . $conf->db->user . " 
".$langs->trans("Password")."" . ereg_replace(".","*",$conf->db->pass) . " 
".$langs->trans("DriverType")."" . $conf->db->type . "
'; print '
'; // conf.php file $configfileparameters=array('dolibarr_main_url_root', 'dolibarr_main_document_root', 'dolibarr_main_data_root', 'dolibarr_main_db_host', 'dolibarr_main_db_name', 'dolibarr_main_db_user', 'dolibarr_main_db_pass', 'dolibarr_main_db_type', 'separator', 'dolibarr_main_authentication', 'separator', 'dolibarr_smarty_libs_dir', 'dolibarr_smarty_compile', 'dolibarr_smarty_cache' ); $configfilelib=array($langs->trans("URLRoot"), $langs->trans("DocumentRootServer"), $langs->trans("DataRootServer"), $langs->trans("DatabaseServer"), $langs->trans("DatabaseName"), $langs->trans("Login"), $langs->trans("Password"), $langs->trans("DriverType"), 'separator', $langs->trans("AuthenticationMode"), 'separator', $langs->trans("SmartyLibs"), $langs->trans("SmartyCompile"), $langs->trans("SmartyCache") ); $var=true; print ''; print ''; print ''; print ''; print ''."\n"; $i=0; foreach($configfileparameters as $key) { $var=!$var; print ""; if ($key == 'separator') { print ''; } else { print "'; print ""; } print "\n"; $i++; } print '
'.$langs->trans("ConfigurationFile").''.$langs->trans("Parameter").''.$langs->trans("Value").'
 ".$configfilelib[$i].''.$key.'"; if ($key == 'dolibarr_main_db_pass') print eregi_replace('.','*',${$key}); else print ${$key}; print "
'; print '
'; llxFooter('$Date$ - $Revision$'); ?>