public function InitAction()
 {
     $oLang = $this->Lang_Dictionary();
     $this->Viewer_Assign('oLang', $oLang);
     $this->Viewer_Assign('MSIE6', ACE::MSIE6());
     $this->Viewer_Assign('WEB_ADMIN_SKIN', ACE::MSIE6());
     $oUser = $this->_getUser();
     $this->_checkPluginAction();
     $sScript = Config::Get('path.admin.skin') . '/assets/js/' . 'ace-admin.js';
     $this->Viewer_AppendScript($sScript);
     if (Router::GetAction() == 'admin' or Router::GetAction() == 'error') {
         return;
     }
     if (!$oUser) {
         if (Router::GetAction() == 'registration') {
             $aIp = ACE::GetAllUserIp();
             foreach ($aIp as $sIp) {
                 if ($this->PluginAceadminpanel_Admin_IsBanIp($sIp)) {
                     $this->Message_AddErrorSingle($this->Lang_Get('adm_banned2_text'), $this->Lang_Get('adm_denied_title'));
                     return $this->_userBanned(null);
                 }
             }
         }
         return;
     }
     if (defined('ADMIN_SITE_CLOSED') and ADMIN_SITE_CLOSED and !$oUser->IsAdministrator()) {
         $this->SiteClosed();
     }
     if ($oUser->IsBannedByLogin() || ($oUser->IsBannedByIp() and !$oUser->IsAdministrator())) {
         return $this->_UserBanned($oUser);
     }
 }