diff --git a/htdocs/admin/system/index.php b/htdocs/admin/system/index.php deleted file mode 100644 index cfb73b0c24e..00000000000 --- a/htdocs/admin/system/index.php +++ /dev/null @@ -1,119 +0,0 @@ - - * 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'; - -// Load translation files required by the page -$langs->loadLangs(array("admin", "user", "install")); - -if (!$user->admin) { - accessforbidden(); -} - - -/* - * Actions - */ - -// None - - -/* - * View - */ - -llxHeader(); - -print load_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")."".(($conf->browser->layout != 'phone') ? $langs->trans("No") : $langs->trans("Yes"))."
'; -print '
'; - - -//print "
\n"; -print info_admin($langs->trans("SystemInfoDesc")).'
'; - -// End of page -llxFooter(); -$db->close();