public function init()
 {
     parent::init();
     if (!X_VlcShares_Plugins::broker()->isRegistered('veoh')) {
         throw new Exception(X_Env::_('err_pluginnotregistered') . ": veoh");
     }
 }
 function init()
 {
     parent::init();
     if (!X_VlcShares_Plugins::broker()->isRegistered('firstrunsetup')) {
         $this->_helper->redirector('index', 'manage');
     }
 }
 function init()
 {
     parent::init();
     if (!X_VlcShares_Plugins::broker()->isRegistered('youtube')) {
         $this->_helper->flashMessenger(X_Env::_('err_pluginnotregistered') . ": youtube");
         $this->_helper->redirector('index', 'manage');
     }
 }
 public function init()
 {
     parent::init();
     if (!X_VlcShares_Plugins::broker()->isRegistered('upnprenderer')) {
         throw new Exception(X_Env::_('err_pluginnotregistered') . ": upnprenderer");
     } else {
         $this->plugin = X_VlcShares_Plugins::broker()->getPlugins('upnprenderer');
     }
 }
 public function init()
 {
     parent::init();
     $this->vlc = X_Vlc::getLastInstance();
     // bootstrap failed
     if (is_null($this->vlc)) {
         $this->vlc = new X_Vlc($this->options->vlc);
         X_VlcShares_Plugins::helpers()->streamer()->register(new X_Streamer_Engine_Vlc($this->vlc));
     }
 }
 public function init()
 {
     parent::init();
     if (!X_VlcShares_Plugins::broker()->isRegistered('onlinelibrary')) {
         throw new Exception(X_Env::_('err_pluginnotregistered') . ": onlinelibrary");
     } else {
         $this->pluginLibrary = X_VlcShares_Plugins::broker()->getPlugins('onlinelibrary');
     }
     if (X_VlcShares_Plugins::broker()->isRegistered('bookmarklets')) {
         $this->pluginBookmarklets = X_VlcShares_Plugins::broker()->getPlugins('bookmarklets');
     }
 }
 function init()
 {
     // call parent init, always
     parent::init();
     if (!X_VlcShares_Plugins::broker()->isRegistered('spainradio')) {
         /*
         $this->_helper->flashMessenger(X_Env::_('err_pluginnotregistered') . ": youtube");
         $this->_helper->redirector('index', 'manage');
         */
         throw new Exception(X_Env::_('err_pluginnotregistered') . ": spainradio");
     } else {
         $this->plugin = X_VlcShares_Plugins::broker()->getPlugins('spainradio');
     }
 }
 function init()
 {
     // call parent init, always
     parent::init();
     if (!X_VlcShares_Plugins::broker()->isRegistered('fsthumbs')) {
         throw new Exception(X_Env::_('err_pluginnotregistered') . ": fsthumbs");
     } else {
         $this->plugin = X_VlcShares_Plugins::broker()->getPlugins('fsthumbs');
     }
     if (!X_VlcShares_Plugins::broker()->isRegistered('fileSystem')) {
         throw new Exception(X_Env::_('err_pluginnotregistered') . ": fileSystem");
     } else {
         $this->fsPlugin = X_VlcShares_Plugins::broker()->getPlugins('fileSystem');
     }
 }
 function init()
 {
     parent::init();
     // if is registered all is ok
     if (!X_VlcShares_Plugins::broker()->isRegistered('plugininstaller')) {
         // if it isn't registered, we must check if it's installed
         $plugin = new Application_Model_Plugin();
         Application_Model_PluginsMapper::i()->fetchByKey('plugininstaller', $plugin);
         // we don't allow to access the page if plugin is installed, but disabled
         if ($plugin->getId() !== null) {
             $this->_helper->flashMessenger(X_Env::_('p_plugininstaller_err_pluginnotregistered'));
             $this->_helper->redirector('index', 'manage');
         }
     }
 }
 function init()
 {
     // call parent init, always
     parent::init();
     if (!X_VlcShares_Plugins::broker()->isRegistered('animeftw')) {
         /*
         $this->_helper->flashMessenger(X_Env::_('err_pluginnotregistered') . ": youtube");
         $this->_helper->redirector('index', 'manage');
         */
         throw new Exception(X_Env::_('err_pluginnotregistered') . ": animeftw");
     } else {
         $this->plugin = X_VlcShares_Plugins::broker()->getPlugins('animeftw');
     }
     $this->getFrontController()->setParam('disableOutputBuffering', true);
     $this->getFrontController()->returnResponse(false);
 }
 public function init()
 {
     parent::init();
     if (!X_VlcShares_Plugins::broker()->isRegistered('megavideo')) {
         /*
         $this->_helper->flashMessenger(X_Env::_('err_pluginnotregistered') . ": youtube");
         $this->_helper->redirector('index', 'manage');
         */
         throw new Exception(X_Env::_('err_pluginnotregistered') . ": megavideo");
     } else {
         $this->plugin = X_VlcShares_Plugins::broker()->getPlugins('megavideo');
     }
     $action = $this->getRequest()->getActionName();
     if ($action == 'premium') {
         // disabling outbuffering
         // and response return
         $this->getFrontController()->setParam('disableOutputBuffering', true);
         $this->getFrontController()->returnResponse(false);
     }
 }
 public function init()
 {
     /* Initialize action controller here */
     parent::init();
     $this->vlc = new X_Vlc($this->options->vlc);
 }