Example #1
0
 if ($M != '' and method_exists($EE, $M)) {
     $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;