Spade
Mini Shell
| Directory:~$ /home/lmsyaran/www/khademsharif/ |
| [Home] [System Details] [Kill Me] |
home/lmsyaran/public_html/joomla35/components/com_menus/menus.php000064400000001455151171032030021265
0ustar00<?php
/**
* @package Joomla.Site
* @subpackage com_menus
*
* @copyright (C) 2016 Open Source Matters, Inc.
<https://www.joomla.org>
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
// Load the required admin language files
$lang = JFactory::getLanguage();
$app = JFactory::getApplication();
if ($app->input->get('view') === 'items'
&& $app->input->get('layout') ===
'modal')
{
if (!JFactory::getUser()->authorise('core.create',
'com_menus'))
{
$app->enqueueMessage(JText::_('JERROR_ALERTNOAUTHOR'),
'warning');
return;
}
}
$lang->load('com_menus', JPATH_ADMINISTRATOR);
// Trigger the controller
$controller = JControllerLegacy::getInstance('Menus');
$controller->execute($app->input->get('task'));
$controller->redirect();