* Copyright (C) 2004-2011 Laurent Destailleur * Copyright (C) 2005-2010 Regis Houssin * * 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 3 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, see . */ /** * \file htdocs/admin/system/index.php * \brief Home page of system information */ require '../../main.inc.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php'; $langs->load("admin"); $langs->load("user"); $langs->load("install"); if (! $user->admin) accessforbidden(); /* * Actions */ // None /* * View */ llxHeader(); print_fiche_titre($langs->trans("SummarySystem"),'','title_setup'); print ''; print "\n"; $dolversion=version_dolibarr(); print "\n"; print '
Dolibarr
".$langs->trans("Version")."".$dolversion."
'; print "
\n"; print ''; print "\n"; $osversion=version_os(); print "\n"; print '
".$langs->trans("OS")."
".$langs->trans("Version")."".$osversion."
'; print "
\n"; // Serveur web print ''; print "\n"; $apacheversion=version_webserver(); print "\n"; print '
".$langs->trans("WebServer")."
".$langs->trans("Version")."".$apacheversion."
'; print "
\n"; // Php print ''; print "\n"; $phpversion=version_php(); print "\n"; print "\n"; print '
".$langs->trans("PHP")."
".$langs->trans("Version")."".$phpversion."
".$langs->trans("PhpWebLink")."".php_sapi_name()."
'; print "
\n"; // Database print ''; print "\n"; $dblabel=$db::LABEL; $dbversion=$db->getVersion(); print "\n"; print '
".$langs->trans("Database")."
".$langs->trans("Version")."" .$dblabel." ".$dbversion."
'; // Add checks on database options if ($db->type == 'pgsql') { // Check option standard_conforming_strings is on $paramarray=$db->getServerParametersValues('standard_conforming_strings'); // if ($paramarray['standard_conforming_strings'] != 'on' && $paramarray['standard_conforming_strings'] != 1) // { // $langs->load("errors"); // } } print '
'; // Browser print ''; print "\n"; print "\n"; print "\n"; print '
".$langs->trans("Browser")."
".$langs->trans("UserAgent")."" .$_SERVER["HTTP_USER_AGENT"]."
".$langs->trans("Smartphone")."".(empty($conf->browser->phone)?$langs->trans("No"):$conf->browser->phone)."
'; print '
'; //print "
\n"; print info_admin($langs->trans("SystemInfoDesc")).'
'; llxFooter(); $db->close();