|
@@ -173,7 +173,7 @@ print '<br>';
|
|
|
print '<strong>'.$langs->trans("XDebug").'</strong>: ';
|
|
|
$test = !function_exists('xdebug_is_enabled') && !extension_loaded('xdebug');
|
|
|
if ($test) {
|
|
|
- print img_picto('', 'tick.png').' '.$langs->trans("NotInstalled").' - '.$langs->trans("NotRiskOfLeakWithThis");
|
|
|
+ print img_picto('', 'tick').' '.$langs->trans("NotInstalled").' - '.$langs->trans("NotRiskOfLeakWithThis");
|
|
|
} else {
|
|
|
print img_picto('', 'warning').' '.$langs->trans("ModuleActivatedMayExposeInformation", $langs->transnoentities("XDebug"));
|
|
|
print ' - '.$langs->trans("MoreInformation").' <a href="'.DOL_URL_ROOT.'/admin/system/xdebug.php">XDebug admin page</a>';
|
|
@@ -480,30 +480,57 @@ print load_fiche_titre($langs->trans("Modules"), '', 'folder');
|
|
|
|
|
|
// Module log
|
|
|
print '<strong>'.$langs->trans("Syslog").'</strong>: ';
|
|
|
-$test = !isModEnabled('syslog');
|
|
|
-if ($test) {
|
|
|
- print img_picto('', 'tick.png').' '.$langs->trans("NotInstalled").' - '.$langs->trans("NotRiskOfLeakWithThis");
|
|
|
+$test = isModEnabled('syslog');
|
|
|
+if (!$test) {
|
|
|
+ print img_picto('', 'tick').' '.$langs->trans("NotInstalled").' - '.$langs->trans("NotRiskOfLeakWithThis");
|
|
|
} else {
|
|
|
if (getDolGlobalInt('SYSLOG_LEVEL') > LOG_NOTICE) {
|
|
|
print img_picto('', 'warning').' '.$langs->trans("ModuleActivatedWithTooHighLogLevel", $langs->transnoentities("Syslog"));
|
|
|
} else {
|
|
|
- print img_picto('', 'tick.png').' '.$langs->trans("ModuleSyslogActivatedButLevelNotTooVerbose", $langs->transnoentities("Syslog"), getDolGlobalInt('SYSLOG_LEVEL'));
|
|
|
+ print img_picto('', 'tick').' '.$langs->trans("ModuleSyslogActivatedButLevelNotTooVerbose", $langs->transnoentities("Syslog"), getDolGlobalInt('SYSLOG_LEVEL'));
|
|
|
}
|
|
|
//print ' '.$langs->trans("MoreInformation").' <a href="'.DOL_URL_ROOT.'/admin/system/xdebug.php'.'">XDebug admin page</a>';
|
|
|
}
|
|
|
print '<br>';
|
|
|
|
|
|
+print '<br>';
|
|
|
+
|
|
|
// Module debugbar
|
|
|
print '<strong>'.$langs->trans("DebugBar").'</strong>: ';
|
|
|
-$test = empty($conf->debugbar->enabled);
|
|
|
-if ($test) {
|
|
|
- print img_picto('', 'tick.png').' '.$langs->trans("NotInstalled").' - '.$langs->trans("NotRiskOfLeakWithThis");
|
|
|
+$test = isModEnabled('debugbar');
|
|
|
+if (!$test) {
|
|
|
+ print img_picto('', 'tick').' '.$langs->trans("NotInstalled").' - '.$langs->trans("NotRiskOfLeakWithThis");
|
|
|
} else {
|
|
|
print img_picto('', 'error').' '.$langs->trans("ModuleActivatedDoNotUseInProduction", $langs->transnoentities("DebugBar"));
|
|
|
//print ' '.$langs->trans("MoreInformation").' <a href="'.DOL_URL_ROOT.'/admin/system/xdebug.php'.'">XDebug admin page</a>';
|
|
|
}
|
|
|
print '<br>';
|
|
|
|
|
|
+print '<br>';
|
|
|
+
|
|
|
+// Modules for Payments
|
|
|
+$test = isModEnabled('stripe');
|
|
|
+if ($test) {
|
|
|
+ print '<strong>'.$langs->trans("Stripe").'</strong>: ';
|
|
|
+ if (!getDolGlobalString('PAYMENT_SECURITY_TOKEN_UNIQUE')) {
|
|
|
+ print img_picto('', 'error').' '.$langs->trans("OptionXShouldBeEnabledInModuleY", $langs->transnoentities("SecurityTokenIsUnique"), $langs->transnoentities("Stripe"));
|
|
|
+ } else {
|
|
|
+ print img_picto('', 'tick').' '.$langs->trans("OptionXIsCorrectlyEnabledInModuleY", $langs->transnoentities("SecurityTokenIsUnique"), $langs->transnoentities("Stripe"));
|
|
|
+ }
|
|
|
+ print '<br>';
|
|
|
+} else {
|
|
|
+ $test = isModEnabled('paypal');
|
|
|
+ if ($test) {
|
|
|
+ print '<strong>'.$langs->trans("Paypal").'</strong>: ';
|
|
|
+ if (!getDolGlobalString('PAYMENT_SECURITY_TOKEN_UNIQUE')) {
|
|
|
+ print img_picto('', 'error').' '.$langs->trans("OptionXShouldBeEnabledInModuleY", $langs->transnoentities("SecurityTokenIsUnique"), $langs->transnoentities("Paypal"));
|
|
|
+ } else {
|
|
|
+ print img_picto('', 'tick').' '.$langs->trans("OptionXIsCorrectlyEnabledInModuleY", $langs->transnoentities("SecurityTokenIsUnique"), $langs->transnoentities("Paypal"));
|
|
|
+ }
|
|
|
+ print '<br>';
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
// APIs
|
|
|
|