|
@@ -137,7 +137,7 @@ discard block |
|
|
block discarded – undo |
|
137
|
137
|
|
|
138
|
138
|
print (ini_get('allow_url_fopen') ? img_picto($langs->trans("YouShouldSetThisToOff"), 'warning', 'class="pictofixedwidth nopaddingleft"') : img_picto('', 'tick', 'class="pictofixedwidth"'))."<strong>PHP allow_url_fopen</strong> = ".(ini_get('allow_url_fopen') ? ini_get('allow_url_fopen') : yn(0)).' <span class="opacitymedium">('.$langs->trans("RecommendedValueIs", $langs->transnoentitiesnoconv("No")).", except if Yes is required by some external modules)</span><br>\n"; |
|
139
|
139
|
|
|
140
|
|
-print (ini_get('allow_url_include') ? img_picto($langs->trans("YouShouldSetThisToOff"), 'warning', 'class="pictofixedwidth nopaddingleft"') : img_picto('', 'tick', 'class="pictofixedwidth"')). "<strong>PHP allow_url_include</strong> = ".(ini_get('allow_url_include') ? ini_get('allow_url_include') : yn(0)).' <span class="opacitymedium">('.$langs->trans("RecommendedValueIs", $langs->transnoentitiesnoconv("No")).")</span><br>\n"; |
|
|
140
|
+print (ini_get('allow_url_include') ? img_picto($langs->trans("YouShouldSetThisToOff"), 'warning', 'class="pictofixedwidth nopaddingleft"') : img_picto('', 'tick', 'class="pictofixedwidth"'))."<strong>PHP allow_url_include</strong> = ".(ini_get('allow_url_include') ? ini_get('allow_url_include') : yn(0)).' <span class="opacitymedium">('.$langs->trans("RecommendedValueIs", $langs->transnoentitiesnoconv("No")).")</span><br>\n"; |
|
141
|
141
|
//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"; |
|
142
|
142
|
|
|
143
|
143
|
if (getDolGlobalString('MAIN_SECURITY_SHOW_MORE_INFO')) { |
|
@@ -210,7 +210,7 @@ discard block |
|
|
block discarded – undo |
|
210
|
210
|
print '<br>'; |
|
211
|
211
|
|
|
212
|
212
|
// JSON |
|
213
|
|
-$loadedExtensions = array_map('strtolower', get_loaded_extensions(false)); |
|
|
213
|
+$loadedExtensions = array_map('strtolower', get_loaded_extensions(false)); |
|
214
|
214
|
$test = !in_array('json', $loadedExtensions); |
|
215
|
215
|
if ($test || function_exists('dol_json_decode')) { |
|
216
|
216
|
print img_picto('', 'error', 'class="pictofixedwidth nopaddingleft"'); |
|
@@ -284,7 +284,7 @@ discard block |
|
|
block discarded – undo |
|
284
|
284
|
print '<br>'; |
|
285
|
285
|
print '<br>'; |
|
286
|
286
|
|
|
287
|
|
-print '<strong>'.$langs->trans("PermissionsOnFile", $conffile).'</strong>: '; // $conffile is defined into filefunc.inc.php |
|
|
287
|
+print '<strong>'.$langs->trans("PermissionsOnFile", $conffile).'</strong>: '; // $conffile is defined into filefunc.inc.php |
|
288
|
288
|
$perms = fileperms($dolibarr_main_document_root.'/'.$conffile); |
|
289
|
289
|
if ($perms) { |
|
290
|
290
|
if (($perms & 0x0004) || ($perms & 0x0002)) { |
|
@@ -513,11 +513,11 @@ discard block |
|
|
block discarded – undo |
|
513
|
513
|
$umask = getDolGlobalString('MAIN_UMASK'); |
|
514
|
514
|
|
|
515
|
515
|
print '<strong>'.$langs->trans("UMask").'</strong>: '; |
|
516
|
|
-if (! in_array($umask, array('600', '660', '0600', '0660'))) { |
|
|
516
|
+if (!in_array($umask, array('600', '660', '0600', '0660'))) { |
|
517
|
517
|
print img_warning().' '; |
|
518
|
518
|
} |
|
519
|
519
|
print $umask; |
|
520
|
|
-if (! in_array($umask, array('600', '660', '0600', '0660'))) { |
|
|
520
|
+if (!in_array($umask, array('600', '660', '0600', '0660'))) { |
|
521
|
521
|
print ' <span class="opacitymedium">('.$langs->trans("Recommended").': 0600 | 0660)</span>'; |
|
522
|
522
|
} |
|
523
|
523
|
print '<br>'; |
|
@@ -562,7 +562,7 @@ discard block |
|
|
block discarded – undo |
|
562
|
562
|
if (!getDolGlobalString('MAIN_ANTIVIRUS_UPLOAD_ON') || !getDolGlobalString('MAIN_ANTIVIRUS_COMMAND')) { |
|
563
|
563
|
print ' - <span class="opacitymedium">'.$langs->trans("Recommended").': '.$langs->trans("DefinedAPathForAntivirusCommandIntoSetup", $langs->transnoentitiesnoconv("Home")." - ".$langs->transnoentitiesnoconv("Setup")." - ".$langs->transnoentitiesnoconv("Security")).'</span>'; |
|
564
|
564
|
} else { |
|
565
|
|
- print ' - ' . getDolGlobalString('MAIN_ANTIVIRUS_COMMAND'); |
|
|
565
|
+ print ' - '.getDolGlobalString('MAIN_ANTIVIRUS_COMMAND'); |
|
566
|
566
|
if (defined('MAIN_ANTIVIRUS_COMMAND') && !defined('MAIN_ANTIVIRUS_BYPASS_COMMAND_AND_PARAM')) { |
|
567
|
567
|
print ' - <span class="opacitymedium">'.$langs->trans("ValueIsForcedBySystem").'</span>'; |
|
568
|
568
|
} |