Fix phpcs
This commit is contained in:
parent
48867c39aa
commit
1834d642b3
@ -75,7 +75,7 @@ print '<br>';
|
|||||||
print '<strong>'.$langs->trans("Syslog").'</strong>: ';
|
print '<strong>'.$langs->trans("Syslog").'</strong>: ';
|
||||||
$test = empty($conf->syslog->enabled);
|
$test = empty($conf->syslog->enabled);
|
||||||
if ($test) {
|
if ($test) {
|
||||||
print img_picto('', 'tick.png').' '.$langs->trans("NotInstalled").' - '.$langs->trans("NotSlowedDownByThis");
|
print img_picto('', 'tick.png').' '.$langs->trans("NotInstalled").' <span class="opacitymedium">'.$langs->trans("NotSlowedDownByThis").'</span>';
|
||||||
} else {
|
} else {
|
||||||
if ($conf->global->SYSLOG_LEVEL > LOG_NOTICE) {
|
if ($conf->global->SYSLOG_LEVEL > LOG_NOTICE) {
|
||||||
print img_picto('', 'warning').' '.$langs->trans("ModuleActivatedWithTooHighLogLevel", $langs->transnoentities("Syslog"));
|
print img_picto('', 'warning').' '.$langs->trans("ModuleActivatedWithTooHighLogLevel", $langs->transnoentities("Syslog"));
|
||||||
@ -91,7 +91,7 @@ print '<br>';
|
|||||||
print '<strong>'.$langs->trans("DebugBar").'</strong>: ';
|
print '<strong>'.$langs->trans("DebugBar").'</strong>: ';
|
||||||
$test = empty($conf->debugbar->enabled);
|
$test = empty($conf->debugbar->enabled);
|
||||||
if ($test) {
|
if ($test) {
|
||||||
print img_picto('', 'tick.png').' '.$langs->trans("NotInstalled").' - '.$langs->trans("NotSlowedDownByThis");
|
print img_picto('', 'tick.png').' '.$langs->trans("NotInstalled").' <span class="opacitymedium">'.$langs->trans("NotSlowedDownByThis").'</span>';
|
||||||
} else {
|
} else {
|
||||||
print img_picto('', 'warning').' '.$langs->trans("ModuleActivated", $langs->transnoentities("DebugBar"));
|
print img_picto('', 'warning').' '.$langs->trans("ModuleActivated", $langs->transnoentities("DebugBar"));
|
||||||
//print ' '.$langs->trans("MoreInformation").' <a href="'.DOL_URL_ROOT.'/admin/system/xdebug.php'.'">XDebug admin page</a>';
|
//print ' '.$langs->trans("MoreInformation").' <a href="'.DOL_URL_ROOT.'/admin/system/xdebug.php'.'">XDebug admin page</a>';
|
||||||
@ -111,7 +111,7 @@ if ($test) {
|
|||||||
print ' <a href="'.dol_buildpath('/memcached/admin/memcached.php', 1).'">Memcached module admin page</a>';
|
print ' <a href="'.dol_buildpath('/memcached/admin/memcached.php', 1).'">Memcached module admin page</a>';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
print img_picto('', 'warning').' '.$langs->trans("MemcachedNotAvailable");
|
print $langs->trans("MemcachedNotAvailable");
|
||||||
}
|
}
|
||||||
print '</br>';
|
print '</br>';
|
||||||
|
|
||||||
|
|||||||
@ -66,7 +66,26 @@ if (function_exists('php_ini_loaded_file')) {
|
|||||||
print "<br>\n";
|
print "<br>\n";
|
||||||
|
|
||||||
// Get versionof web server
|
// Get versionof web server
|
||||||
print "<br><strong>Web server</strong> - ".$langs->trans("Version").": ".$_SERVER["SERVER_SOFTWARE"]."<br>\n";
|
print "<br><strong>Web server - ".$langs->trans("Version")."</strong>: ".$_SERVER["SERVER_SOFTWARE"]."<br>\n";
|
||||||
|
print '<strong>'.$langs->trans("DataRootServer")."</strong>: ".DOL_DATA_ROOT."<br>\n";
|
||||||
|
// Web user group by default
|
||||||
|
$labeluser = dol_getwebuser('user');
|
||||||
|
$labelgroup = dol_getwebuser('group');
|
||||||
|
if ($labeluser && $labelgroup) {
|
||||||
|
print '<strong>'.$langs->trans("WebUserGroup")." (env vars)</strong> : ".$labeluser.':'.$labelgroup;
|
||||||
|
if (function_exists('posix_geteuid') && function_exists('posix_getpwuid')) {
|
||||||
|
$arrayofinfoofuser = posix_getpwuid(posix_geteuid());
|
||||||
|
print ' <span class="opacitymedium">(POSIX '.$arrayofinfoofuser['name'].':'.$arrayofinfoofuser['gecos'].':'.$arrayofinfoofuser['dir'].':'.$arrayofinfoofuser['shell'].')</span><br>'."\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Web user group real (detected by 'id' external command)
|
||||||
|
if (function_exists('exec')) {
|
||||||
|
$arrayout = array(); $varout = 0;
|
||||||
|
exec('id', $arrayout, $varout);
|
||||||
|
if (empty($varout)) { // Test command is ok. Work only on Linux OS.
|
||||||
|
print '<strong>'.$langs->trans("WebUserGroup")." (real, 'id' command)</strong> : ".join(',', $arrayout)."<br>\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
print '<br>';
|
print '<br>';
|
||||||
|
|
||||||
print "<strong>PHP safe_mode</strong> = ".(ini_get('safe_mode') ? ini_get('safe_mode') : yn(0)).' <span class="opacitymedium">'.$langs->trans("Deprecated")." (removed in PHP 5.4)</span><br>\n";
|
print "<strong>PHP safe_mode</strong> = ".(ini_get('safe_mode') ? ini_get('safe_mode') : yn(0)).' <span class="opacitymedium">'.$langs->trans("Deprecated")." (removed in PHP 5.4)</span><br>\n";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user