40 $user_groups =
$xoops->getUserGroups();
48 $configs[
'debug_smarty_enable'] =
$helper->getConfig(
'debug_smarty_enable');
50 $uchelper =
$xoops->getModuleHelper(
'userconfigs');
51 if (
$xoops->isUser() && $uchelper) {
55 if (array_key_exists(
'logger_enable', $user_configs)) {
56 $configs[
'logger_enable'] = $user_configs[
'logger_enable'];
58 if (array_key_exists(
'logger_popup', $user_configs)) {
59 $configs[
'logger_popup'] = $user_configs[
'logger_popup'];
61 if (array_key_exists(
'debug_smarty_enable', $user_configs)) {
62 $configs[
'debug_smarty_enable'] = $user_configs[
'debug_smarty_enable'];
98 $path = dirname(__DIR__);
100 'legacylogger' =>
$path .
'/class/legacylogger.php',
113 if (class_exists(
'LegacyLogger')) {
129 if (!class_exists(
'LegacyLogger')) {
146 if (!class_exists(
'LegacyLogger')) {
203 $xoops->loadLanguage(
'main',
'logger');
221 $logger->stopTime(
'XOOPS Boot');
222 $logger->startTime(
'Module init');
237 $tpl->debugging_ctrl =
'URL';
239 if (
$configs[
'debug_smarty_enable']) {
240 $tpl->debugging =
true;
277 $template = $args[0];
280 ->addExtra($template, sprintf(
'Cached (regenerates every %d seconds)', $theme->contentCacheLifetime));
333 $logger->stopTime(
'Module init');
334 $logger->startTime(
'XOOPS output init');
347 $logger->stopTime(
'XOOPS output init');
348 $logger->startTime(
'Module display');
361 $logger->stopTime(
'Module display');
388 $debug_mode =
$xoops->getModuleConfig(
'debug_mode',
'logger');
389 if ($debug_mode == 2) {
392 $xoops->tpl()->assign(
'xoops_logdump', $logger->dump());
407 foreach ($logs as $log) {
408 $logger->addExtra($log[0], $log[1]);
433 XoopsLoad::addMap(array(
'legacylogger' => dirname(__DIR__) .
'/class/legacylogger.php'));
static eventCoreHeaderEnd($args)
static eventCoreFooterStart($args)
static eventCoreFooterEnd($args)
static eventCoreThemeRenderEnd($args)
static eventCoreModuleAddlog($args)
static eventCoreThemeRenderStart($args)
static eventCoreThemeblocksBuildblockStart($args)
static eventCoreIncludeCommonEnd($args)
static eventCoreIncludeCommonAuthSuccess()
static eventCoreDatabaseNoconn($args)
static eventCoreIncludeCommonClassmaps($args)
static eventCoreIncludeCommonStart($args)
static eventCoreDatabaseQueryComplete($args)
static eventCoreIncludeFunctionsRedirectheaderEnd($args)
static eventCoreHeaderStart($args)
if($_SERVER['REQUEST_METHOD']== 'POST') $config_handler
static eventCoreDatabaseNodb($args)
static eventCoreDeprecated($args)
static eventCoreException($e)
static eventCoreTemplateConstructStart($args)
static eventCoreDisableerrorreporting($args)
static eventSystemPreferencesSave($args)
static eventCoreIncludeCommonConfigsSuccess($args)
static eventCoreSecurityValidatetokenEnd($args)
static addMap(array $map)
static eventCoreThemeCheckcacheSuccess($args)