2004-10-19 18:58:50 +00:00
|
|
|
<?php
|
2007-01-05 14:39:50 +00:00
|
|
|
/* Copyright (C) 2001-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
2011-07-27 23:50:52 +00:00
|
|
|
* Copyright (C) 2004-2011 Laurent Destailleur <eldy@users.sourceforge.net>
|
2012-12-30 14:13:49 +00:00
|
|
|
* Copyright (C) 2005-2010 Regis Houssin <regis.houssin@capnetworks.com>
|
2003-08-27 11:44:00 +00:00
|
|
|
*
|
|
|
|
|
* 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
|
2013-01-16 14:36:08 +00:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2003-08-27 11:44:00 +00:00
|
|
|
* (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
|
2011-07-31 22:21:57 +00:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2003-08-27 11:44:00 +00:00
|
|
|
*/
|
2004-02-12 00:23:11 +00:00
|
|
|
|
2005-06-11 11:11:17 +00:00
|
|
|
/**
|
2009-04-17 15:43:28 +00:00
|
|
|
* \file htdocs/admin/system/index.php
|
2011-07-27 23:50:52 +00:00
|
|
|
* \brief Home page of system information
|
2009-04-17 15:43:28 +00:00
|
|
|
*/
|
2004-09-04 11:19:13 +00:00
|
|
|
|
2012-08-22 21:24:21 +00:00
|
|
|
require '../../main.inc.php';
|
2012-08-22 21:11:24 +00:00
|
|
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
2004-09-04 11:19:13 +00:00
|
|
|
|
|
|
|
|
$langs->load("admin");
|
|
|
|
|
$langs->load("user");
|
2007-04-24 12:17:34 +00:00
|
|
|
$langs->load("install");
|
2004-09-04 11:19:13 +00:00
|
|
|
|
2011-10-05 21:03:05 +00:00
|
|
|
if (! $user->admin) accessforbidden();
|
2004-02-15 00:05:21 +00:00
|
|
|
|
2009-01-15 22:49:06 +00:00
|
|
|
|
2011-07-27 23:50:52 +00:00
|
|
|
/*
|
|
|
|
|
* Actions
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
// None
|
|
|
|
|
|
|
|
|
|
|
2008-06-05 17:40:36 +00:00
|
|
|
/*
|
|
|
|
|
* View
|
|
|
|
|
*/
|
2007-04-24 12:17:34 +00:00
|
|
|
|
2003-08-27 11:44:00 +00:00
|
|
|
llxHeader();
|
|
|
|
|
|
2006-08-12 15:32:57 +00:00
|
|
|
print_fiche_titre($langs->trans("SummarySystem"),'','setup');
|
2004-02-12 00:23:11 +00:00
|
|
|
|
2006-08-12 15:32:57 +00:00
|
|
|
|
2004-09-04 11:19:13 +00:00
|
|
|
print '<table class="noborder" width="100%">';
|
|
|
|
|
print "<tr class=\"liste_titre\"><td colspan=\"2\">Dolibarr</td></tr>\n";
|
2009-03-09 21:59:29 +00:00
|
|
|
$dolversion=version_dolibarr();
|
|
|
|
|
print "<tr $bc[0]><td width=\"280\">".$langs->trans("Version")."</td><td>".$dolversion."</td></tr>\n";
|
2004-02-12 00:23:11 +00:00
|
|
|
print '</table>';
|
|
|
|
|
|
|
|
|
|
print "<br>\n";
|
2003-08-27 11:44:00 +00:00
|
|
|
|
2004-09-04 11:19:13 +00:00
|
|
|
print '<table class="noborder" width="100%">';
|
|
|
|
|
print "<tr class=\"liste_titre\"><td colspan=\"2\">".$langs->trans("OS")."</td></tr>\n";
|
2009-08-20 01:40:32 +00:00
|
|
|
$osversion=version_os();
|
|
|
|
|
print "<tr $bc[0]><td width=\"280\">".$langs->trans("Version")."</td><td>".$osversion."</td></tr>\n";
|
2004-02-12 00:23:11 +00:00
|
|
|
print '</table>';
|
|
|
|
|
|
|
|
|
|
print "<br>\n";
|
|
|
|
|
|
2005-07-02 13:19:18 +00:00
|
|
|
// Serveur web
|
2004-09-04 11:19:13 +00:00
|
|
|
print '<table class="noborder" width="100%">';
|
|
|
|
|
print "<tr class=\"liste_titre\"><td colspan=\"2\">".$langs->trans("WebServer")."</td></tr>\n";
|
2009-03-09 21:59:29 +00:00
|
|
|
$apacheversion=version_webserver();
|
|
|
|
|
print "<tr $bc[0]><td width=\"280\">".$langs->trans("Version")."</td><td>".$apacheversion."</td></tr>\n";
|
2004-02-12 00:23:11 +00:00
|
|
|
print '</table>';
|
2003-08-27 11:44:00 +00:00
|
|
|
|
2004-02-12 00:23:11 +00:00
|
|
|
print "<br>\n";
|
2003-08-27 11:44:00 +00:00
|
|
|
|
2005-07-02 13:19:18 +00:00
|
|
|
// Php
|
2004-09-04 11:19:13 +00:00
|
|
|
print '<table class="noborder" width="100%">';
|
2012-07-27 16:40:06 +00:00
|
|
|
print "<tr class=\"liste_titre\"><td colspan=\"2\">".$langs->trans("PHP")."</td></tr>\n";
|
2009-08-22 03:09:52 +00:00
|
|
|
$phpversion=version_php();
|
|
|
|
|
print "<tr $bc[0]><td width=\"280\">".$langs->trans("Version")."</td><td>".$phpversion."</td></tr>\n";
|
2005-06-11 11:11:17 +00:00
|
|
|
print "<tr $bc[1]><td>".$langs->trans("PhpWebLink")."</td><td>".php_sapi_name()."</td></tr>\n";
|
2004-02-12 00:23:11 +00:00
|
|
|
print '</table>';
|
2003-08-27 11:44:00 +00:00
|
|
|
|
2004-02-12 00:23:11 +00:00
|
|
|
print "<br>\n";
|
2003-08-27 11:44:00 +00:00
|
|
|
|
2009-04-17 15:43:28 +00:00
|
|
|
// Database
|
2004-09-04 11:19:13 +00:00
|
|
|
print '<table class="noborder" width="100%">';
|
|
|
|
|
print "<tr class=\"liste_titre\"><td colspan=\"2\">".$langs->trans("Database")."</td></tr>\n";
|
2012-03-21 01:24:09 +00:00
|
|
|
$dblabel=getStaticMember(get_class($db),'label');
|
2009-08-22 03:09:52 +00:00
|
|
|
$dbversion=$db->getVersion();
|
2009-10-26 01:29:00 +00:00
|
|
|
print "<tr $bc[0]><td width=\"280\">".$langs->trans("Version")."</td><td>" .$dblabel." ".$dbversion."</td></tr>\n";
|
2003-08-27 11:44:00 +00:00
|
|
|
print '</table>';
|
2010-05-09 13:45:27 +00:00
|
|
|
// 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");
|
2011-08-13 00:47:59 +00:00
|
|
|
//print '<div class="error">'.$langs->trans("ErrorDatabaseParameterWrong",'standard_conforming_strings','on').'</div>';
|
2010-05-09 13:45:27 +00:00
|
|
|
}
|
|
|
|
|
}
|
2007-04-24 12:17:34 +00:00
|
|
|
print '<br>';
|
|
|
|
|
|
2010-05-09 13:45:27 +00:00
|
|
|
// Browser
|
2010-05-05 07:54:03 +00:00
|
|
|
print '<table class="noborder" width="100%">';
|
|
|
|
|
print "<tr class=\"liste_titre\"><td colspan=\"2\">".$langs->trans("Browser")."</td></tr>\n";
|
|
|
|
|
print "<tr $bc[0]><td width=\"280\">".$langs->trans("UserAgent")."</td><td>" .$_SERVER["HTTP_USER_AGENT"]."</td></tr>\n";
|
|
|
|
|
print "<tr $bc[1]><td width=\"280\">".$langs->trans("Smartphone")."</td><td>".(empty($conf->browser->phone)?$langs->trans("No"):$conf->browser->phone)."</td></tr>\n";
|
|
|
|
|
print '</table>';
|
|
|
|
|
print '<br>';
|
|
|
|
|
|
|
|
|
|
|
2011-07-27 23:50:52 +00:00
|
|
|
//print "<br>\n";
|
|
|
|
|
print info_admin($langs->trans("SystemInfoDesc")).'<br>';
|
|
|
|
|
|
2011-08-27 14:24:16 +00:00
|
|
|
llxFooter();
|
2011-10-05 21:03:05 +00:00
|
|
|
|
|
|
|
|
$db->close();
|
|
|
|
|
|
2003-08-27 11:44:00 +00:00
|
|
|
?>
|