mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
Added eventloging
This commit is contained in:
parent
3c64f8fc3e
commit
2eb317a488
@ -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 '<b>!!! YOU DO NOT HAVE YOUR $phpgw_info["flags"]["currentapp"] SET !!!';
|
||||
echo '<br>!!! PLEASE CORRECT THIS SITUATION !!!</b>';
|
||||
}
|
||||
@ -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 '<body bgcolor="FFFFFF"><b>Fatal error: no themes found</b>';
|
||||
echo '<body bgcolor="FFFFFF">';
|
||||
$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 '<p><center><b>'.lang('Access not permitted').'</b></center>';
|
||||
$GLOBALS['phpgw']->common->phpgw_exit(True);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user