monthlyarchive.php
1.52 KB
<?php
/* ======================================================
# Monthly Archive - Joomla! Component v4.3.3 (PRO version)
# -------------------------------------------------------
# For Joomla! 3.x
# Author: Yiannis Christodoulou (yiannis@web357.eu)
# Copyright (©) 2009-2018 Web357. All rights reserved.
# License: GNU/GPLv3, http://www.gnu.org/licenses/gpl-3.0.html
# Website: https://www.web357.eu/
# Demo: http://demo.web357.eu/?item=monthlyarchive
# Support: support@web357.eu
# Last modified: 09 Feb 2018, 13:55:18
========================================================= */
defined( '_JEXEC' ) or die( 'Restricted access' );
// Check if Web357 Framework plugin exists
jimport('joomla.plugin.helper');
if(!JPluginHelper::isEnabled('system', 'web357framework')):
$web357framework_required_msg = JText::_('<p>The <strong>"Web357 Framework"</strong> is required for this extension and must be active. Please, download and install it from <a href="http://downloads.web357.eu/?item=web357framework&type=free">here</a>. It\'s FREE!</p>');
JFactory::getApplication()->enqueueMessage($web357framework_required_msg, 'warning');
return false;
endif;
// Include dependancies
jimport('joomla.application.component.controller');
JLoader::registerPrefix('Monthlyarchive', JPATH_COMPONENT);
JLoader::register('MonthlyarchiveController', JPATH_COMPONENT . '/controller.php');
// Execute the task.
$controller = JControllerLegacy::getInstance('Monthlyarchive');
$controller->execute(JFactory::getApplication()->input->get('task'));
$controller->redirect();