⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.37
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
psa-horde
/
lib
/
Tree
/
Renderer
/
View File Name :
Menu.php
* @category Horde * @license http://www.horde.org/licenses/lgpl LGPL-2 * @package Horde */ class Horde_Tree_Renderer_Menu extends Horde_Tree_Renderer_Base { /** * Returns the tree. * * @param boolean $static Unused. * * @return string The HTML code of the rendered tree. */ public function getTree($static = false) { $view = $GLOBALS['injector']->getInstance('Horde_View'); $view->setTemplatePath($GLOBALS['registry']->get('templates', 'horde') . '/tree'); $view->rootItems = $this->_tree->getRootNodes(); $view->items = $this->_tree->getNodes(); return $view->render('menu'); } /** * Returns just the JS node definitions as a string. * * @return object Object with the following properties: 'files', * 'nodes', 'root_nodes'. */ public function renderNodeDefinitions() { $result = new stdClass; $result->nodes = $this->_tree->getNodes(); $result->root_nodes = $this->_tree->getRootNodes(); $result->files = array(); /* Ignore files that are already loaded before building the tree. */ $ignored = array('prototype.js', 'hordetree.js', 'accesskeys.js', 'topbar.js'); foreach ($GLOBALS['page_output']->hsl as $val) { if (!in_array($val->file, $ignored)) { $result->files[] = strval($val->url); } } return $result; } }