Location: PHPKode > projects > Chalange > com_chalange/admin.chalange.php
<?php
/**
* @version		$Id: admin.chalange.php 
* @package		Joomla
* @copyright	Copyright (C) 2010 - 2010 Pablo Cárcaba. All rights reserved.
* @license		GNU/GPL, see LICENSE.php
*/

// no direct access
defined('_JEXEC') or die('Restricted access');
// Make sure the user is authorized to view this page
$user = & JFactory::getUser();
if (!$user->authorize( 'com_config', 'manage' )) {
	$mainframe->redirect('index.php', JText::_('ALERTNOTAUTH'));
}

// Require the base controller
require_once (JPATH_COMPONENT.DS.'controller.php');

// Require specific controller if requested
defined( '_JEXEC' ) or die( 'Restricted access' );
require_once(JPATH_COMPONENT.DS.'controller.php');
if ($controller = JRequest::getWord('controller')){
	$path = JPATH_COMPONENT.DS.'controllers'.DS.$controller.'.php';
	if (file_exists($path)) {
		require_once $path;
	} else {
		$controller='';
	}
}
$classname='chalangeAdminController'.$controller;
$controller=new $classname();
$controller->execute(JRequest::getVar('task'));
$controller->redirect();

?>
Return current item: Chalange