__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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
/********************************************************************
Product		: Simple Responsive Menu
Date		: 30 November 2023
Copyright	: Les Arbres Design 2010-2023
Contact		: https://www.lesarbresdesign.info
Licence		: GNU General Public License
*********************************************************************/
defined('_JEXEC') or die('Restricted Access');

use Joomla\CMS\Factory;
use Joomla\CMS\Component\ComponentHelper;

class mod_sr_menuInstallerScript
{
public function preflight($type, $parent) 
{
}

//-------------------------------------------------------------------------------
// The main install function
//
public function postflight($type, $parent)
{
	if ($type == 'uninstall')
		return;

// we now install language files in the module directories, so must remove them from the system-wide directories, since they would take precedence

    $dirs = glob(JPATH_SITE.'/language/*',GLOB_ONLYDIR);
    foreach ($dirs as $dir)
        {
        $sub_dir = basename($dir);
    	@unlink($dir.'/'.$sub_dir.'.mod_sr_menu.ini');
    	@unlink($dir.'/'.$sub_dir.'.mod_sr_menu.sys.ini');
        }

// remove redundant http update site, if present

    $db = Factory::getDBO();
	$query = "DELETE FROM `#__update_sites` WHERE `name` = 'Simple Responsive Menu' AND SUBSTRING(`location`,1,5) = 'http:'";
    $db->setQuery($query);
    try {$db->execute();} catch (RuntimeException $e) {}
        
// if update check caching is disabled, disable our update site as it causes excessive traffic

    $component = ComponentHelper::getComponent('com_installer');
    $params = $component->params;
    $cache_timeout = $params->get('cachetimeout', 6, 'int');
    if ($cache_timeout == 0)
        {
        $query = $db->getQuery(true)->update($db->quoteName('#__update_sites'))->set($db->quoteName('enabled') . ' = 0')->where($db->quoteName('name') . ' = ' . $db->quote('Simple Responsive Menu'));
        $db->setQuery($query);
        try {$db->execute();} catch (RuntimeException $e) {}
        }
        
}

}

Filemanager

Name Type Size Permission Actions
language Folder 0775
tmpl Folder 0775
helper.php File 6.53 KB 0664
index.html File 31 B 0664
install.php File 2.03 KB 0664
mod_sr_menu.php File 2.69 KB 0664
mod_sr_menu.xml File 7.05 KB 0664
Filemanager