-
Notifications
You must be signed in to change notification settings - Fork 0
/
easyquickicons.php
executable file
·35 lines (29 loc) · 1.19 KB
/
easyquickicons.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/**
* @package Easy QuickIcons
* @author Allan <allan@awynesoft.com>
* @link http://www.awynesoft.com
* @copyright Copyright (C) 2012 AwyneSoft.com All Rights Reserved
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
* @version $Id: easyquickicons.php 51 2012-10-05 18:58:38Z allan $
*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
//load css
$docs = JFactory::getDocument();
$docs->addStyleSheet(JURI::base() . '/components/com_easyquickicons/assets/css/style.css');
// Access check.
if (!JFactory::getUser()->authorise('core.manage', 'com_easyquickicons')) {
return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
}
// require helper file
JLoader::register('EasyquickiconsHelper', dirname(__FILE__) . '/helpers/easyquickicons.php');
// import joomla controller library
jimport('joomla.application.component.controller');
// Get an instance of the controller prefixed by Easyquickicon
$controller = JControllerLegacy::getInstance('Easyquickicons');
// Perform the Request task
$input = JFactory::getApplication()->input;
$controller->execute($input->getCmd('task'));
// Redirect if set by the controller
$controller->redirect();