23 require
'../../main.inc.php';
24 require_once DOL_DOCUMENT_ROOT.
'/core/lib/memory.lib.php';
25 require_once DOL_DOCUMENT_ROOT.
'/core/lib/date.lib.php';
26 require_once DOL_DOCUMENT_ROOT.
'/core/lib/files.lib.php';
27 require_once DOL_DOCUMENT_ROOT.
'/core/lib/geturl.lib.php';
28 require_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
29 require_once DOL_DOCUMENT_ROOT.
'/core/lib/security2.lib.php';
30 require_once DOL_DOCUMENT_ROOT.
'/core/class/events.class.php';
33 $langs->loadLangs(array(
"install",
"other",
"admin",
"errors"));
39 if (
GETPOST(
'action',
'aZ09') ==
'donothing') {
43 $execmethod = empty($conf->global->MAIN_EXEC_USE_POPEN) ? 1 : $conf->global->MAIN_EXEC_USE_POPEN;
54 print
'<span class="opacitymedium">'.$langs->trans(
"YouMayFindSecurityAdviceHere",
'hhttps://wiki.dolibarr.org/index.php/Security_information').
'</span> (<a href="'.$_SERVER[
"PHP_SELF"].
'">'.$langs->trans(
"Reload").
'</a>)<br>';
61 print
"<strong>PHP</strong>: ".$langs->trans(
"Version").
": ".$phpversion;
62 if (function_exists(
'php_ini_loaded_file')) {
63 $inipath = php_ini_loaded_file();
64 print
" - <strong>INI</strong>: ".$inipath;
69 print
"<br><strong>Web server - ".$langs->trans(
"Version").
"</strong>: ".$_SERVER[
"SERVER_SOFTWARE"].
"<br>\n";
70 print
'<strong>'.$langs->trans(
"DataRootServer").
"</strong>: ".DOL_DATA_ROOT.
"<br>\n";
74 if ($labeluser && $labelgroup) {
75 print
'<strong>'.$langs->trans(
"WebUserGroup").
" (env vars)</strong> : ".$labeluser.
':'.$labelgroup;
76 if (function_exists(
'posix_geteuid') && function_exists(
'posix_getpwuid')) {
77 $arrayofinfoofuser = posix_getpwuid(posix_geteuid());
78 print
' <span class="opacitymedium">(POSIX '.$arrayofinfoofuser[
'name'].
':'.$arrayofinfoofuser[
'gecos'].
':'.$arrayofinfoofuser[
'dir'].
':'.$arrayofinfoofuser[
'shell'].
')</span><br>'.
"\n";
82 if (function_exists(
'exec')) {
83 $arrayout = array(); $varout = 0;
84 exec(
'id', $arrayout, $varout);
86 print
'<strong>'.$langs->trans(
"WebUserGroup").
" (real, 'id' command)</strong> : ".join(
',', $arrayout).
"<br>\n";
91 print
"<strong>PHP session.use_strict_mode</strong> = ".(ini_get(
'session.use_strict_mode') ?
'' :
img_warning().
' ').(ini_get(
'session.use_strict_mode') ? ini_get(
'session.use_strict_mode') :
yn(0)).
' <span class="opacitymedium">('.$langs->trans(
"RecommendedValueIs",
'1').
")</span><br>\n";
92 print
"<strong>PHP session.use_only_cookies</strong> = ".(ini_get(
'session.use_only_cookies') ?
'' :
img_warning().
' ').(ini_get(
'session.use_only_cookies') ? ini_get(
'session.use_only_cookies') :
yn(0)).
' <span class="opacitymedium">('.$langs->trans(
"RecommendedValueIs",
'1').
")</span><br>\n";
93 print
"<strong>PHP session.cookie_httponly</strong> = ".(ini_get(
'session.cookie_httponly') ?
'' :
img_warning().
' ').(ini_get(
'session.cookie_httponly') ? ini_get(
'session.cookie_httponly') :
'').
' <span class="opacitymedium">('.$langs->trans(
"RecommendedValueIs",
'1').
")</span><br>\n";
94 print
"<strong>PHP session.cookie_samesite</strong> = ".(ini_get(
'session.cookie_samesite') ? ini_get(
'session.cookie_samesite') :
'None');
95 if (!ini_get(
'session.cookie_samesite') || ini_get(
'session.cookie_samesite') ==
'Lax') {
96 print
' <span class="opacitymedium">('.$langs->trans(
"RecommendedValueIs",
'Lax').
")</span>";
97 } elseif (ini_get(
'session.cookie_samesite') ==
'Strict') {
98 print
' '.img_warning().
' <span class="opacitymedium">'.$langs->trans(
"WarningPaypalPaymentNotCompatibleWithStrict").
"</span>";
101 print
"<strong>PHP open_basedir</strong> = ".(ini_get(
'open_basedir') ? ini_get(
'open_basedir') :
yn(0).
' <span class="opacitymedium">('.$langs->trans(
"RecommendedValueIs", $langs->transnoentitiesnoconv(
"ARestrictedPath").
', '.$langs->transnoentitiesnoconv(
"Example").
': '.$_SERVER[
"DOCUMENT_ROOT"].
','.DOL_DATA_ROOT).
')</span>').
"<br>\n";
102 print
"<strong>PHP short_open_tag</strong> = ".((empty(ini_get(
'short_open_tag')) || ini_get(
'short_open_tag') ==
'Off') ?
yn(0) :
img_warning().
' '.
yn(0)).
' <span class="opacitymedium">('.$langs->trans(
"RecommendedValueIs", $langs->transnoentitiesnoconv(
"No")).
')</span>'.
"<br>\n";
103 print
"<strong>PHP allow_url_fopen</strong> = ".(ini_get(
'allow_url_fopen') ?
img_picto($langs->trans(
"YouShouldSetThisToOff"),
'warning').
' '.ini_get(
'allow_url_fopen') :
yn(0)).
' <span class="opacitymedium">('.$langs->trans(
"RecommendedValueIs", $langs->transnoentitiesnoconv(
"No")).
")</span><br>\n";
104 print
"<strong>PHP allow_url_include</strong> = ".(ini_get(
'allow_url_include') ?
img_picto($langs->trans(
"YouShouldSetThisToOff"),
'warning').
' '.ini_get(
'allow_url_include') :
yn(0)).
' <span class="opacitymedium">('.$langs->trans(
"RecommendedValueIs", $langs->transnoentitiesnoconv(
"No")).
")</span><br>\n";
106 print
"<strong>PHP disable_functions</strong> = ";
107 $arrayoffunctionsdisabled = explode(
',', ini_get(
'disable_functions'));
108 $arrayoffunctionstodisable = explode(
',',
'pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals');
109 if ($execmethod == 1) {
110 $arrayoffunctionstodisable2 = explode(
',',
'passthru,shell_exec,system,proc_open,popen');
111 $functiontokeep =
'exec';
113 $arrayoffunctionstodisable2 = explode(
',',
'exec,passthru,shell_exec,system,proc_open');
114 $functiontokeep =
'popen';
117 foreach ($arrayoffunctionsdisabled as $functionkey) {
121 print
'<span class="opacitymedium">'.$functionkey.
'</span>';
127 foreach ($arrayoffunctionstodisable as $functiontodisable) {
128 if (! in_array($functiontodisable, $arrayoffunctionsdisabled)) {
130 $todisabletext .=
', ';
132 $todisabletext .=
img_picto($langs->trans(
"YouShouldSetThisToOff"),
'warning').
' <span class="opacitymedium">'.$functiontodisable.
'</span>';
136 if ($todisabletext) {
137 print $langs->trans(
"YouShouldDisablePHPFunctions").
': '.$todisabletext;
142 foreach ($arrayoffunctionstodisable2 as $functiontodisable) {
143 if (! in_array($functiontodisable, $arrayoffunctionsdisabled)) {
145 $todisabletext .=
', ';
147 $todisabletext .=
img_picto($langs->trans(
"YouShouldSetThisToOff"),
'warning').
' <span class="opacitymedium">'.$functiontodisable.
'</span>';
151 if ($todisabletext) {
152 print $langs->trans(
"IfCLINotRequiredYouShouldDisablePHPFunctions").
': '.$todisabletext;
156 print $langs->trans(
"PHPFunctionsRequiredForCLI").
': ';
157 if (in_array($functiontokeep, $arrayoffunctionsdisabled)) {
158 print
img_picto($langs->trans(
"PHPFunctionsRequiredForCLI"),
'warning');
160 print
'<span class="opacitymedium">'.$functiontokeep.
'</span>';
166 print
'<strong>'.$langs->trans(
"XDebug").
'</strong>: ';
167 $test = !function_exists(
'xdebug_is_enabled') && !extension_loaded(
'xdebug');
169 print
img_picto(
'',
'tick.png').
' '.$langs->trans(
"NotInstalled").
' - '.$langs->trans(
"NotRiskOfLeakWithThis");
171 print
img_picto(
'',
'warning').
' '.$langs->trans(
"ModuleActivatedMayExposeInformation", $langs->transnoentities(
"XDebug"));
172 print
' - '.$langs->trans(
"MoreInformation").
' <a href="'.DOL_URL_ROOT.
'/admin/system/xdebug.php">XDebug admin page</a>';
182 print
load_fiche_titre($langs->trans(
"OSSetup").
' - '.$langs->trans(
"PermissionsOnFiles"),
'',
'folder');
184 print
'<strong>'.$langs->trans(
"PermissionsOnFilesInWebRoot").
'</strong>: ';
185 $arrayoffilesinroot =
dol_dir_list(DOL_DOCUMENT_ROOT,
'all', 1,
'', array(
'\/custom'),
'name', SORT_ASC, 4, 1,
'', 1);
186 $fileswithwritepermission = array();
187 foreach ($arrayoffilesinroot as $fileinroot) {
189 if (isset($fileinroot[
'perm']) && ($fileinroot[
'perm'] & 0222)) {
190 $fileswithwritepermission[] = $fileinroot[
'relativename'];
193 if (empty($fileswithwritepermission)) {
194 print
img_picto(
'',
'tick').
' '.$langs->trans(
"NoWritableFilesFoundIntoRootDir");
196 print
img_warning().
' '.$langs->trans(
"SomeFilesOrDirInRootAreWritable");
197 print
'<br>'.$langs->trans(
"Example").
': ';
199 foreach ($fileswithwritepermission as $filewithwritepermission) {
203 print
'<span class="opacitymedium">'.$filewithwritepermission.
'</span>';
214 print
'<strong>'.$langs->trans(
"PermissionsOnFile", $conffile).
'</strong>: ';
215 $perms = fileperms($dolibarr_main_document_root.
'/'.$conffile);
217 if (($perms & 0x0004) || ($perms & 0x0002)) {
218 print
img_warning().
' '.$langs->trans(
"ConfFileIsReadableOrWritableByAnyUsers");
222 print
' '.$langs->trans(
"User").
': '.$labeluser.
':'.$labelgroup;
223 if (function_exists(
'posix_geteuid') && function_exists(
'posix_getpwuid')) {
224 $arrayofinfoofuser = posix_getpwuid(posix_geteuid());
225 print
' <span class="opacitymedium">(POSIX '.$arrayofinfoofuser[
'name'].
':'.$arrayofinfoofuser[
'gecos'].
':'.$arrayofinfoofuser[
'dir'].
':'.$arrayofinfoofuser[
'shell'].
')</span>';
231 print
img_warning().
' '.$langs->trans(
"FailedToReadFile", $conffile);
236 $installlock = DOL_DATA_ROOT.
'/install.lock';
237 print
'<strong>'.$langs->trans(
"DolibarrSetup").
'</strong>: ';
238 if (file_exists($installlock)) {
239 print
img_picto(
'',
'tick').
' '.$langs->trans(
"InstallAndUpgradeLockedBy", $installlock);
241 print
img_warning().
' '.$langs->trans(
"WarningLockFileDoesNotExists", DOL_DATA_ROOT);
251 print
load_fiche_titre($langs->trans(
"ConfigurationFile").
' ('.$conffile.
')',
'',
'folder');
253 print
'<strong>$dolibarr_main_prod</strong>: '.($dolibarr_main_prod ? $dolibarr_main_prod :
'0');
254 if (empty($dolibarr_main_prod)) {
255 print
' '.img_picto(
'',
'warning').
' '.$langs->trans(
"IfYouAreOnAProductionSetThis", 1);
259 print
'<strong>$dolibarr_nocsrfcheck</strong>: '.(empty($dolibarr_nocsrfcheck) ?
'0' : $dolibarr_nocsrfcheck);
260 if (!empty($dolibarr_nocsrfcheck)) {
261 print
' '.img_picto(
'',
'warning').
' '.$langs->trans(
"IfYouAreOnAProductionSetThis", 0);
263 print
' <span class="opacitymedium">('.$langs->trans(
"Recommended").
': 0)</span>';
267 print
'<strong>$dolibarr_main_restrict_ip</strong>: ';
268 if (empty($dolibarr_main_restrict_ip)) {
269 print $langs->trans(
"None");
272 print $dolibarr_main_restrict_ip;
276 print
'<strong>$dolibarr_main_restrict_os_commands</strong>: ';
277 if (empty($dolibarr_main_restrict_os_commands)) {
278 print $langs->trans(
"None");
280 print $dolibarr_main_restrict_os_commands;
282 print
' <span class="opacitymedium">('.$langs->trans(
"RecommendedValueIs",
'mysqldump, mysql, pg_dump, pgrestore').
')</span>';
285 if (empty($conf->global->SECURITY_DISABLE_TEST_ON_OBFUSCATED_CONF)) {
286 print
'<strong>$dolibarr_main_db_pass</strong>: ';
287 if (!empty($dolibarr_main_db_pass) && empty($dolibarr_main_db_encrypted_pass)) {
288 print
img_picto(
'',
'warning').
' '.$langs->trans(
"DatabasePasswordNotObfuscated").
' <span class="opacitymedium">('.$langs->trans(
"Recommended").
': '.$langs->trans(
"SetOptionTo", $langs->transnoentitiesnoconv(
"MainDbPasswordFileConfEncrypted"),
yn(1)).
')</span>';
291 print
img_picto(
'',
'tick').
' '.$langs->trans(
"DatabasePasswordObfuscated");
305 print
load_fiche_titre($langs->trans(
"Menu").
' '.$langs->trans(
"SecuritySetup"),
'',
'folder');
308 print
'<strong>'.$langs->trans(
"UseCaptchaCode").
'</strong>: ';
309 print empty($conf->global->MAIN_SECURITY_ENABLECAPTCHA) ?
'' :
img_picto(
'',
'tick').
' ';
310 print
yn(empty($conf->global->MAIN_SECURITY_ENABLECAPTCHA) ? 0 : 1);
315 print
'<strong>'.$langs->trans(
"AntivirusEnabledOnUpload").
'</strong>: ';
316 print empty($conf->global->MAIN_ANTIVIRUS_COMMAND) ?
'' :
img_picto(
'',
'tick').
' ';
317 print
yn(empty($conf->global->MAIN_ANTIVIRUS_COMMAND) ? 0 : 1);
318 if (!empty($conf->global->MAIN_ANTIVIRUS_COMMAND)) {
319 print
' - '.$conf->global->MAIN_ANTIVIRUS_COMMAND;
320 if (defined(
'MAIN_ANTIVIRUS_COMMAND') && !defined(
'MAIN_ANTIVIRUS_BYPASS_COMMAND_AND_PARAM')) {
321 print
' - <span class="opacitymedium">'.$langs->trans(
"ValueIsForcedBySystem").
'</span>';
327 $securityevent =
new Events($db);
328 $eventstolog = $securityevent->eventstolog;
330 print
'<strong>'.$langs->trans(
"AuditedSecurityEvents").
'</strong>: ';
332 if (!empty($eventstolog) && is_array($eventstolog)) {
335 foreach ($eventstolog as $key => $arr) {
337 $key =
'MAIN_LOGEVENTS_'.$arr[
'id'];
338 $value = empty($conf->global->$key) ?
'' : $conf->global->$key;
343 $out .=
'<span class="opacitymedium">'.$key.
'</span>';
352 print
img_warning().
' '.$langs->trans(
"NoSecurityEventsAreAduited", $langs->transnoentities(
"Home").
' - '.$langs->transnoentities(
"Setup").
' - '.$langs->transnoentities(
"Security").
' - '.$langs->transnoentities(
"Audit")).
'<br>';
366 print
'<strong>'.$langs->trans(
"Syslog").
'</strong>: ';
367 $test = empty($conf->syslog->enabled);
369 print
img_picto(
'',
'tick.png').
' '.$langs->trans(
"NotInstalled").
' - '.$langs->trans(
"NotRiskOfLeakWithThis");
371 if ($conf->global->SYSLOG_LEVEL > LOG_NOTICE) {
372 print
img_picto(
'',
'warning').
' '.$langs->trans(
"ModuleActivatedWithTooHighLogLevel", $langs->transnoentities(
"Syslog"));
374 print
img_picto(
'',
'tick.png').
' '.$langs->trans(
"ModuleSyslogActivatedButLevelNotTooVerbose", $langs->transnoentities(
"Syslog"), $conf->global->SYSLOG_LEVEL);
381 print
'<strong>'.$langs->trans(
"DebugBar").
'</strong>: ';
382 $test = empty($conf->debugbar->enabled);
384 print
img_picto(
'',
'tick.png').
' '.$langs->trans(
"NotInstalled").
' - '.$langs->trans(
"NotRiskOfLeakWithThis");
386 print
img_picto(
'',
'error').
' '.$langs->trans(
"ModuleActivatedDoNotUseInProduction", $langs->transnoentities(
"DebugBar"));
399 if (empty($conf->api->enabled) && empty($conf->webservices->enabled)) {
400 print $langs->trans(
"APIsAreNotEnabled");
402 if (!empty($conf->webservices->enabled)) {
403 print $langs->trans(
'YouEnableDeprecatedWSAPIsUseRESTAPIsInstead').
"<br>\n";
406 if (!empty($conf->api->enabled)) {
407 print
'<strong>API_ENDPOINT_RULES</strong> = '.(empty($conf->global->API_ENDPOINT_RULES) ?
'<span class="opacitymedium">'.$langs->trans(
"Undefined").
' ('.$langs->trans(
"Example").
': login:0,users:0,setup:1,status:1,tickets:1,...)</span>' : $conf->global->API_ENDPOINT_RULES).
"<br>\n";
423 print
'<strong>MAIN_SECURITY_HASH_ALGO</strong> = '.(empty($conf->global->MAIN_SECURITY_HASH_ALGO) ?
'<span class="opacitymedium">'.$langs->trans(
"Undefined").
'</span>' : $conf->global->MAIN_SECURITY_HASH_ALGO).
" ";
424 if (empty($conf->global->MAIN_SECURITY_HASH_ALGO)) {
425 print
'<span class="opacitymedium"> If unset: \'md5\'</span>';
427 if ($conf->global->MAIN_SECURITY_HASH_ALGO !=
'password_hash') {
428 print
'<br><strong>MAIN_SECURITY_SALT</strong> = '.(empty($conf->global->MAIN_SECURITY_SALT) ?
'<span class="opacitymedium">'.$langs->trans(
"Undefined").
'</span>' : $conf->global->MAIN_SECURITY_SALT).
'<br>';
430 print
'<span class="opacitymedium">('.$langs->trans(
"Recommended").
': password_hash)</span>';
433 if ($conf->global->MAIN_SECURITY_HASH_ALGO !=
'password_hash') {
434 print
'<div class="info">The recommanded value for MAIN_SECURITY_HASH_ALGO is now \'password_hash\' but setting it now will make ALL existing passwords of all users not valid, so update is not possible.<br>';
435 print
'If you really want to switch, you must:<br>';
436 print
'- Go on home - setup - other and add constant MAIN_SECURITY_HASH_ALGO to value \'password_hash\'<br>';
437 print
'- In same session, WITHOUT LOGGING OUT, go into your admin user record and set a new password<br>';
438 print
'- You can now logout and login with this new password. You must now reset password of all other users.<br>';
443 print
'<strong>MAIN_SECURITY_ANTI_SSRF_SERVER_IP</strong> = '.(empty($conf->global->MAIN_SECURITY_ANTI_SSRF_SERVER_IP) ?
'<span class="opacitymedium">'.$langs->trans(
"Undefined").
'</span> <span class="opacitymedium">('.$langs->trans(
"Recommended").
': List of static IPs of server separated with coma - '.$langs->trans(
"Note").
': common loopback ip like 127.*.*.*, [::1] are already added)</span>' : $conf->global->MAIN_SECURITY_ANTI_SSRF_SERVER_IP).
"<br>";
446 print
'<strong>MAIN_ALLOW_SVG_FILES_AS_IMAGES</strong> = '.(empty($conf->global->MAIN_ALLOW_SVG_FILES_AS_IMAGES) ?
'0' : $conf->global->MAIN_ALLOW_SVG_FILES_AS_IMAGES).
' <span class="opacitymedium">('.$langs->trans(
"Recommended").
': 0)</span><br>';
449 print
'<strong>MAIN_ALWAYS_CREATE_LOCK_AFTER_LAST_UPGRADE</strong> = '.(empty($conf->global->MAIN_ALWAYS_CREATE_LOCK_AFTER_LAST_UPGRADE) ?
'<span class="opacitymedium">'.$langs->trans(
"Undefined").
'</span>' : $conf->global->MAIN_ALWAYS_CREATE_LOCK_AFTER_LAST_UPGRADE).
' <span class="opacitymedium">('.$langs->trans(
"Recommended").
': 1)</span><br>';
452 print
'<strong>MAIN_SECURITY_CSRF_WITH_TOKEN</strong> = '.(empty($conf->global->MAIN_SECURITY_CSRF_WITH_TOKEN) ?
'<span class="opacitymedium">'.$langs->trans(
"Undefined").
'</span>' : $conf->global->MAIN_SECURITY_CSRF_WITH_TOKEN).
' <span class="opacitymedium">('.$langs->trans(
"Recommended").
': 2)</span>'.
"<br>";
459 print
load_fiche_titre($langs->trans(
"OtherSetup").
' ('.$langs->trans(
"Experimental").
')',
'',
'folder');
461 print
'<strong>MAIN_RESTRICTHTML_ONLY_VALID_HTML</strong> = '.(empty($conf->global->MAIN_RESTRICTHTML_ONLY_VALID_HTML) ?
'<span class="opacitymedium">'.$langs->trans(
"Undefined").
' ('.$langs->trans(
"Recommended").
': 1)</span>' : $conf->global->MAIN_RESTRICTHTML_ONLY_VALID_HTML).
"<br>";
464 print
'<strong>MAIN_RESTRICTHTML_REMOVE_ALSO_BAD_ATTRIBUTES</strong> = '.(empty($conf->global->MAIN_RESTRICTHTML_REMOVE_ALSO_BAD_ATTRIBUTES) ?
'<span class="opacitymedium">'.$langs->trans(
"Undefined").
' ('.$langs->trans(
"Recommended").
': 1)</span>' : $conf->global->MAIN_RESTRICTHTML_REMOVE_ALSO_BAD_ATTRIBUTES).
"<br>";
467 print
'<strong>MAIN_SECURITY_CSRF_TOKEN_RENEWAL_ON_EACH_CALL</strong> = '.(empty($conf->global->MAIN_SECURITY_CSRF_TOKEN_RENEWAL_ON_EACH_CALL) ?
'<span class="opacitymedium">'.$langs->trans(
"Undefined").
' ('.$langs->trans(
"Recommended").
': '.$langs->trans(
"Undefined").
' '.$langs->trans(
"or").
' 0)</span>' : $conf->global->MAIN_SECURITY_CSRF_TOKEN_RENEWAL_ON_EACH_CALL).
"<br>";
470 print
'<strong>MAIN_EXEC_USE_POPEN</strong> = ';
471 if (empty($conf->global->MAIN_EXEC_USE_POPEN)) {
472 print
'<span class="opacitymedium">'.$langs->trans(
"Undefined").
'</span>';
474 print $conf->global->MAIN_EXEC_USE_POPEN;
476 if ($execmethod == 1) {
477 print
'<span class="opacitymedium">, "exec" PHP method will be used for shell commands';
478 print
' ('.$langs->trans(
"Recommended").
': '.$langs->trans(
"Undefined").
' '.$langs->trans(
"or").
' 1)';
481 if ($execmethod == 2) {
482 print
'<span class="opacitymedium">, "popen" PHP method will be used for shell commands';
483 print
' ('.$langs->trans(
"Recommended").
': '.$langs->trans(
"Undefined").
' '.$langs->trans(
"or").
' 1)';