Current Path :
/
home
/
develito
/
httpdocs
/
administrator
/
components
/
com_dmod
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/develito/httpdocs/administrator/components/com_dmod/controller.php
<?php /*------------------------------------------------------------------------ # com_dmod - Dmod Module Manager # ------------------------------------------------------------------------ # author Jesus Vargas Garita # copyright Copyright (C) 2010 www.joomlahill.com. All Rights Reserved. # @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL # Websites: http://www.joomlahill.com # Technical Support: Forum - http://www.joomlahill.com/forum -------------------------------------------------------------------------*/ defined('_JEXEC') or die; jimport('joomla.application.component.controller'); class DmodController extends JControllerLegacy { protected $default_view = 'dmods'; public function display($cachable = false, $urlparams = false) { require_once JPATH_COMPONENT.'/helpers/dmod.php'; $view = $this->input->get('view', 'dmods'); $layout = $this->input->get('layout', 'default'); $id = $this->input->getInt('id'); // Check for edit form. if ($view == 'dmod' && $layout == 'edit' && !$this->checkEditId('com_dmod.edit.dmod', $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_dmod&view=dmods', false)); return false; } parent::display(); return $this; } }