mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
changed calling format of errorlog routines
This commit is contained in:
parent
a24a7639a7
commit
19840a15bf
@ -309,8 +309,7 @@ function ExecObject($object, $functionparams = '_UNDEF_', $loglevel = 3, $classp
|
|||||||
/* Make sure the developer is following the rules. */
|
/* Make sure the developer is following the rules. */
|
||||||
if (!isset($GLOBALS['phpgw_info']['flags']['currentapp']))
|
if (!isset($GLOBALS['phpgw_info']['flags']['currentapp']))
|
||||||
{
|
{
|
||||||
$phpgw->log->message('W-MissingFlags, currentapp flag not set');
|
$phpgw->log->write(array('text'=>'W-MissingFlags, currentapp flag not set'));
|
||||||
$phpgw->log->commit();
|
|
||||||
|
|
||||||
echo '<b>!!! YOU DO NOT HAVE YOUR $phpgw_info["flags"]["currentapp"] SET !!!';
|
echo '<b>!!! YOU DO NOT HAVE YOUR $phpgw_info["flags"]["currentapp"] SET !!!';
|
||||||
echo '<br>!!! PLEASE CORRECT THIS SITUATION !!!</b>';
|
echo '<br>!!! PLEASE CORRECT THIS SITUATION !!!</b>';
|
||||||
@ -600,8 +599,7 @@ function ExecObject($object, $functionparams = '_UNDEF_', $loglevel = 3, $classp
|
|||||||
/* Hope we don't get to this point. Better then the user seeing a */
|
/* Hope we don't get to this point. Better then the user seeing a */
|
||||||
/* complety back screen and not know whats going on */
|
/* complety back screen and not know whats going on */
|
||||||
echo '<body bgcolor="FFFFFF">';
|
echo '<body bgcolor="FFFFFF">';
|
||||||
$phpgw->log->message('F-Abort, No themes found');
|
$phpgw->log->write(array('text'=>'F-Abort, No themes found'));
|
||||||
$phpgw->log->commit();
|
|
||||||
|
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
@ -636,8 +634,7 @@ function ExecObject($object, $functionparams = '_UNDEF_', $loglevel = 3, $classp
|
|||||||
echo parse_navbar();
|
echo parse_navbar();
|
||||||
}
|
}
|
||||||
|
|
||||||
$phpgw->log->message('W-Permissions, Attempted to access %1',$GLOBALS['phpgw_info']['flags']['currentapp']);
|
$phpgw->log->write(array('text'=>'W-Permissions, Attempted to access %1','p1'=>$GLOBALS['phpgw_info']['flags']['currentapp']));
|
||||||
$phpgw->log->commit();
|
|
||||||
|
|
||||||
echo '<p><center><b>'.lang('Access not permitted').'</b></center>';
|
echo '<p><center><b>'.lang('Access not permitted').'</b></center>';
|
||||||
$GLOBALS['phpgw']->common->phpgw_exit(True);
|
$GLOBALS['phpgw']->common->phpgw_exit(True);
|
||||||
|
Loading…
Reference in New Issue
Block a user