public function execute()
 {
     try {
         if (session::getInstance()->isUserAuthenticated()) {
             routing::getInstance()->redirect(config::getDefaultModule(), config::getDefaultAction());
         } else {
             $this->defineView('loginForm', 'shfSecurity', session::getInstance()->getFormatOutput());
         }
         //close if
     } catch (PDOException $exc) {
         session::getInstance()->setFlash('exc', $exc);
         routing::getInstance()->forward('shfSecurity', 'exception');
     }
 }
 public static function redirectUrl()
 {
     if (session::getInstance()->hasAttribute('shfSecurityModuleGO') and session::getInstance()->hasAttribute('shfSecurityActionGO')) {
         $variables = null;
         if (session::getInstance()->hasAttribute('shfSecurityQueryString')) {
             $variables = array();
             parse_str(session::getInstance()->getAttribute('shfSecurityQueryString'), $variables);
         }
         routing::getInstance()->redirect(session::getInstance()->getAttribute('shfSecurityModuleGO'), session::getInstance()->getAttribute('shfSecurityActionGO'), $variables);
     } else {
         routing::getInstance()->redirect(config::getDefaultModule(), config::getDefaultAction());
     }
 }