AnonSec Shell
Server IP : 54.36.91.62  /  Your IP : 216.73.217.112
Web Server : Apache
System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : coopiak ( 151928)
PHP Version : 8.3.23
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/coopiak/amisdesseniors-fr/nice/components/com_djcatalog2/views/orders/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/amisdesseniors-fr/nice/components/com_djcatalog2/views/orders/view.html.php
<?php
/**
 * @package DJ-Catalog2
 * @copyright Copyright (C) DJ-Extensions.com, All rights reserved.
 * @license http://www.gnu.org/licenses GNU/GPL
 * @author url: http://dj-extensions.com
 * @author email contact@dj-extensions.com
 */

defined ('_JEXEC') or die('Restricted access');
use Joomla\CMS\MVC\View\HtmlView;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Toolbar\Toolbar;
jimport('joomla.application.component.view');
jimport('joomla.html.pagination');




class DJCatalog2ViewOrders extends HtmlView {

	public function __construct($config = array())
	{
		parent::__construct($config);
		$this->_addPath('template', JPATH_ROOT.'/components/com_djcatalog2'.  '/themes/default/views/orders');
		$theme = DJCatalog2ThemeHelper::getThemeName();
		if ($theme && $theme != 'default') {
			$this->_addPath('template', JPATH_ROOT.'/components/com_djcatalog2'.  '/themes/'.$theme.'/views/orders');
		}
	}

	function display($tpl = null) {
		$app = Factory::getApplication();

		if (Factory::getUser()->guest) {
			$return_url = base64_encode(DJCatalogHelperRoute::getOrdersRoute());
			$app->enqueueMessage(Text::_('COM_DJCATALOG2_PLEASE_LOGIN'));
			$app->redirect(Route::_('index.php?option=com_users&view=login&return='.$return_url, false), 303);
			return true;
		}

		$this->state = $this->get('State');
		$this->items = $this->get('Items');
		$this->params = Djcatalog2Helper::getParams();
		$this->pagination = $this->get('Pagination');

		$this->_prepareDocument();

		parent::display($tpl);
	}

	protected function _prepareDocument() {
		$app		= Factory::getApplication();
		$menus		= $app->getMenu();
		$pathway	= $app->getPathway();
		$title		= null;
		$heading		= null;

		$menu = $menus->getActive();
		$menu_query = (!empty($menu->query)) ? $menu->query : array();
		$option = (!empty($menu_query['option'])) ? $menu_query['option'] : null;
		$view = (!empty($menu_query['view'])) ? $menu_query['view'] : null;

		if ($menu && $option == 'com_djcatalog2' && $view == 'orders') {
			$this->params->def('page_heading', $this->params->get('page_title', $menu->title));
		} else {
			$this->params->set('page_heading', Text::_('COM_DJCATALOG2_ORDERS_HEADING'));
		}

		$title = ($option == 'com_djcatalog2' && $view == 'orders') ? $this->params->get('page_title', '') : null;

		if (empty($title)) {
			$title = Text::_('COM_DJCATALOG2_ORDERS_HEADING');
		}
		elseif ($app->getCfg('sitename_pagetitles', 0)) {
			if ($app->getCfg('sitename_pagetitles', 0) == '2') {
				$title = Text::sprintf('JPAGETITLE', $title, $app->getCfg('sitename'));
			} else {
				$title = Text::sprintf('JPAGETITLE', $app->getCfg('sitename'), $title);
			}
		}

		$this->document->setTitle($title);

		if ($this->params->get('menu-meta_description'))
		{
			$this->document->setDescription($this->params->get('menu-meta_description'));
		}

		if ($this->params->get('menu-meta_keywords'))
		{
			$this->document->setMetadata('keywords', $this->params->get('menu-meta_keywords'));
		}

		if ($this->params->get('robots'))
		{
			$this->document->setMetadata('robots', $this->params->get('robots'));
		}
	}

	protected function getToolbar($buttons = array())
	{
		// Make a toolbar (you can give it any name if you do it this way)
		$bar = Toolbar::getInstance('toolbar');
		$params = DJcatalog2Helper::getParams();

		if($params->get('export_orders_frontend')) {
			$this->showCheckAll = true;

			$type = (isset($buttons['export']) && isset($buttons['export']['type'])) ? $buttons['export']['type'] : 'Standard';
			$icon = (isset($buttons['export']) && isset($buttons['export']['icon'])) ? $buttons['export']['icon'] : 'chevron-right';
			$text = (isset($buttons['export']) && isset($buttons['export']['text'])) ? $buttons['export']['text'] : Text::_('COM_DJCATALOG2_EXPORT_ORDERS');
			$task = (isset($buttons['export']) && isset($buttons['export']['task'])) ? $buttons['export']['task'] : 'orders.export';
			$confirm = (isset($buttons['export']) && isset($buttons['export']['confirm'])) ? $buttons['export']['confirm'] : false;

			$bar->appendButton( $type, $icon, $text, $task, $confirm);
		}

		return $bar->render();
	}

}





Anon7 - 2022
AnonSec Team