24require
'../../main.inc.php';
25require_once DOL_DOCUMENT_ROOT.
'/core/lib/files.lib.php';
26require_once DOL_DOCUMENT_ROOT.
'/core/lib/security2.lib.php';
46llxHeader(
'', $langs->trans(
"InfoWebServer"),
'',
'', 0, 0,
'',
'',
'',
'mod-admin page-system_web');
50print
'<div class="div-table-responsive-no-min">';
51print
'<table class="noborder centpercent">';
52print
'<tr class="liste_titre"><td>'.$langs->trans(
"Parameter").
"</td><td>".$langs->trans(
"Value").
"</td></tr>\n";
53print
'<tr class="oddeven"><td>'.$langs->trans(
"Version").
"</td><td>".$_SERVER[
"SERVER_SOFTWARE"].
"</td></tr>\n";
54print
'<tr class="oddeven"><td>'.$langs->trans(
"VirtualServerName").
"</td><td>".$_SERVER[
"SERVER_NAME"].
"</td></tr>\n";
55print
'<tr class="oddeven"><td>'.$langs->trans(
"IP").
"</td><td>".$_SERVER[
"SERVER_ADDR"].
"</td></tr>\n";
56print
'<tr><td>'.$langs->trans(
"Port").
"</td><td>".$_SERVER[
"SERVER_PORT"].
"</td></tr>\n";
57print
'<tr><td>'.$langs->trans(
"DocumentRootServer").
"</td><td>".$_SERVER[
"DOCUMENT_ROOT"].
"</td></tr>\n";
58print
'<tr><td>'.$langs->trans(
"DataRootServer").
"</td><td>".DOL_DATA_ROOT.
"</td></tr>\n";
62if ($labeluser && $labelgroup) {
63 print
'<tr><td>'.$langs->trans(
"WebUserGroup").
" (env vars)</td><td>".$labeluser.
':'.$labelgroup;
64 if (function_exists(
'posix_geteuid') && function_exists(
'posix_getpwuid')) {
65 $arrayofinfoofuser = posix_getpwuid(posix_geteuid());
66 print
' <span class="opacitymedium">(POSIX '.$arrayofinfoofuser[
'name'].
':'.$arrayofinfoofuser[
'gecos'].
':'.$arrayofinfoofuser[
'dir'].
':'.$arrayofinfoofuser[
'shell'].
')</span>';
71if (function_exists(
'exec')) {
74 exec(
'id', $arrayout, $varout);
75 print
'<tr><td>'.$langs->trans(
"WebUserGroup").
" (real, 'id' command)</td><td>";
77 print implode(
',', $arrayout);
79 $langs->load(
"errors");
80 print
'<span class="opacitymedium">'.$langs->trans(
"ErrorExecIdFailed").
'</span>';
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader()
Empty header.
load_fiche_titre($title, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
dol_getwebuser($mode)
Return user/group account of web server.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.