git-svn-id: https://192.168.0.254/svn/Proyectos.FundacionLQDVI_WebCongresos/trunk@2 94ccb1af-fd9d-d947-8d90-7f70ea60afc8
34 lines
858 B
PHP
34 lines
858 B
PHP
<?php
|
|
/*
|
|
* @component SQL 2 Excel Component
|
|
* @copyright Copyright (C) Joomla-R-Us, joomla-r-us.com
|
|
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPLv3
|
|
*/
|
|
|
|
// No direct access
|
|
defined( '_JEXEC' ) or die( 'Restricted access' );
|
|
|
|
// Require the base controller
|
|
|
|
require_once( JPATH_COMPONENT.DS.'controller.php' );
|
|
|
|
// Require specific controller if requested
|
|
if($controller = JRequest::getWord('controller')) {
|
|
$path = JPATH_COMPONENT.DS.'controllers'.DS.$controller.'.php';
|
|
if (file_exists($path)) {
|
|
require_once $path;
|
|
} else {
|
|
$controller = '';
|
|
}
|
|
}
|
|
|
|
// Create the controller
|
|
$classname = 'Sql2excelController'.$controller;
|
|
$controller = new $classname( );
|
|
|
|
// Perform the Request task
|
|
$controller->execute( JRequest::getVar( 'task' ) );
|
|
|
|
// Redirect if set by the controller
|
|
$controller->redirect();
|