uawdijnntqw1x1x1
IP : 216.73.216.198
Hostname : webm002.cluster123.gra.hosting.ovh.net
Kernel : Linux webm002.cluster123.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
OS : Linux
PATH:
/
home
/
megadansyp
/
www
/
eace8
/
..
/
administrator
/
components
/
com_content
/
..
/
com_xmap
/
controller.php
/
/
<?php /** * @version $Id$ * @copyright Copyright (C) 2007 - 2009 Joomla! Vargas. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt * @author Guillermo Vargas (guille@vargas.co.cr) */ // no direct access defined('_JEXEC') or die; jimport('joomla.application.component.controller'); /** * Component Controller * * @package Xmap * @subpackage com_xmap */ class XmapController extends JControllerLegacy { function __construct() { parent::__construct(); $this->registerTask('navigator-links', 'navigatorLinks'); } /** * Display the view */ public function display($cachable = false, $urlparams = false) { require_once JPATH_COMPONENT . '/helpers/xmap.php'; // Get the document object. $document = JFactory::getDocument(); // Set the default view name and format from the Request. $vName = JRequest::getWord('view', 'sitemaps'); $vFormat = $document->getType(); $lName = JRequest::getWord('layout', 'default'); // Get and render the view. if ($view = $this->getView($vName, $vFormat)) { // Get the model for the view. $model = $this->getModel($vName); // Push the model into the view (as default). $view->setModel($model, true); $view->setLayout($lName); // Push document object into the view. $view->assignRef('document', $document); $view->display(); } } function navigator() { $db = JFactory::getDBO(); $document = JFactory::getDocument(); $app = JFactory::getApplication('administrator'); $id = JRequest::getInt('sitemap', 0); $link = urldecode(JRequest::getVar('link', '')); $name = JRequest::getCmd('e_name', ''); if (!$id) { $id = $this->getDefaultSitemapId(); } if (!$id) { JError::raiseWarning(500, JText::_('Xmap_Not_Sitemap_Selected')); return false; } $app->setUserState('com_xmap.edit.sitemap.id', $id); $view = $this->getView('sitemap', $document->getType()); $model = $this->getModel('Sitemap'); $view->setLayout('navigator'); $view->setModel($model, true); // Push document object into the view. $view->assignRef('document', $document); $view->navigator(); } function navigatorLinks() { $db = JFactory::getDBO(); $document = JFactory::getDocument(); $app = JFactory::getApplication('administrator'); $id = JRequest::getInt('sitemap', 0); $link = urldecode(JRequest::getVar('link', '')); $name = JRequest::getCmd('e_name', ''); if (!$id) { $id = $this->getDefaultSitemapId(); } if (!$id) { JError::raiseWarning(500, JText::_('Xmap_Not_Sitemap_Selected')); return false; } $app->setUserState('com_xmap.edit.sitemap.id', $id); $view = $this->getView('sitemap', $document->getType()); $model = $this->getModel('Sitemap'); $view->setLayout('navigator'); $view->setModel($model, true); // Push document object into the view. $view->assignRef('document', $document); $view->navigatorLinks(); } private function getDefaultSitemapId() { $db = JFactory::getDBO(); $query = $db->getQuery(true); $query->select('id'); $query->from($db->quoteName('#__xmap_sitemap')); $query->where('is_default=1'); $db->setQuery($query); return $db->loadResult(); } }
/home/megadansyp/www/eace8/../administrator/components/com_content/../com_xmap/controller.php