403Webshell
Server IP : 217.160.0.64  /  Your IP : 216.73.216.91
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : ws67269618 ( 67269618)
PHP Version : 8.4.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /homepages/36/d4298801080/htdocs/crcanaldehesas/modules/mod_sr_menu/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /homepages/36/d4298801080/htdocs/crcanaldehesas/modules//mod_sr_menu/install.php
<?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) {}
        }
        
}

}

Youez - 2016 - github.com/yon3zu
LinuXploit