3 use DebugBar\DataCollector\AssetProvider;
4 use DebugBar\DataCollector\DataCollector;
5 use DebugBar\DataCollector\Renderable;
6 use DebugBar\DebugBarException;
43 $info = $langs->trans(
'Host').
': <strong>'.$conf->db->host.
'</strong><br>';
44 $info .= $langs->trans(
'Port').
': <strong>'.$conf->db->port.
'</strong><br>';
45 $info .= $langs->trans(
'Name').
': <strong>'.$conf->db->name.
'</strong><br>';
46 $info .= $langs->trans(
'User').
': <strong>'.$conf->db->user.
'</strong><br>';
47 $info .= $langs->trans(
'Type').
': <strong>'.$conf->db->type.
'</strong><br>';
48 $info .= $langs->trans(
'Prefix').
': <strong>'.$conf->db->prefix.
'</strong><br>';
49 $info .= $langs->trans(
'Charset').
': <strong>'.$conf->db->character_set.
'</strong>';
62 global $dolibarr_main_prod, $dolibarr_nocsrfcheck;
64 $info = $langs->trans(
'Version').
': <strong>'.DOL_VERSION.
'</strong><br>';
65 $info .= $langs->trans(
'Theme').
': <strong>'.$conf->theme.
'</strong><br>';
66 $info .= $langs->trans(
'Locale').
': <strong>'.$conf->global->MAIN_LANG_DEFAULT.
'</strong><br>';
67 $info .= $langs->trans(
'Currency').
': <strong>'.$conf->currency.
'</strong><br>';
68 $info .= $langs->trans(
'Entity').
': <strong>'.$conf->entity.
'</strong><br>';
69 $info .= $langs->trans(
'MaxSizeList').
': <strong>'.($conf->liste_limit ?: $conf->global->MAIN_SIZE_LISTE_LIMIT).
'</strong><br>';
70 $info .= $langs->trans(
'MaxSizeForUploadedFiles').
': <strong>'.$conf->global->MAIN_UPLOAD_DOC.
'</strong><br>';
71 $info .=
'$dolibarr_main_prod = <strong>'.$dolibarr_main_prod.
'</strong><br>';
72 $info .=
'$dolibarr_nocsrfcheck = <strong>'.$dolibarr_nocsrfcheck.
'</strong><br>';
73 $info .=
'MAIN_SECURITY_CSRF_WITH_TOKEN = <strong>'.$conf->global->MAIN_SECURITY_CSRF_WITH_TOKEN.
'</strong><br>';
74 $info .=
'MAIN_FEATURES_LEVEL = <strong>'.$conf->global->MAIN_FEATURES_LEVEL.
'</strong><br>';
87 global $dolibarr_mailing_limit_sendbyweb, $dolibarr_mailing_limit_sendbycli, $dolibarr_mailing_limit_sendbyday;
89 $info = $langs->trans(
'Method').
': <strong>'.
getDolGlobalString(
"MAIN_MAIL_SENDMODE").
'</strong><br>';
90 $info .= $langs->trans(
'Server').
': <strong>'.
getDolGlobalString(
"MAIN_MAIL_SMTP_SERVER").
'</strong><br>';
91 $info .= $langs->trans(
'Port').
': <strong>'.
getDolGlobalString(
"MAIN_MAIL_SMTP_PORT").
'</strong><br>';
92 $info .= $langs->trans(
'ID').
': <strong>'.
getDolGlobalString(
"MAIN_MAIL_SMTPS_IDT").
'</strong><br>';
93 $info .= $langs->trans(
'Pwd').
': <strong>'.preg_replace(
'/./',
'*',
getDolGlobalString(
"MAIN_MAIL_SMTPS_PW")).
'</strong><br>';
94 $info .= $langs->trans(
'TLS/STARTTLS').
': <strong>'.
getDolGlobalString(
"MAIN_MAIL_EMAIL_TLS").
'</strong> / <strong>'.
getDolGlobalString(
"MAIN_MAIL_EMAIL_STARTTLS").
'</strong><br>';
95 $info .= $langs->trans(
'MAIN_DISABLE_ALL_MAILS').
': <strong>'.(empty($conf->global->MAIN_DISABLE_ALL_MAILS) ? $langs->trans(
'No') : $langs->trans(
'Yes')).
'</strong><br>';
96 $info .=
'dolibarr_mailing_limit_sendbyweb = <strong>'.$dolibarr_mailing_limit_sendbyweb.
'</strong><br>';
97 $info .=
'dolibarr_mailing_limit_sendbycli = <strong>'.$dolibarr_mailing_limit_sendbycli.
'</strong><br>';
98 $info .=
'dolibarr_mailing_limit_sendbyday = <strong>'.$dolibarr_mailing_limit_sendbyday.
'</strong><br>';
111 "database_info" => array(
112 "icon" =>
"database",
113 "indicator" =>
"PhpDebugBar.DebugBar.TooltipIndicator",
116 "class" =>
"tooltip-wide"
121 "dolibarr_info" => array(
123 "indicator" =>
"PhpDebugBar.DebugBar.TooltipIndicator",
126 "class" =>
"tooltip-wide"
131 "mail_info" => array(
132 "icon" =>
"envelope",
133 "indicator" =>
"PhpDebugBar.DebugBar.TooltipIndicator",
136 "class" =>
"tooltip-extra-wide"
153 'js' =>
'js/widgets.js'
getWidgets()
Return widget settings.
getAssets()
Return collector assests.
collect()
Return collected data.
getDatabaseInfo()
Return database info as an HTML string.
getDolibarrInfo()
Return dolibarr info as an HTML string.
getMailInfo()
Return mail info as an HTML string.
getName()
Return collector name.
dol_buildpath($path, $type=0, $returnemptyifnotfound=0)
Return path of url or filesystem.
if(!function_exists('utf8_encode')) if(!function_exists('utf8_decode')) getDolGlobalString($key, $default='')
Return dolibarr global constant string value.