| Current Path : /home/sunflowe/www2/j15/administrator/components/com_easycaptcha/ |
| Current File : /home/sunflowe/www2/j15/administrator/components/com_easycaptcha/easycaptcha.php |
<?php
/**
* @version $Id: easycaptcha.php 647 2008-03-25 11:28:29Z snipersister $
* @package EasyCaptcha
* @link http://www.easy-joomla.org
* @license GNU/GPL
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
define('_EASYCAPTCHA_VERSION', '2.0rc2');
// 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 = '';
}
}
// Add the tables
JTable::addIncludePath(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_easycaptcha'.DS.'tables');
// Create the controller
$classname = 'EasyCaptchaController'.$controller;
$controller = new $classname( );
// Perform the Request task
$controller->execute( JRequest::getVar( 'task' ) );
// Redirect if set by the controller
$controller->redirect();
?>