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/administrator/components/com_noixacl/adapters/menu/views/site/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /inetpub/wwwroot/icd/administrator/components/com_noixacl/adapters/menu/views/site//view.html.php
<?php
/**
* No Direct Access
*/
defined('_JEXEC') or die( 'Restricted access' );

/**
 * HTML View class for the Menus Adapter
 *
 * @static
 * @package		Joomla
 * @subpackage	Adapters
 * @since 1.0
 */

require_once JPATH_COMPONENT_ADMINISTRATOR.DS."controllers".DS."adapters.php";

class MenuViewSite extends JView
{
	function display($tpl = null)
	{
		$db = JFactory::getDBO();

        /**
         * Get Viewname
         */
        $viewName = ucfirst($this->getName());
        /**
         * Get Adapter Name
         */
        $adapterName = "menu";
		
                /**
                 * Sections List
                 */
		$menuTypes = $this->getMenuTypeList();
		
		$adapterControl = new Adapters();
		$xml = $adapterControl->parseXMLInstallFile(NOIXACL_APADTER_PATH.DS."menu".DS."menu.xml");
		
		$list["menuType"] = JHTML::_('select.genericlist',  $menuTypes, $adapterName.$viewName.'TableMenuType', 'class="inputbox" size="1" onchange="showMenuSite();"', 'id', 'title');
		
		$this->assignRef("menuTypesList", $menuTypes);
		$this->assignRef("tasks", $xml["tasks"]["site"]);
                $this->assignRef("adapterControl", $adapterControl);
		$this->assignRef("lists",$list);
		$this->assignRef("viewName", $viewName);
		$this->assignRef("adapterName", $adapterName);

		parent::display($tpl);
	}
	
	/**
	 * Get all menutypes and items
	 */
	function getMenuTypeList()
	{
		$db			=& JFactory::getDBO();
		
                /**
                 * Get Menutype
                 */
		$queryMenuType = "SELECT m.id, m.title, m.menutype "
                  . "FROM #__menu_types AS m ORDER BY m.title";
		$db->setQuery( $queryMenuType );
		$menuTypeList = $db->loadObjectList();
		
		/**
		 * Get menu itens
		 */
		foreach($menuTypeList as $menuType){
			$queryMenuTypeItens = "SELECT m.*, g.name as groupname "
                        . "FROM #__menu m, #__groups g "
                        . "WHERE m.menutype = '{$menuType->menutype}' AND m.published = 1 AND m.access = g.id "
                        . "ORDER BY m.ordering ASC, m.parent, m.ordering";
                        
                        $db->setQuery( $queryMenuTypeItens );
			$menuItensList = $db->loadObjectList();
			
			$levelLimit	= 10;
                        /**
                         * Estabilish the hierarchy of the menu
                         */
			$children = array();
                        /**
                         * First Pass - Collect Children
                         */
                        if ($menuItensList) {
                            foreach ($menuItensList as $v)
                            {
                                    $pt = $v->parent;
                                    $list = @$children[$pt] ? $children[$pt] : array();
                                    array_push( $list, $v );
                                    $children[$pt] = $list;
                            }
                        }
                        /**
                         * Second Pass - Get and ident list of the items
                         */
			$list = JHTML::_('menu.treerecurse', 0, '', array(), $children, max( 0, $levelLimit-1 ) );
			
			$menuType->menuItensList = $list;
		}
		
		return $menuTypeList;
	}
	
}

Youez - 2016 - github.com/yon3zu
LinuXploit