55 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			55 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| /**
 | |
|  * @package    JEM
 | |
|  * @copyright  (C) 2013-2024 joomlaeventmanager.net
 | |
|  * @copyright  (C) 2005-2009 Christoph Lukes
 | |
|  * @license    https://www.gnu.org/licenses/gpl-3.0 GNU/GPL
 | |
|  */
 | |
| 
 | |
| defined('_JEXEC') or die;
 | |
| 
 | |
| use Joomla\CMS\Factory;
 | |
| use Joomla\CMS\HTML\HTMLHelper;
 | |
| use Joomla\CMS\MVC\Controller\BaseController;
 | |
| use Joomla\CMS\Table\Table;
 | |
| 
 | |
| // include files
 | |
| require_once (JPATH_COMPONENT_SITE.'/factory.php');
 | |
| require_once (JPATH_COMPONENT_SITE.'/helpers/helper.php');
 | |
| require_once (JPATH_COMPONENT_SITE.'/helpers/mailtohelper.php');
 | |
| require_once (JPATH_COMPONENT_SITE.'/helpers/route.php');
 | |
| require_once (JPATH_COMPONENT_SITE.'/helpers/countries.php');
 | |
| require_once (JPATH_COMPONENT_SITE.'/classes/config.class.php');
 | |
| require_once (JPATH_COMPONENT_SITE.'/classes/user.class.php');
 | |
| require_once (JPATH_COMPONENT_SITE.'/classes/image.class.php');
 | |
| require_once (JPATH_COMPONENT_SITE.'/classes/output.class.php');
 | |
| require_once (JPATH_COMPONENT_SITE.'/classes/view.class.php');
 | |
| require_once (JPATH_COMPONENT_SITE.'/classes/attachment.class.php');
 | |
| require_once (JPATH_COMPONENT_SITE.'/classes/categories.class.php');
 | |
| require_once (JPATH_COMPONENT_SITE.'/classes/calendar.class.php');
 | |
| require_once (JPATH_COMPONENT_SITE.'/classes/activecalendarweek.php');
 | |
| require_once (JPATH_COMPONENT_SITE.'/helpers/category.php');
 | |
| 
 | |
| // Set the table directory
 | |
| Table::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR.'/tables');
 | |
| $document = Factory::getApplication()->getDocument();
 | |
| $wa = $document->getWebAssetManager();
 | |
| $wa->useScript('jquery');
 | |
| // create JEM's file logger
 | |
| JemHelper::addFileLogger();
 | |
| 
 | |
| //perform cleanup if it wasn't done today (archive, delete, recurrence)
 | |
| JemHelper::cleanup();
 | |
| 
 | |
| // Get an instance of the controller
 | |
| $controller = BaseController::getInstance('Jem');
 | |
| 
 | |
| // Perform the Request task
 | |
| $input = Factory::getApplication()->input;
 | |
| $controller->execute($input->getCmd('task'));
 | |
| 
 | |
| // Redirect if set by the controller
 | |
| $controller->redirect();
 | |
| HTMLHelper::_('bootstrap.framework');
 | |
| HTMLHelper::_('bootstrap.tooltip','.hasTooltip');
 |