24use DebugBar\DataCollector\AssetProvider;
25use DebugBar\DataCollector\DataCollector;
26use DebugBar\DataCollector\Renderable;
27use DebugBar\DebugBarException;
64 $info = $langs->trans(
'Host').
': <strong>'.$conf->db->host.
'</strong><br>';
65 $info .= $langs->trans(
'Port').
': <strong>'.$conf->db->port.
'</strong><br>';
66 $info .= $langs->trans(
'Name').
': <strong>'.$conf->db->name.
'</strong><br>';
67 $info .= $langs->trans(
'User').
': <strong>'.$conf->db->user.
'</strong><br>';
68 $info .= $langs->trans(
'Type').
': <strong>'.$conf->db->type.
'</strong><br>';
69 $info .= $langs->trans(
'Prefix').
': <strong>'.$conf->db->prefix.
'</strong><br>';
70 $info .= $langs->trans(
'Charset').
': <strong>'.$conf->db->character_set.
'</strong>';
83 global $dolibarr_main_prod, $dolibarr_nocsrfcheck;
85 $info = $langs->trans(
'Version').
': <strong>'.DOL_VERSION.
'</strong><br>';
86 $info .= $langs->trans(
'Theme').
': <strong>'.$conf->theme.
'</strong><br>';
87 $info .= $langs->trans(
'Locale').
': <strong>'.$conf->global->MAIN_LANG_DEFAULT.
'</strong><br>';
88 $info .= $langs->trans(
'Currency').
': <strong>'.$conf->currency.
'</strong><br>';
89 $info .= $langs->trans(
'Entity').
': <strong>'.$conf->entity.
'</strong><br>';
90 $info .= $langs->trans(
'MaxSizeList').
': <strong>'.($conf->liste_limit ?: $conf->global->MAIN_SIZE_LISTE_LIMIT).
'</strong><br>';
91 $info .= $langs->trans(
'MaxSizeForUploadedFiles').
': <strong>'.$conf->global->MAIN_UPLOAD_DOC.
'</strong><br>';
92 $info .=
'$dolibarr_main_prod = <strong>'.$dolibarr_main_prod.
'</strong><br>';
93 $info .=
'$dolibarr_nocsrfcheck = <strong>'.$dolibarr_nocsrfcheck.
'</strong><br>';
94 $info .=
'MAIN_SECURITY_CSRF_WITH_TOKEN = <strong>'.$conf->global->MAIN_SECURITY_CSRF_WITH_TOKEN.
'</strong><br>';
95 $info .=
'MAIN_FEATURES_LEVEL = <strong>'.$conf->global->MAIN_FEATURES_LEVEL.
'</strong><br>';
107 global $conf, $langs;
108 global $dolibarr_mailing_limit_sendbyweb, $dolibarr_mailing_limit_sendbycli, $dolibarr_mailing_limit_sendbyday;
110 $info = $langs->trans(
'Method').
': <strong>'.
getDolGlobalString(
"MAIN_MAIL_SENDMODE").
'</strong><br>';
111 $info .= $langs->trans(
'Server').
': <strong>'.
getDolGlobalString(
"MAIN_MAIL_SMTP_SERVER").
'</strong><br>';
112 $info .= $langs->trans(
'Port').
': <strong>'.
getDolGlobalString(
"MAIN_MAIL_SMTP_PORT").
'</strong><br>';
113 $info .= $langs->trans(
'ID').
': <strong>'.
getDolGlobalString(
"MAIN_MAIL_SMTPS_IDT").
'</strong><br>';
114 $info .= $langs->trans(
'Pwd').
': <strong>'.preg_replace(
'/./',
'*',
getDolGlobalString(
"MAIN_MAIL_SMTPS_PW")).
'</strong><br>';
115 $info .= $langs->trans(
'TLS/STARTTLS').
': <strong>'.
getDolGlobalString(
"MAIN_MAIL_EMAIL_TLS").
'</strong> / <strong>'.
getDolGlobalString(
"MAIN_MAIL_EMAIL_STARTTLS").
'</strong><br>';
116 $info .= $langs->trans(
'MAIN_DISABLE_ALL_MAILS').
': <strong>'.(empty($conf->global->MAIN_DISABLE_ALL_MAILS) ? $langs->trans(
'No') : $langs->trans(
'Yes')).
'</strong><br>';
117 $info .=
'dolibarr_mailing_limit_sendbyweb = <strong>'.$dolibarr_mailing_limit_sendbyweb.
'</strong><br>';
118 $info .=
'dolibarr_mailing_limit_sendbycli = <strong>'.$dolibarr_mailing_limit_sendbycli.
'</strong><br>';
119 $info .=
'dolibarr_mailing_limit_sendbyday = <strong>'.$dolibarr_mailing_limit_sendbyday.
'</strong><br>';
132 "database_info" => array(
133 "icon" =>
"database",
134 "indicator" =>
"PhpDebugBar.DebugBar.TooltipIndicator",
137 "class" =>
"tooltip-wide"
142 "dolibarr_info" => array(
144 "indicator" =>
"PhpDebugBar.DebugBar.TooltipIndicator",
147 "class" =>
"tooltip-wide"
152 "mail_info" => array(
153 "icon" =>
"envelope",
154 "indicator" =>
"PhpDebugBar.DebugBar.TooltipIndicator",
157 "class" =>
"tooltip-extra-wide"
174 '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.
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.