本文整理汇总了PHP中Output::fatal_error方法的典型用法代码示例。如果您正苦于以下问题:PHP Output::fatal_error方法的具体用法?PHP Output::fatal_error怎么用?PHP Output::fatal_error使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Output
的用法示例。
在下文中一共展示了Output::fatal_error方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: error_handler
public static function error_handler($type, $string, $file, $line)
{
if (error_reporting() == 0) {
return;
}
self::log_error($type, $string, $file, $line);
if ($type == E_USER_ERROR || $type == E_ERROR) {
Output::fatal_error();
}
}
示例2:
$EE->{$M}();
}
/** ------------------------------------
/** Assemble the control panel
/** ------------------------------------*/
// No session? Show the login page
if ($SESS->userdata('admin_sess') == 0) {
$DSP->show_login_control_panel();
} else {
/** ------------------------------------
/** Is user banned?
/** ------------------------------------*/
// Before rendering the full control panel we'll make sure the user isn't banned
// But only if they are not a Super Admin, as they can not be banned
if ($SESS->userdata('group_id') != 1 and $SESS->ban_check('ip')) {
return $OUT->fatal_error($LANG->line('not_authorized'));
}
/** ------------------------------------
/** Display the Control Panel
/** ------------------------------------*/
// The 'Z' GET variable indicates that we need to show the simplified
// version of the control panel. We use this mainly for pop-up pages in
// which we don't need the navigation.
if ($IN->GBL('Z')) {
$DSP->show_restricted_control_panel();
} else {
$DSP->show_full_control_panel();
}
}
break;
}