%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/old/plugins/editors/jckeditor/plugins/jtreelink/dialogs/ |
Upload File : |
<?php /*------------------------------------------------------------------------ # Copyright (C) 2005-2012 WebxSolution Ltd. All Rights Reserved. # @license - GPLv2.0 # Author: WebxSolution Ltd # Websites: http://www.webxsolution.com # Terms of Use: An extension that is derived from the JoomlaCK editor will only be allowed under the following conditions: http://joomlackeditor.com/terms-of-use # ------------------------------------------------------------------------*/ defined( '_JEXEC' ) or die( 'Restricted access' ); require_once('nodes.php'); class menuLinkNodes extends linkNodes { public function __construct() { parent::__construct(); } public function getItems() { $db = JFactory::getDBO(); $parent = JRequest::getVar('parent',0); $view = JRequest::getVar('view','types'); $user = JFactory::getUser(); $groups = implode(',', $user->getAuthorisedViewLevels()); $query = ''; if($view == 'menu') { $query = 'SELECT m.id, m.title AS name, m.link, m.id AS parent,' . ' 1 as expandible,' . ' 1 as selectable,' . ' 0 as doc_icon,' . ' "submenu" AS view' . ' FROM #__menu AS m' . ' INNER JOIN #__menu_types AS s ON s.menutype = m.menutype AND s.menutype = "'. $parent .'"' . ' INNER JOIN #__menu AS c on c.parent_id = m.id' . ' WHERE m.published = 1' . ' AND m.parent_id = 1' .' AND m.access IN ('.$groups.') ' . ' UNION ' . ' SELECT m.id, m.title AS name, m.link, 0 AS parent,' . ' 0 as expandible,' . ' 1 as selectable,' . ' 1 as doc_icon,' . ' "submenu" AS view' . ' FROM #__menu AS m' . ' INNER JOIN #__menu_types AS s ON s.menutype = m.menutype AND s.menutype = "'. $parent .'"' . ' LEFT JOIN #__menu AS c on c.parent_id = m.id' . ' WHERE m.published = 1' . ' AND c.id IS NULL' . ' AND m.parent_id = 1' .' AND m.access IN ('.$groups.') ' . ' ORDER BY name'; } elseif($view == 'submenu') { $query = 'SELECT m.id, m.title AS name, m.link, m.id AS parent,' . ' 1 as expandible,' . ' 1 as selectable,' . ' 0 as doc_icon,' . ' "submenu" AS view' . ' FROM #__menu AS m' . ' INNER JOIN #__menu AS c on c.parent_id = m.id' . ' WHERE m.published = 1' . ' AND m.parent_id = '.(int) $parent .' AND m.access IN ('.$groups.') ' . ' UNION ' . ' SELECT m.id, m.title AS name, m.link, 0 AS parent,' . ' 0 as expandible,' . ' 1 as selectable,' . ' 1 as doc_icon,' . ' "submenu" AS view' . ' FROM #__menu AS m' . ' LEFT JOIN #__menu AS c on c.parent_id = m.id' . ' WHERE m.published = 1' . ' AND m.parent_id = '.(int) $parent .' AND m.access IN ('.$groups.') ' . ' AND c.id IS NULL' . ' ORDER BY name'; } else { $query = 'SELECT id,title AS name,"" AS link, menutype AS parent,' . ' 1 AS expandible, ' . ' 0 as selectable,' . ' 0 as doc_icon,' . ' "menu" AS view' . ' FROM #__menu_types'; } $db->setQuery($query); $nodeList = $db->loadObjectList(); return $nodeList; } public function getLoadLink($node) { $config = JFactory::getConfig(); $config->set('live_site',''); return JURI::root().'links.php?parent='.$node->parent.'&extension=menu&view='.$node->view; } public function getUrl($node) { $url = str_replace('&','&',$node->link); if (preg_match('/^index.php/i', $url ) && strpos($url, 'Itemid') === false) { $url .= '&Itemid=' . $node->id; } return $url; } } ?>