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/plats-individuels/lyon/components/com_djclassifieds/views/profiles/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/plats-individuels/lyon/components/com_djclassifieds/views/profiles//view.html.php
<?php
/**
 * @package DJ-Classifieds
 * @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');

class DJClassifiedsViewProfiles extends JViewLegacy
{
	private static $_viewname = 'profiles';

	public function __construct($config = array())
	{
		parent::__construct($config);
		$par = JFactory::getApplication()->getParams('com_djclassifieds');
		
		$this->_addPath('template', JPATH_ROOT.'/components/com_djclassifieds/themes/'.$par->get('theme','default').'/views/'.self::$_viewname);
	}
	
	public function display($tpl = null)
	{
		$app = JFactory::getApplication();
		$document = JFactory::getDocument();
		$par = $app->getParams('com_djclassifieds');
		$model = $this->getModel();
		
		$items = $model->getItems();
		$countitems = $model->getCountItems();
		$regions = DJClassifiedsRegion::getRegAll();

		$limit = $app->input->getVar('limit', $par->get('profiles_limit','6'));
		$limitstart	= $app->input->getVar('limitstart');
		$pagination = new JPagination($countitems, $limitstart, $limit);

		// removing [none] sort opt
		DJClassifiedsTheme::removeNoneParamOpt('profiles_sorting_fields', $par, array('lastvisitDate'));

		/* linked field */

		$this->main_field = $app->input->getInt('fid') ? $model->getField($app->input->getInt('fid')) : null;
		if($this->main_field){
			$f_val = $app->input->getVar('se_'.$this->main_field->id);
			$f_par = new JRegistry();
			$f_par->loadString($this->main_field->params);
			$values_to_labels = $f_par->get('values_to_labels','-1') != '-1' ? $f_par->get('values_to_labels','-1') : $par->get('cf_values_to_labels','0');
			$this->main_field->val = $values_to_labels ? DJClassifiedsTheme::getFieldValueToLabel($f_val) : $f_val;
		}

		if($par->get('seo_profiles_metarobots','')){
			$document->setMetaData('robots',$par->get('seo_profiles_metarobots',''));
		}

		if($par->get('seo_empty_cats_noindex','1') && !$countitems){
			$document->setMetaData('robots','NOINDEX, NOFOLLOW');
		}
		
		if($par->get('seo_canonical_tags','1')){
			$uri = JUri::getInstance();
			$uri_vars = $uri->getQuery(true);
			unset($uri_vars['order']);
			unset($uri_vars['ord_t']);
			$canonical = DJClassifiedsSEO::getViewUri('profiles', array('Itemid' => $app->input->getInt('Itemid')));
			if(!empty($uri_vars)){
				$canonical .= '&'.$uri->buildQuery($uri_vars);
			}
			$canonical = JRoute::_($canonical, true, (JUri::getInstance()->isSSL() ? 1 : -1));
			$this->document->addHeadLink($canonical, 'canonical');
		}

		DJClassifiedsSEO::setMeta();
		DJClassifiedsSEO::setSiteNameInPageTitle();
		$this->page_heading = DJClassifiedsSEO::getPageHeading($par);
	
		$this->items = $items;
		$this->regions = $regions;
		$this->pagination = $pagination;
		$this->sort_fields = DJClassifiedsField::getProfileSortFields();
		$this->par = $par;
		
		parent::display($tpl);		  
	}
}

Anon7 - 2022
AnonSec Team