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_rsfeedback/views/feedbacks/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/amisdesseniors-fr/nice/components/com_rsfeedback/views/feedbacks/view.html.php
<?php
/**
* @package RSFeedback!
* @copyright (C) 2010-2018 www.rsjoomla.com
* @license GPL, http://www.gnu.org/licenses/gpl.html
*/

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

use Joomla\CMS\MVC\Model\BaseDatabaseModel;
use Joomla\CMS\MVC\View\HtmlView;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Uri\Uri;
use Joomla\CMS\Factory;

class RSFeedbackViewFeedbacks extends HtmlView
{
	public function display($tpl = null) {
		$app						= Factory::getApplication();
		$this->input				= $app->input;
		$this->user					= Factory::getUser();
		$this->items				= $this->get('Items');
		$this->params				= $app->getParams();
		$this->pagination			= $this->get('Pagination');
		$this->config				= RSFeedbackHelper::getConfig();
		$this->flags				= RSFeedbackHelper::getFlagNames();
		$this->statuses				= RSFeedbackHelper::getStatuses();
		$this->categories			= RSFeedbackHelper::getCategoryNames();
		$this->permissions			= RSFeedbackHelper::getPermissions();
		$this->remaining_votes		= BaseDatabaseModel::getInstance('Feedback','RSFeedbackModel')->getUserRemainingVotes();
		$this->search				= $this->input->get('search', '', 'string');
		
		$this->owner		= $this->user->username ? $this->user->username : Text::_('COM_RSFEEDBACK_USER_ANONYMOUS');
		$this->return_page  = base64_encode(Uri::getInstance());
		$this->tmpl 		= $this->input->get('tmpl', '', 'cmd');
		$this->title 		= $this->params->get('page_title');
		$this->description 	= '';
		$url_params 		= '';
		$this->cat_id 		= $this->input->get('cat_id', '', 'int');

		if ($this->cat_id) {
			$url_params 			.= '&cat_id='.$this->cat_id;
			$this->current_cat 		 = $this->get('FeedbackCategory');
			
			if (!$this->current_cat)
			{
				$app->enqueueMessage(Text::_('COM_RSFEEDBACK_CATEGORY_NOT_FOUND_ERROR'), 'error');
				$app->redirect(Route::_('index.php?option=com_rsfeedback&view=feedbacks'.($this->tmpl ? '&tmpl='.$this->tmpl : ''), false));
			}
			
			if ($this->current_cat->published == 0)
			{
				$app->enqueueMessage(Text::_('COM_RSFEEDBACK_CATEGORY_UNPUBLISHED_ERROR'), 'error');
				$app->redirect(Route::_('index.php?option=com_rsfeedback&view=feedbacks'.($this->tmpl ? '&tmpl='.$this->tmpl : ''), false));
			}

			$this->title			 = $this->current_cat->name;
			$this->description 		 = $this->current_cat->description;
		}

		if ($this->search) {
			$url_params .= '&search='.$this->search;
		}
		
		if ($this->tmpl) {
			$url_params .= '&tmpl='.$this->tmpl;
		}

		$this->form_action = 'index.php?option=com_rsfeedback&view=feedbacks'.$url_params;
		$this->action_votes  = $this->form_action.'&action=votes';

		$this->prepareDocument();
		
		parent::display($tpl);
	}
	
	protected function prepareDocument() {
		$app	= Factory::getApplication();
		$menus	= $app->getMenu();
		$title	= null;
		$menu	= $menus->getActive();
		$config	= Factory::getConfig();

		// Because the application sets a default page title,
		// we need to get it from the menu item itself
		if ($menu) {
			$this->params->def('page_heading', $this->params->get('page_title', $menu->title));
		} else {
			$this->params->def('page_heading', $this->title);
		}
		
		$title = $this->params->get('page_title', '');
		if ( isset($this->current_cat) ) {
			$title = $this->current_cat->name;
		}

		if (empty($title)) {
			$title = $config->get('sitename');
		} elseif ($config->get('sitename_pagetitles', 0) == 1) {
			$title = Text::sprintf('JPAGETITLE', $config->get('sitename'), $title);
		} elseif ($config->get('sitename_pagetitles', 0) == 2) {
			$title = Text::sprintf('JPAGETITLE', $title, $config->get('sitename'));
		}
		$this->document->setTitle($title);
		
		// Description
		if ($this->params->get('menu-meta_description')) {
			$this->document->setDescription($this->params->get('menu-meta_description'));
		}
		
		// Keywords
		if ($this->params->get('menu-meta_keywords')) {
			$this->document->setMetadata('keywords', $this->params->get('menu-meta_keywords'));
		}
		
		// Robots
		if ($this->params->get('robots')) {
			$this->document->setMetadata('robots', $this->params->get('robots'));
		}
		
		if ($this->cat_id) {
			Factory::getApplication()->getPathway()->addItem($this->title);
		}
		
		$this->pageclass_sfx = htmlspecialchars($this->params->get('pageclass_sfx',''));
		
		// Add feed 
		if ($this->config->enable_rss){
			$link    = '&format=feed&limitstart=';
			$attribs = array('type' => 'application/rss+xml', 'title' => 'RSS 2.0');
			$this->document->addHeadLink(Route::_($link . '&type=rss'), 'alternate', 'rel', $attribs);
			$attribs = array('type' => 'application/atom+xml', 'title' => 'Atom 1.0');
			$this->document->addHeadLink(Route::_($link . '&type=atom'), 'alternate', 'rel', $attribs);
		}
	}
}

Anon7 - 2022
AnonSec Team