dolibarr  7.0.0-beta
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@capnetworks.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 $langs->load("admin");
29 $langs->load("user");
30 $langs->load("install");
31 
32 if (! $user->admin) accessforbidden();
33 
34 
35 /*
36  * Actions
37  */
38 
39 // None
40 
41 
42 /*
43  * View
44  */
45 
46 llxHeader();
47 
48 print load_fiche_titre($langs->trans("SummarySystem"),'','title_setup');
49 
50 
51 print '<table class="noborder" width="100%">';
52 print "<tr class=\"liste_titre\"><td colspan=\"2\">Dolibarr</td></tr>\n";
53 $dolversion=version_dolibarr();
54 print "<tr $bc[0]><td width=\"280\">".$langs->trans("Version")."</td><td>".$dolversion."</td></tr>\n";
55 print '</table>';
56 
57 print "<br>\n";
58 
59 print '<table class="noborder" width="100%">';
60 print "<tr class=\"liste_titre\"><td colspan=\"2\">".$langs->trans("OS")."</td></tr>\n";
61 $osversion=version_os();
62 print "<tr $bc[0]><td width=\"280\">".$langs->trans("Version")."</td><td>".$osversion."</td></tr>\n";
63 print '</table>';
64 
65 print "<br>\n";
66 
67 // Serveur web
68 print '<table class="noborder" width="100%">';
69 print "<tr class=\"liste_titre\"><td colspan=\"2\">".$langs->trans("WebServer")."</td></tr>\n";
70 $apacheversion=version_webserver();
71 print "<tr $bc[0]><td width=\"280\">".$langs->trans("Version")."</td><td>".$apacheversion."</td></tr>\n";
72 print '</table>';
73 
74 print "<br>\n";
75 
76 // Php
77 print '<table class="noborder" width="100%">';
78 print "<tr class=\"liste_titre\"><td colspan=\"2\">".$langs->trans("PHP")."</td></tr>\n";
79 $phpversion=version_php();
80 print "<tr $bc[0]><td width=\"280\">".$langs->trans("Version")."</td><td>".$phpversion."</td></tr>\n";
81 print "<tr $bc[1]><td>".$langs->trans("PhpWebLink")."</td><td>".php_sapi_name()."</td></tr>\n";
82 print '</table>';
83 
84 print "<br>\n";
85 
86 // Database
87 print '<table class="noborder" width="100%">';
88 print "<tr class=\"liste_titre\"><td colspan=\"2\">".$langs->trans("Database")."</td></tr>\n";
89 $dblabel=$db::LABEL;
90 $dbversion=$db->getVersion();
91 print "<tr $bc[0]><td width=\"280\">".$langs->trans("Version")."</td><td>" .$dblabel." ".$dbversion."</td></tr>\n";
92 print '</table>';
93 // Add checks on database options
94 if ($db->type == 'pgsql')
95 {
96  // Check option standard_conforming_strings is on
97  $paramarray=$db->getServerParametersValues('standard_conforming_strings');
98 // if ($paramarray['standard_conforming_strings'] != 'on' && $paramarray['standard_conforming_strings'] != 1)
99 // {
100 // $langs->load("errors");
101 // }
102 }
103 print '<br>';
104 
105 // Browser
106 print '<table class="noborder" width="100%">';
107 print "<tr class=\"liste_titre\"><td colspan=\"2\">".$langs->trans("Browser")."</td></tr>\n";
108 print "<tr $bc[0]><td width=\"280\">".$langs->trans("UserAgent")."</td><td>" .$_SERVER["HTTP_USER_AGENT"]."</td></tr>\n";
109 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";
110 print '</table>';
111 print '<br>';
112 
113 
114 //print "<br>\n";
115 print info_admin($langs->trans("SystemInfoDesc")).'<br>';
116 
117 llxFooter();
118 
119 $db->close();
llxFooter()
Footer empty.
Definition: index.php:43
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 ...
info_admin($text, $infoonimgalt=0, $nodiv=0, $admin='1')
Show information for admin users or standard users.
llxHeader()
Header empty.
Definition: index.php:37
load_fiche_titre($titre, $morehtmlright='', $picto='title_generic.png', $pictoisfullpath=0, $id=0, $morecssontable='', $morehtmlcenter='')
Load a title with picto.
version_dolibarr()
Return Dolibarr version.
version_php()
Return PHP version.
print
Draft customers invoices.
Definition: index.php:91