25use DebugBar\DataCollector\AssetProvider;
26use DebugBar\DataCollector\DataCollector;
27use DebugBar\DataCollector\Renderable;
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>';
68 $info .= $langs->trans(
'User').
': <strong>'.$conf->db->user.
'</strong><br>';
69 $info .= $langs->trans(
'Type').
': <strong>'.$conf->db->type.
'</strong><br>';
70 $info .= $langs->trans(
'Prefix').
': <strong>'.$conf->db->prefix.
'</strong><br>';
71 $info .= $langs->trans(
'Charset').
': <strong>'.$conf->db->character_set.
'</strong>';
84 global $dolibarr_main_prod, $dolibarr_nocsrfcheck;
86 $info = $langs->trans(
'Version').
': <strong>'.DOL_VERSION.
'</strong><br>';
87 $info .= $langs->trans(
'Theme').
': <strong>'.$conf->theme.
'</strong><br>';
88 $info .= $langs->trans(
'Locale').
': <strong>' .
getDolGlobalString(
'MAIN_LANG_DEFAULT').
'</strong><br>';
89 $info .= $langs->trans(
'Currency').
': <strong>'.$conf->currency.
'</strong><br>';
90 $info .= $langs->trans(
'Entity').
': <strong>'.$conf->entity.
'</strong><br>';
91 $info .= $langs->trans(
'MaxSizeList').
': <strong>'.($conf->liste_limit ?:
getDolGlobalString(
'MAIN_SIZE_LISTE_LIMIT')).
'</strong><br>';
92 $info .= $langs->trans(
'MaxSizeForUploadedFiles').
': <strong>' .
getDolGlobalString(
'MAIN_UPLOAD_DOC').
'</strong><br>';
93 $info .=
'$dolibarr_main_prod = <strong>'.$dolibarr_main_prod.
'</strong><br>';
94 $info .=
'$dolibarr_nocsrfcheck = <strong>'.$dolibarr_nocsrfcheck.
'</strong><br>';
95 $info .=
'MAIN_SECURITY_CSRF_WITH_TOKEN = <strong>' .
getDolGlobalString(
'MAIN_SECURITY_CSRF_WITH_TOKEN').
'</strong><br>';
96 $info .=
'MAIN_FEATURES_LEVEL = <strong>' .
getDolGlobalString(
'MAIN_FEATURES_LEVEL').
'</strong><br>';
108 global $conf, $langs;
109 global $dolibarr_mailing_limit_sendbyweb, $dolibarr_mailing_limit_sendbycli, $dolibarr_mailing_limit_sendbyday;
111 $info = $langs->trans(
'Method').
': <strong>'.
getDolGlobalString(
"MAIN_MAIL_SENDMODE").
'</strong><br>';
112 $info .= $langs->trans(
'Server').
': <strong>'.
getDolGlobalString(
"MAIN_MAIL_SMTP_SERVER").
'</strong><br>';
113 $info .= $langs->trans(
'Port').
': <strong>'.
getDolGlobalString(
"MAIN_MAIL_SMTP_PORT").
'</strong><br>';
114 $info .= $langs->trans(
'ID').
': <strong>'.
getDolGlobalString(
"MAIN_MAIL_SMTPS_IDT").
'</strong><br>';
115 $info .= $langs->trans(
'Pwd').
': <strong>'.preg_replace(
'/./',
'*',
getDolGlobalString(
"MAIN_MAIL_SMTPS_PW")).
'</strong><br>';
116 $info .= $langs->trans(
'TLS/STARTTLS').
': <strong>'.
getDolGlobalString(
"MAIN_MAIL_EMAIL_TLS").
'</strong> / <strong>'.
getDolGlobalString(
"MAIN_MAIL_EMAIL_STARTTLS").
'</strong><br>';
117 $info .= $langs->trans(
'MAIN_DISABLE_ALL_MAILS').
': <strong>'.(!
getDolGlobalString(
'MAIN_DISABLE_ALL_MAILS') ? $langs->trans(
'No') : $langs->trans(
'Yes')).
'</strong><br>';
118 $info .=
'dolibarr_mailing_limit_sendbyweb = <strong>'.$dolibarr_mailing_limit_sendbyweb.
'</strong><br>';
119 $info .=
'dolibarr_mailing_limit_sendbycli = <strong>'.$dolibarr_mailing_limit_sendbycli.
'</strong><br>';
120 $info .=
'dolibarr_mailing_limit_sendbyday = <strong>'.$dolibarr_mailing_limit_sendbyday.
'</strong><br>';
133 "database_info" => array(
134 "icon" =>
"database",
135 "indicator" =>
"PhpDebugBar.DebugBar.TooltipIndicator",
138 "class" =>
"tooltip-wide"
143 "dolibarr_info" => array(
145 "indicator" =>
"PhpDebugBar.DebugBar.TooltipIndicator",
148 "class" =>
"tooltip-wide"
153 "mail_info" => array(
154 "icon" =>
"envelope",
155 "indicator" =>
"PhpDebugBar.DebugBar.TooltipIndicator",
158 "class" =>
"tooltip-extra-wide"
175 'js' =>
'js/widgets.js',
176 'css' =>
'css/widgets.css'
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 a Dolibarr global constant string value.