/** * Changes the order of one or more records. * * Overrides JControllerAdmin::reorder to check the core.admin permission. * * @since 1.6 */ public function reorder() { if (!JFactory::getUser()->authorise('core.admin', $this->option)) { JError::raiseError(500, JText::_('JERROR_ALERTNOAUTHOR')); jexit(); } return parent::reorder(); }
/** * Changes the order of one or more records. * * Overrides JControllerAdmin::reorder to check the core.admin permission. * * @since 1.6 */ public function reorder() { if (!JFactory::getUser()->authorise('core.admin', $this->option)) { throw new Exception(JText::_('JERROR_ALERTNOAUTHOR')); jexit(); } return parent::reorder(); }
/** * Changes the order of one or more records. * * Overrides JControllerAdmin::reorder to check the core.admin permission. * * @since 1.6 */ public function reorder() { if (!User::authorise('core.admin', $this->option)) { App::abort(500, Lang::txt('JERROR_ALERTNOAUTHOR')); exit; } return parent::reorder(); }
public function reorder() { $cid = JRequest::getVar('cid', null, 'get', 'array'); JArrayHelper::toInteger($cid); JRequest::setVar('cid', $cid, 'post'); JFactory::getApplication()->input->post->set('cid', $cid); JRequest::setVar(JRequest::getCmd('formtoken'), 1, 'post'); JFactory::getApplication()->input->post->set(JRequest::getCmd('formtoken'), 1); if (!igGeneralHelper::authorise('core.igalleryfront.edit.state', (int) $cid[0])) { return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR')); } parent::reorder(); }
public function reorder() { // Check for request forgeries. JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN')); $extra_id = JFactory::getApplication()->input->get('extra_id', 0, 'int'); $extra_id_url = !empty($extra_id) ? '&extra_id=' . $extra_id : ''; $return = parent::reorder(); if ($return === false) { // Reorder failed. $message = JText::sprintf('JLIB_APPLICATION_ERROR_REORDER_FAILED', $model->getError()); $this->setRedirect(JRoute::_('index.php?option=' . $this->option . '&view=' . $this->view_list . $extra_id_url, false), $message, 'error'); return false; } else { // Reorder succeeded. $message = JText::_('JLIB_APPLICATION_SUCCESS_ITEM_REORDERED'); $this->setRedirect(JRoute::_('index.php?option=' . $this->option . '&view=' . $this->view_list . $extra_id_url, false), $message); return true; } }
public function reorder() { parent::reorder(); $app = JFactory::getApplication(); $cat_id = $app->input->getInt('cat_id', 1); $this->setRedirect("index.php?option=com_judirectory&view=listcats&cat_id={$cat_id}"); }
public function reorder() { $app = JFactory::getApplication(); $documentid = $app->input->post->get('documentid', array(), 'array'); $app->input->post->set('cid', $documentid); $_POST['cid'] = $documentid; $rootCat = JUDownloadFrontHelperCategory::getRootCategory(); $cat_id = $app->input->getInt('cat_id', $rootCat->id); parent::reorder(); $this->setRedirect("index.php?option=com_judownload&view=listcats&cat_id={$cat_id}"); }
public function reorder() { parent::reorder(); $this->setRedirectToSlides(); }
function reorder() { $cid = JRequest::getVar('cid', array(), '', 'array'); if (!igGeneralHelper::authorise('core.edit.state', null, (int) $cid[0])) { return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR')); } $this->view_list = 'images&catid=' . JRequest::getInt('catid'); parent::reorder(); }
function reorder() { parent::reorder(); $this->setRedirect('index.php?option=com_eventgallery&view=files&folderid=' . JRequest::getVar('folderid') . $this->_anchor); }