50 lines
2.0 KiB
PHP
50 lines
2.0 KiB
PHP
<?php
|
|
/* @package Joomla
|
|
* @copyright Copyright (C) Open Source Matters. All rights reserved.
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
|
|
* @extension Phoca Extension
|
|
* @copyright Copyright (C) Jan Pavelka www.phoca.cz
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
|
|
*/
|
|
defined('_JEXEC') or die;
|
|
use Joomla\CMS\Factory;
|
|
use Joomla\CMS\Language\Text;
|
|
use Joomla\CMS\MVC\Controller\BaseController;
|
|
|
|
|
|
if (!Factory::getUser()->authorise('core.manage', 'com_phocadownload')) {
|
|
throw new Exception(Text::_('COM_PHOCADOWNLOAD_ERROR_ALERTNOAUTHOR'), 404);
|
|
return false;
|
|
}
|
|
|
|
if (! class_exists('PhocaDownloadLoader')) {
|
|
require_once( JPATH_ADMINISTRATOR.'/components/com_phocadownload/libraries/loader.php');
|
|
}
|
|
require_once JPATH_ADMINISTRATOR . '/components/com_phocadownload/libraries/autoloadPhoca.php';
|
|
require_once( JPATH_COMPONENT.'/controller.php' );
|
|
jimport( 'joomla.filesystem.folder' );
|
|
jimport( 'joomla.filesystem.file' );
|
|
phocadownloadimport('phocadownload.path.path');
|
|
phocadownloadimport('phocadownload.utils.utils');
|
|
phocadownloadimport('phocadownload.utils.settings');
|
|
phocadownloadimport('phocadownload.utils.exception');
|
|
phocadownloadimport('phocadownload.render.renderadmin');
|
|
phocadownloadimport('phocadownload.render.renderadminview');
|
|
phocadownloadimport('phocadownload.render.renderadminviews');
|
|
phocadownloadimport('phocadownload.html.category');
|
|
phocadownloadimport('phocadownload.html.jgrid');
|
|
phocadownloadimport('phocadownload.html.batch');
|
|
phocadownloadimport('phocadownload.file.file');
|
|
phocadownloadimport('phocadownload.file.fileupload');
|
|
phocadownloadimport('phocadownload.file.fileuploadmultiple');
|
|
phocadownloadimport('phocadownload.file.fileuploadsingle');
|
|
phocadownloadimport('phocadownload.category.category');
|
|
phocadownloadimport('phocadownload.tag.tag');
|
|
phocadownloadimport('phocadownload.rate.rate');
|
|
|
|
jimport('joomla.application.component.controller');
|
|
$controller = BaseController::getInstance('PhocaDownloadCp');
|
|
$controller->execute(Factory::getApplication()->input->get('task'));
|
|
$controller->redirect();
|
|
?>
|