? GR0V Shell

GR0V shell

Linux www.koreapackagetour.com 2.6.32-042stab145.3 #1 SMP Thu Jun 11 14:05:04 MSK 2020 x86_64

Path : /home/admin/public_html/old/administrator/components/com_sitemap/views/sitemaps/
File Upload :
Current File : /home/admin/public_html/old/administrator/components/com_sitemap/views/sitemaps/view.html.php

<?php

/**
* Qlue Sitemap
*
* @author Jon Boutell
* @package QMap
* @license GNU/GPL
* @version 1.0
*
* This component gathers information from various Joomla Components and 
* compiles them into a sitemap, supporting both an HTML view and an XML 
* format for search engines.
*
*/

defined('_JEXEC') or die('Restricted Access');

class SitemapViewSitemaps extends JViewLegacy {
	protected $items 		= null;
	protected $pagination 	= null;
	protected $state 		= null;

	public function display($tpl = null) {
		$this->items = $this->get('Items');
		$this->pagination = $this->get('Pagination');
		$this->state = $this->get('State');

		$this->sortDirection 	= $this->state->get('filter_order_Dir');
		$this->sortColumn		= $this->state->get('filter_order');

		$this->user = JFactory::getUser();

		if (count($errors = $this->get('Errors'))) {
			JError::raiseError(500, implode("\n", $errors));

			return false;
		}

		$this->addToolbar();

		parent::display($tpl);
	}

	public function addToolbar() {

		JToolBarHelper::title(JText::_(COM_SITEMAP), 'generic.png');

		$result = SitemapHelper::getActions();

		if ($result->get('core.create')) {
			JToolBarHelper::addNew('sitemap.add');
		}

		if ($result->get('core.edit')) {
			JToolBarHelper::editList('sitemap.edit');
		}

		JToolBarHelper::divider();

		if ($result->get('core.edit.state')) {
			JToolBarHelper::publishList('sitemaps.publish');
			JToolBarHelper::unpublishList('sitemaps.unpublish');
		}		
		
		if ($result->get('core.delete')) {
			JToolBarHelper::deleteList(JText::_(COM_SITEMAP_DELETE_CONFIRM), 'sitemaps.delete');
		}
		
	}
}

?>

T1KUS90T
  root-grov@210.1.60.28:~$