dolibarr  9.0.0
index.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) 2001-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
3  * Copyright (C) 2004-2011 Laurent Destailleur <eldy@users.sourceforge.net>
4  * Copyright (C) 2005-2010 Regis Houssin <regis.houssin@inodbox.com>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
25 require '../../main.inc.php';
26 require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
27 
28 // Load translation files required by the page
29 $langs->loadLangs(array("admin", "user", "install"));
30 
31 if (! $user->admin) accessforbidden();
32 
33 
34 /*
35  * Actions
36  */
37 
38 // None
39 
40 
41 /*
42  * View
43  */
44 
45 llxHeader();
46 
47 print load_fiche_titre($langs->trans("SummarySystem"),'','title_setup');
48 
49 
50 print '<table class="noborder" width="100%">';
51 print "<tr class=\"liste_titre\"><td colspan=\"2\">Dolibarr</td></tr>\n";
52 $dolversion=version_dolibarr();
53 print "<tr $bc[0]><td width=\"280\">".$langs->trans("Version")."</td><td>".$dolversion."</td></tr>\n";
54 print '</table>';
55 
56 print "<br>\n";
57 
58 print '<table class="noborder" width="100%">';
59 print "<tr class=\"liste_titre\"><td colspan=\"2\">".$langs->trans("OS")."</td></tr>\n";
60 $osversion=version_os();
61 print "<tr $bc[0]><td width=\"280\">".$langs->trans("Version")."</td><td>".$osversion."</td></tr>\n";
62 print '</table>';
63 
64 print "<br>\n";
65 
66 // Serveur web
67 print '<table class="noborder" width="100%">';
68 print "<tr class=\"liste_titre\"><td colspan=\"2\">".$langs->trans("WebServer")."</td></tr>\n";
69 $apacheversion=version_webserver();
70 print "<tr $bc[0]><td width=\"280\">".$langs->trans("Version")."</td><td>".$apacheversion."</td></tr>\n";
71 print '</table>';
72 
73 print "<br>\n";
74 
75 // Php
76 print '<table class="noborder" width="100%">';
77 print "<tr class=\"liste_titre\"><td colspan=\"2\">".$langs->trans("PHP")."</td></tr>\n";
78 $phpversion=version_php();
79 print "<tr $bc[0]><td width=\"280\">".$langs->trans("Version")."</td><td>".$phpversion."</td></tr>\n";
80 print "<tr $bc[1]><td>".$langs->trans("PhpWebLink")."</td><td>".php_sapi_name()."</td></tr>\n";
81 print '</table>';
82 
83 print "<br>\n";
84 
85 // Database
86 print '<table class="noborder" width="100%">';
87 print "<tr class=\"liste_titre\"><td colspan=\"2\">".$langs->trans("Database")."</td></tr>\n";
88 $dblabel=$db::LABEL;
89 $dbversion=$db->getVersion();
90 print "<tr $bc[0]><td width=\"280\">".$langs->trans("Version")."</td><td>" .$dblabel." ".$dbversion."</td></tr>\n";
91 print '</table>';
92 // Add checks on database options
93 if ($db->type == 'pgsql')
94 {
95  // Check option standard_conforming_strings is on
96  $paramarray=$db->getServerParametersValues('standard_conforming_strings');
97 // if ($paramarray['standard_conforming_strings'] != 'on' && $paramarray['standard_conforming_strings'] != 1)
98 // {
99 // $langs->load("errors");
100 // }
101 }
102 print '<br>';
103 
104 // Browser
105 print '<table class="noborder" width="100%">';
106 print "<tr class=\"liste_titre\"><td colspan=\"2\">".$langs->trans("Browser")."</td></tr>\n";
107 print "<tr $bc[0]><td width=\"280\">".$langs->trans("UserAgent")."</td><td>" .$_SERVER["HTTP_USER_AGENT"]."</td></tr>\n";
108 print "<tr $bc[1]><td width=\"280\">".$langs->trans("Smartphone")."</td><td>".(($conf->browser->layout != 'phone')?$langs->trans("No"):$langs->trans("Yes"))."</td></tr>\n";
109 print '</table>';
110 print '<br>';
111 
112 
113 //print "<br>\n";
114 print info_admin($langs->trans("SystemInfoDesc")).'<br>';
115 
116 // End of page
117 llxFooter();
118 $db->close();
llxFooter()
Footer empty.
Definition: index.php:44
load_fiche_titre($titre, $morehtmlright='', $picto='title_generic.png', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
print
Draft customers invoices.
Definition: index.php:91
version_webserver()
Return web server version.
version_os()
Return OS version.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0)
Show a message to say access is forbidden and stop program Calling this function terminate execution ...
llxHeader()
Header empty.
Definition: index.php:36
info_admin($text, $infoonimgalt=0, $nodiv=0, $admin='1', $morecss='')
Show information for admin users or standard users.
version_dolibarr()
Return Dolibarr version.
version_php()
Return PHP version.