| Current Path : /home/bonneesp/www/components/com_contactmap/ |
| Current File : /home/bonneesp/www/components/com_contactmap/contactmap.php |
<?php
/*
* ContactMap Component Google Map for Joomla! 3.x
* Version J3.12F
* Creation date: Août 2014
* Author: Fabrice4821 - www.gmapfp.org
* Author email: webmaster@gmapfp.org
* License GNU/GPL
*/
defined('_JEXEC') or die;
$task = JRequest::getVar('task', '', '', 'str');
if ($task== 'captacha') {
require_once (JPATH_SITE.'/components/com_contactmap/libraries/contactmap.captcha.php');
ContactMapCaptcha::image();
};
require_once (JPATH_COMPONENT.'/controller.php');
if($controller = JRequest::getWord('controller')) {
$path = JPATH_COMPONENT.'/controllers/'.$controller.'.php';
if (file_exists($path)) {
require_once $path;
} else {
$controller = '';
}
}
$classname = 'ContactMapsController'.ucfirst($controller);
$controller = new $classname( );
$controller->execute(JFactory::getApplication()->input->get('task'));
$controller->redirect();
?>