403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.216.231
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 :  C:/inetpub/wwwroot/icd/modules/mod_cn_mobileMenu/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/inetpub/wwwroot/icd/modules/mod_cn_mobileMenu/helper.php
<?php

/**
 * @version		1.4
 * @package		mod_cn_mobileMenu
 * @author    	Caleb Nance
 * @copyright	Copyright (c) 2009 - 2010 CalebNance.com. All rights reserved.
 * @license		GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
 *
 *				helper.php
 */
 
 defined('_JEXEC') or die ('Access Denied');
 
 class modmobileMenuHelper
 {
	function getMenu($sublevel, $items)
	{
		# CONNECT TO DB FOR THE MENU INFO
		
		$db =& JFactory::getDBO();
		if($sublevel == 'all') {
			$query = "SELECT id, name, link, ordering, published, parent, sublevel FROM #__menu WHERE menutype = '".$items. "' AND published = 1 AND sublevel = 0 ORDER BY ordering ASC";
		}else {
			$query = "SELECT id, name, link, ordering, published, parent, sublevel FROM #__menu WHERE menutype = '".$items. "' AND published = 1 AND sublevel= '".$sublevel."' ORDER BY ordering ASC";
		}
		$db->setQuery($query);
		$options = $db->loadObjectList();
		
		return $options;
	}
	
	function getSubMenu1($id, $items){
		
		$db =& JFactory::getDBO();
		$query = "SELECT id, name, link, ordering, published, parent, sublevel FROM #__menu WHERE menutype = '".$items. "' AND published = 1 AND parent = ".$id." AND sublevel = 1  ORDER BY ordering ASC";
		$db->setQuery($query);
		$options = $db->loadObjectList();
		
		return $options;
	}
	
	function getSubMenu2($id, $items){
		
		$db =& JFactory::getDBO();
		$query = "SELECT id, name, link, ordering, published, parent, sublevel FROM #__menu WHERE menutype = '".$items. "' AND published = 1 AND parent = ".$id." AND sublevel = 2  ORDER BY ordering ASC";
		$db->setQuery($query);
		$options = $db->loadObjectList();
		
		return $options;
	}
	
	function getSubMenu3($id, $items){
		
		$db =& JFactory::getDBO();
		$query = "SELECT id, name, link, ordering, published, parent, sublevel FROM #__menu WHERE menutype = '".$items. "' AND published = 1 AND parent = ".$id." AND sublevel = 3  ORDER BY ordering ASC";
		$db->setQuery($query);
		$options = $db->loadObjectList();
		
		return $options;
	}
	
	function getSubMenu4($id, $items){
		
		$db =& JFactory::getDBO();
		$query = "SELECT id, name, link, ordering, published, parent, sublevel FROM #__menu WHERE menutype = '".$items. "' AND published = 1 AND parent = ".$id." AND sublevel = 4  ORDER BY ordering ASC";
		$db->setQuery($query);
		$options = $db->loadObjectList();
		
		return $options;
	}
	 
 }

Youez - 2016 - github.com/yon3zu
LinuXploit