Sindbad~EG File Manager
<?php
/**
* @package RSDirectory!
* @copyright (c) 2013 - 2021 RSJoomla!
* @link https://www.rsjoomla.com
* @license GNU General Public License http://www.gnu.org/licenses/gpl-3.0.en.html
*/
// No direct access.
defined('_JEXEC') or die('Restricted access');
/**
* The RSDirectory controller.
*/
class RsdirectoryController extends JControllerLegacy
{
/**
* The class constructor.
*
* @access public
*
* @param array $config
*/
public function __construct( $config = array() )
{
parent::__construct($config);
}
public function display($cachable = false, $safeurlparams = false)
{
$app = JFactory::getApplication();
$vName = $app->input->getCmd('view', '');
$allowed = JFolder::folders(JPATH_COMPONENT.'/views');
if (!in_array($vName, $allowed))
{
$app->input->set('view', 'rsdirectory');
}
parent::display($cachable, $safeurlparams);
}
}
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists