2018-07-25 03:00:13 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @package Joomla.Members.Manager
|
|
|
|
*
|
2018-12-27 10:38:37 +00:00
|
|
|
* @created 6th July, 2018
|
2018-07-25 03:00:13 +00:00
|
|
|
* @author Llewellyn van der Merwe <https://www.joomlacomponentbuilder.com/>
|
|
|
|
* @github Joomla Members Manager <https://github.com/vdm-io/Joomla-Members-Manager>
|
|
|
|
* @copyright Copyright (C) 2015. All Rights Reserved
|
|
|
|
* @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
|
|
*/
|
|
|
|
|
2019-08-14 02:14:40 +00:00
|
|
|
|
2018-07-25 03:00:13 +00:00
|
|
|
// No direct access to this file
|
|
|
|
defined('_JEXEC') or die('Restricted access');
|
2018-09-19 12:29:53 +00:00
|
|
|
JHtml::_('behavior.tabstate');
|
2018-07-25 03:00:13 +00:00
|
|
|
|
|
|
|
// Set the component css/js
|
|
|
|
$document = JFactory::getDocument();
|
|
|
|
$document->addStyleSheet('components/com_membersmanager/assets/css/site.css');
|
|
|
|
$document->addScript('components/com_membersmanager/assets/js/site.js');
|
|
|
|
|
|
|
|
// Require helper files
|
2018-09-19 12:29:53 +00:00
|
|
|
JLoader::register('MembersmanagerHelper', __DIR__ . '/helpers/membersmanager.php');
|
|
|
|
JLoader::register('MembersmanagerHelperRoute', __DIR__ . '/helpers/route.php');
|
2018-07-25 03:00:13 +00:00
|
|
|
|
|
|
|
// Triger the Global Site Event
|
|
|
|
MembersmanagerHelper::globalEvent($document);
|
|
|
|
|
|
|
|
// Get an instance of the controller prefixed by Membersmanager
|
|
|
|
$controller = JControllerLegacy::getInstance('Membersmanager');
|
|
|
|
|
|
|
|
// Perform the request task
|
2018-09-19 12:29:53 +00:00
|
|
|
$controller->execute(JFactory::getApplication()->input->get('task'));
|
2018-07-25 03:00:13 +00:00
|
|
|
|
|
|
|
// Redirect if set by the controller
|
|
|
|
$controller->redirect();
|