| 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/annonces/components/com_jlexreview/views/ranking/ |
Upload File : |
<?php
/**
* @package JLex Review
* @version 4.2.3
* @copyright Copyright (c) 2013-2018 JLexArt. All rights reserved
* @license GNU General Public License version 2 or later;
* @author www.jlexart.com
*/
defined ( "_JEXEC" ) or die;
class JLexReviewViewRanking extends JViewLegacy
{
protected $config;
protected $items;
protected $pagination;
protected $params;
public function display($tpl = null)
{
$app = JFactory::getApplication();
$doc = JFactory::getDocument();
$this->config = JLexReviewHelperAdmin::getConfig();
if($this->config->get("ranking_page",1)==0)
{
throw new Exception(JText::_("JR_PAGE_NOT_FOUND"), 404);
return false;
}
$model = $this->getModel("ranking");
$menu = $app->getMenu()->getActive();
$this->params = new JRegistry();
$this->items = $model->getList();
$this->pagination = $model->getPagination();
if($menu)
{
$this->params = $menu->getParams();
$page_title = $this->params->get("page_title", "");
$titles = array((!preg_match("/^\s*$/", $page_title)?$page_title:$menu->title));
switch($app->getCfg('sitename_pagetitles'))
{
case 1:
array_unshift($titles, $app->getCfg('sitename'));
break;
case 2:
array_push($titles, $app->getCfg('sitename'));
break;
}
$doc->setTitle(implode(" - ", $titles));
}
parent::display();
}
}