Ejemplo n.º 1
0
 /**
  * Displays the default upload form
  *
  * @param   boolean  $cachable   If true, the view output will be cached
  * @param   array    $urlparams  An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}.
  * @return  void
  * @since   2.0
  */
 public function display($cachable = false, $urlparams = false)
 {
     // Access check
     if (!$this->_config->get('jg_disableunrequiredchecks') && !count(JoomHelper::getAuthorisedCategories('joom.upload'))) {
         $this->setRedirect(JRoute::_($this->_ambit->getRedirectUrl('categories'), false), JText::_('No categories found into which you are allowed to upload'), 'notice');
         return;
     }
     parent::display($cachable, $urlparams);
 }
Ejemplo n.º 2
0
 /**
  * Migrates another gallery to JoomGallery
  *
  * @access  public
  * @return  void
  * @since   1.5.5
  */
 function migrate()
 {
     jimport('joomla.filesystem.file');
     $migration = JRequest::getCmd('migration', '');
     $task = JRequest::getCmd('task');
     if (!JFile::exists(JPATH_COMPONENT . '/helpers/migration/migrate' . $migration . '.php')) {
         $this->setRedirect('index.php?option=' . _JOOM_OPTION . '&controller=migration');
         return;
     }
     require_once JPATH_COMPONENT . '/helpers/migration/migrate' . $migration . '.php';
     $classname = 'JoomMigrate' . $migration;
     $migrateclass = new $classname();
     ob_start();
     $migrateclass->{$task}();
     JFactory::getApplication()->setUserState('joom.migration.output', ob_get_contents());
     ob_end_clean();
     if ($task == 'check') {
         parent::display();
     }
 }
Ejemplo n.º 3
0
 /**
  * Displays the move form
  *
  * @return  void
  * @since   1.5.5
  */
 public function showmove()
 {
     JRequest::setVar('view', 'move');
     JRequest::setVar('hidemainmenu', 1);
     parent::display();
 }
Ejemplo n.º 4
0
 /**
  * Displays the edit form of a category
  *
  * @access  public
  * @return  void
  * @since   1.5.5
  */
 function edit()
 {
     JRequest::setVar('view', 'category');
     JRequest::setVar('layout', 'form');
     JRequest::setVar('hidemainmenu', 1);
     parent::display();
 }
Ejemplo n.º 5
0
 /**
  * Displays the edit form of a config row
  *
  * @return  void
  * @since   2.0
  */
 public function edit()
 {
     JRequest::setVar('view', 'config');
     JRequest::setVar('hidemainmenu', 1);
     parent::display();
 }