forked from projectknife/Projectfork
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pfrepo.php
30 lines (24 loc) · 984 Bytes
/
pfrepo.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
<?php
/**
* @package pkg_projectfork
* @subpackage com_pfrepo
*
* @author Tobias Kuhn (eaxs)
* @copyright Copyright (C) 2006-2013 Tobias Kuhn. All rights reserved.
* @license http://www.gnu.org/licenses/gpl.html GNU/GPL, see LICENSE.txt
*/
defined('_JEXEC') or die();
// Access check
if (!JFactory::getUser()->authorise('core.manage', 'com_pfrepo')) {
return JError::raiseWarning(403, JText::_('JERROR_ALERTNOAUTHOR'));
}
// Include dependencies
jimport('joomla.application.component.controller');
jimport('joomla.application.component.helper');
jimport('projectfork.framework');
// Register classes to autoload
JLoader::register('PFrepoHelper', JPATH_ADMINISTRATOR . '/components/com_pfrepo/helpers/pfrepo.php');
JHtml::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_pfrepo/helpers/html');
$controller = JControllerLegacy::getInstance('PFrepo');
$controller->execute(JFactory::getApplication()->input->get('task'));
$controller->redirect();