* Copyright (C) 2004-2007 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. */ /** \file htdocs/admin/system/index.php \brief Page accueil infos système \version $Id$ */ 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(); /* * View */ 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 "\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("DriverType")."" . $conf->db->type . "
".$langs->trans("User")."" . $conf->db->user . "
".$langs->trans("Password")."" . eregi_replace('.','*',$dolibarr_main_db_pass) . "
".$langs->trans("DBStoringCharset")."" . $db->getDefaultCharacterSetDatabase() . "
".$langs->trans("DBSortingCharset")."" . $db->getDefaultCollationDatabase() . "
'; print '
'; // conf.php file $configfileparameters=array( // 'separator', 'dolibarr_main_url_root', 'dolibarr_main_document_root', 'dolibarr_main_data_root', 'separator', 'dolibarr_main_db_host', 'dolibarr_main_db_port', 'dolibarr_main_db_name', 'dolibarr_main_db_type', 'dolibarr_main_db_user', 'dolibarr_main_db_pass', 'dolibarr_main_db_character_set', 'dolibarr_main_db_collation', 'separator', 'dolibarr_main_authentication', 'separator', 'dolibarr_main_auth_ldap_login_attribute', 'dolibarr_main_auth_ldap_host', 'dolibarr_main_auth_ldap_port', 'dolibarr_main_auth_ldap_version', 'dolibarr_main_auth_ldap_dn', 'dolibarr_main_auth_ldap_admin_login', 'dolibarr_main_auth_ldap_admin_pass', 'dolibarr_main_auth_ldap_debug', 'separator', 'dolibarr_smarty_libs_dir', 'dolibarr_smarty_compile', 'dolibarr_smarty_cache' ); $configfilelib=array( // 'separator', $langs->trans("URLRoot"), $langs->trans("DocumentRootServer"), $langs->trans("DataRootServer"), 'separator', $langs->trans("DatabaseServer"), $langs->trans("DatabasePort"), $langs->trans("DatabaseName"), $langs->trans("DriverType"), $langs->trans("User"), $langs->trans("Password"), $langs->trans("DBStoringCharset"), $langs->trans("DBSortingCharset"), 'separator', $langs->trans("AuthenticationMode"), 'separator', 'dolibarr_main_auth_ldap_login_attribute', 'dolibarr_main_auth_ldap_host', 'dolibarr_main_auth_ldap_port', 'dolibarr_main_auth_ldap_version', 'dolibarr_main_auth_ldap_dn', 'dolibarr_main_auth_ldap_admin_login', 'dolibarr_main_auth_ldap_admin_pass', 'dolibarr_main_auth_ldap_debug', '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}; // TODO Afficher charset effectif de base $db if ($key == 'dolibarr_main_db_charset') { } print "
'; print '
'; llxFooter('$Date$ - $Revision$'); ?>