function indexAction()
 {
     if (X_VlcShares_Plugins::helpers()->devices()->isWiimc()) {
         // everything have to be in plx format
         $plx = new X_Plx(X_Env::_('p_auth_loginindex_plxtitle'), X_Env::_('p_auth_loginindex_plxdesc'));
         $plx->addItem(new X_Plx_Item(X_Env::_('p_auth_login_advice'), X_Env::completeUrl($this->_helper->url('index', 'auth'))));
         $plx->addItem(new X_Plx_Item(X_Env::_('p_auth_login_pressbbutton'), X_Env::completeUrl($this->_helper->url('index', 'auth'))));
         $this->_helper->viewRenderer->setNoRender(true);
         $this->_helper->layout->disableLayout();
         $this->getResponse()->setHeader('Content-Type', 'text/plain');
         $this->getResponse()->setBody((string) $plx);
         //echo $plx;
         return;
     }
     //if ( $this->ns->enabled && isset($this->ns->username) ) {
     //throw new Exception(X_Env::_('p_auth_already_loggedin'));
     //}
     if ($this->plugin->isLoggedIn()) {
         throw new Exception(X_Env::_('p_auth_already_loggedin'));
     }
     $form = new Application_Form_AuthLogin();
     $form->setAction($this->_helper->url('login', 'auth'));
     $this->view->form = $form;
     $this->view->messages = $this->_helper->flashMessenger->getMessages();
 }
 /**
  * Send to output plx playlist
  * @param X_Plx $plx
  */
 private function _render(X_Plx $plx, Zend_Controller_Action $controller)
 {
     $this->_disableRendering($controller);
     // if isn't wiimc, add a conversion filter
     if (!$this->helpers()->devices()->isWiimc() && $this->config('forced.fancy', true)) {
         $showRaw = $this->config('forced.showRaw', false);
         $showThumbs = $this->config('forced.showThumbs', true);
         $plxItems = $plx->getItems();
         $body = (include dirname(__FILE__) . '/WiimcPlxRenderer.fancy.phtml');
     } else {
         $controller->getResponse()->setHeader('Content-type', 'text/plain', true);
         $body = (string) $plx;
     }
     $controller->getResponse()->setBody($body);
     return $body;
 }