示例#1
0
 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
0
            $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;
}