Current Path :
/
home
/
develito
/
www
/
administrator
/
components
/
com_raforms
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/develito/www/administrator/components/com_raforms/controller.php
<?php /* ------------------------------------------------------------------------ # com_raforms - rootArea Forms # ------------------------------------------------------------------------ # author Markus Döhla # copyright Copyright (C) 2012 rootarea.de. All Rights Reserved. # @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL # @license - Please read policy about plugins development in administrator/components/com_raforms/license-plugins.txt carefully # @license - Additional EULA on www.rootarea.de DOES NOT apply to ANY lite packages # Websites: http://www.rootarea.de # Technical Support: Forum - http://www.rootarea.de/en/forum ------------------------------------------------------------------------- */ defined('_JEXEC') or die('Restricted Access'); jimport('joomla.application.component.controller'); class RAformsController extends JControllerLegacy { protected $default_view = 'raforms'; public function display($cachable = false, $urlparams = false) { require_once JPATH_COMPONENT . '/helpers/raforms.php'; $view = $this->input->get('view', 'raforms'); $layout = $this->input->get('layout', 'default'); $id = $this->input->getInt('id'); // Check for edit form. if ($view == 'raform' && $layout == 'edit' && !$this->checkEditId('com_raforms.edit.raform', $id)) { // Somehow the person just went to the form - we don't allow that. $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_UNHELD_ID', $id)); $this->setMessage($this->getError(), 'error'); $this->setRedirect(JRoute::_('index.php?option=com_raforms&view=raforms', false)); return false; } parent::display(); return $this; } } ?>