From 2eb317a488e2a2768b5c2226d31ab238415d9ca5 Mon Sep 17 00:00:00 2001 From: jengo Date: Sun, 5 Aug 2001 10:13:37 +0000 Subject: [PATCH] Added eventloging --- phpgwapi/inc/functions.inc.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/functions.inc.php b/phpgwapi/inc/functions.inc.php index af7f93b6ff..4a7bb94d68 100644 --- a/phpgwapi/inc/functions.inc.php +++ b/phpgwapi/inc/functions.inc.php @@ -247,6 +247,9 @@ /* Make sure the developer is following the rules. */ if (!isset($GLOBALS['phpgw_info']['flags']['currentapp'])) { + $phpgw->log->message('W-MissingFlags, currentapp flag not set'); + $phpgw->log->commit(); + echo '!!! YOU DO NOT HAVE YOUR $phpgw_info["flags"]["currentapp"] SET !!!'; echo '
!!! PLEASE CORRECT THIS SITUATION !!!
'; } @@ -534,7 +537,10 @@ { /* Hope we don't get to this point. Better then the user seeing a */ /* complety back screen and not know whats going on */ - echo 'Fatal error: no themes found'; + echo ''; + $phpgw->log->message('F-Abort, No themes found'); + $phpgw->log->commit(); + exit; } unset($theme_to_load); @@ -568,6 +574,9 @@ echo parse_navbar(); } + $phpgw->log->message('W-Permissions, Attempted to access %1',$GLOBALS['phpgw_info']['flags']['currentapp']); + $phpgw->log->commit(); + echo '

'.lang('Access not permitted').'
'; $GLOBALS['phpgw']->common->phpgw_exit(True); }