25require
'../../main.inc.php';
26require_once DOL_DOCUMENT_ROOT.
'/core/lib/files.lib.php';
27require_once DOL_DOCUMENT_ROOT.
'/core/lib/security2.lib.php';
55llxHeader(
'', $langs->trans(
"InfoWebServer"),
'',
'', 0, 0,
'',
'',
'',
'mod-admin page-system_web');
59print
'<div class="div-table-responsive-no-min">';
60print
'<table class="noborder centpercent">';
61print
'<tr class="liste_titre"><td>'.$langs->trans(
"Parameter").
"</td><td></td></tr>\n";
62print
'<tr class="oddeven"><td>'.$langs->trans(
"Version").
"</td><td>".$_SERVER[
"SERVER_SOFTWARE"].
"</td></tr>\n";
63print
'<tr class="oddeven"><td>'.$langs->trans(
"VirtualServerName").
"</td><td>".$_SERVER[
"SERVER_NAME"].
"</td></tr>\n";
64print
'<tr class="oddeven"><td>'.$langs->trans(
"IP").
"</td><td>".$_SERVER[
"SERVER_ADDR"].
"</td></tr>\n";
65print
'<tr><td>'.$langs->trans(
"Port").
"</td><td>".$_SERVER[
"SERVER_PORT"].
"</td></tr>\n";
66print
'<tr><td>'.$langs->trans(
"DocumentRootServer").
"</td><td>".$_SERVER[
"DOCUMENT_ROOT"].
"</td></tr>\n";
67print
'<tr><td>'.$langs->trans(
"DataRootServer").
"</td><td>".DOL_DATA_ROOT.
"</td></tr>\n";
71if ($labeluser && $labelgroup) {
72 print
'<tr><td>'.$langs->trans(
"WebUserGroup").
" (env vars)</td><td>".$labeluser.
':'.$labelgroup;
73 if (function_exists(
'posix_geteuid') && function_exists(
'posix_getpwuid')) {
74 $arrayofinfoofuser = posix_getpwuid(posix_geteuid());
75 print
' <span class="opacitymedium">(POSIX '.$arrayofinfoofuser[
'name'].
':'.$arrayofinfoofuser[
'gecos'].
':'.$arrayofinfoofuser[
'dir'].
':'.$arrayofinfoofuser[
'shell'].
')</span>';
80if (function_exists(
'exec')) {
83 exec(
'id', $arrayout, $varout);
84 print
'<tr><td>'.$langs->trans(
"WebUserGroup").
" (real, 'id' command)</td><td>";
86 print implode(
',', $arrayout);
88 $langs->load(
"errors");
89 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($head='', $title='', $help_url='', $target='', $disablejs=0, $disablehead=0, $arrayofjs='', $arrayofcss='', $morequerystring='', $morecssonbody='', $replacemainareaby='', $disablenofollow=0, $disablenoindex=0)
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.