43 $user_groups =
$xoops->getUserGroups();
50 $configs[
'debug_smarty_enable'] =
$helper->getConfig(
'debug_smarty_enable');
52 $uchelper =
$xoops->getModuleHelper(
'userconfigs');
53 if (
$xoops->isUser() && $uchelper) {
57 if (array_key_exists(
'debugbar_enable', $user_configs)) {
58 $configs[
'debugbar_enable'] = $user_configs[
'debugbar_enable'];
60 if (array_key_exists(
'debug_smarty_enable', $user_configs)) {
61 $configs[
'debug_smarty_enable'] = $user_configs[
'debug_smarty_enable'];
95 $path = dirname(__DIR__);
97 'debugbarlogger' =>
$path .
'/class/debugbarlogger.php',
116 $logger->startTime();
117 $logger->startTime(
'XOOPS Boot');
129 if (class_exists(
'DebugbarLogger')) {
145 if (class_exists(
'DebugbarLogger')) {
164 $xoops->loadLanguage(
'main',
'debugbar');
181 $logger->stopTime(
'XOOPS Boot');
182 $logger->startTime(
'Module init');
197 $tpl->debugging_ctrl =
'URL';
199 if (
$configs[
'debug_smarty_enable']) {
200 $tpl->debugging =
true;
238 $template = $args[0];
242 sprintf(
'Cached (regenerates every %d seconds)', $theme->contentCacheLifetime)
259 $context = array(
'channel'=>
'Blocks',
'cached'=>$isCached,
'cachetime'=>$block->getVar(
'bcachetime'));
299 $logger->stopTime(
'Module init');
300 $logger->startTime(
'XOOPS output init');
313 $logger->stopTime(
'XOOPS output init');
314 $logger->startTime(
'Module display');
327 $logger->stopTime(
'Module display');
366 foreach ($logs as $log) {
367 $context = array(
'channel'=>
'Extra',
'name'=>$log[0]);
368 $logger->log(LogLevel::INFO, $log[1], $context);
381 $context = array(
'channel'=>
'Extra',
'name'=>$args[0]);
static eventCoreDisableerrorreporting($args)
static eventCoreTemplateConstructStart($args)
static eventCoreIncludeCommonClassmaps($args)
static eventCoreDatabaseNoconn($args)
static eventCoreThemeRenderEnd($args)
static eventCoreIncludeCommonAuthSuccess()
static eventDebugLog($args)
static eventDebugTimerStart($args)
static eventCoreHeaderEnd($args)
static eventCoreDatabaseNodb($args)
if($_SERVER['REQUEST_METHOD']== 'POST') $config_handler
static eventCoreHeaderStart($args)
static eventCoreSecurityValidatetokenEnd($args)
static eventCoreFooterStart($args)
static eventCoreIncludeFunctionsRedirectheaderStart($args)
static eventDebugTimerStop($args)
static eventCoreException($e)
static eventCoreThemeRenderStart($args)
static eventCoreIncludeCommonEnd($args)
static eventCoreThemeCheckcacheSuccess($args)
static eventCoreIncludeCommonStart($args)
static eventCoreFooterEnd($args)
static eventCoreThemeblocksBuildblockStart($args)
static addMap(array $map)
static eventCoreModuleAddlog($args)
static eventCoreDeprecated($args)