first commit
This commit is contained in:
25
administrator/components/com_ffexplorer/ffexplorer.php
Normal file
25
administrator/components/com_ffexplorer/ffexplorer.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package FF Explorer
|
||||
* @subpackage com_ffexplorer
|
||||
*
|
||||
* @copyright https://github.com/trananhmanh89/ffexplorer
|
||||
* @license MIT
|
||||
*/
|
||||
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\MVC\Controller\BaseController;
|
||||
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
if (!Factory::getUser()->authorise('core.manage', 'com_ffexplorer'))
|
||||
{
|
||||
throw new Exception(Text::_('JERROR_ALERTNOAUTHOR'), 403);
|
||||
}
|
||||
|
||||
$controller = BaseController::getInstance('ffexplorer');
|
||||
$controller->execute(Factory::getApplication()->input->get('task'));
|
||||
$controller->redirect();
|
||||
Reference in New Issue
Block a user