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/category/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

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

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

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 RSFeedbackViewCategory extends HtmlView
{
	public function display($tpl = null) {
		$app				= Factory::getApplication();
		$this->permissions	= RSFeedbackHelper::getPermissions();
		$this->cat_id		= $app->input->get('id', 0, 'int');

		// check edit permission
		if (!empty($this->cat_id) && !$this->permissions['category_edit']) {
			$app->enqueueMessage(Text::_('COM_RSFEEDBACK_EDIT_CATEGORY_PERMISSION_ERROR'));
			$app->redirect(Route::_('index.php?option=com_rsfeedback&view=feedbacks', false));
		}
		
		// check add permission
		if (empty($this->cat_id) && !$this->permissions['category_add']) {
			if ($active = Factory::getApplication()->getMenu()->getActive()) {
				if ($active->query['view'] == 'category') {
					$app->enqueueMessage(Text::_('COM_RSFEEDBACK_ADD_CATEGORY_PERMISSION_ERROR'));
					$app->redirect(Route::_('index.php?option=com_rsfeedback&view=feedbacks', false));
				}
			}
			
			$app->enqueueMessage(Text::_('COM_RSFEEDBACK_ADD_CATEGORY_PERMISSION_ERROR'));
			$app->redirect(Route::_('index.php?option=com_rsfeedback&view=feedbacks', false));
		}

		// Get model data.
		$this->state		= $this->get('State');
		$this->params		= $this->state->get('params');
		$this->item			= $this->get('Item');
		$this->flags		= RSFeedbackHelper::getFlagNames();
		$this->categories	= RSFeedbackHelper::getCategoryNames();
		$this->return_page  = base64_encode(Uri::getInstance());
        $this->tmpl 		= Factory::getApplication()->input->get('tmpl', '', 'cmd');
		$this->form			= $this->get('Form');
		
		$this->prepareDocument();

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

		// Because the application sets a default page title,
		// we need to get it from the menu item itself
		$menu = $menus->getActive();
		if ($menu) {
			$this->params->def('page_heading', $this->params->get('page_title', $menu->title));
		} else {
			$this->params->def('page_heading', empty($this->item->id) ? Text::_('COM_RSFEEDBACK_CATEGORY_ADD_FORM_TITLE') : Text::sprintf('COM_RSFEEDBACK_CATEGORY_EDIT_FORM_TITLE',$this->item->name));
		}
		
		$title = $this->params->get('page_title', '');
		if (empty($title)) {
			$title = $cfg->get('sitename');
		} elseif ($cfg->get('sitename_pagetitles', 0) == 1) {
			$title = Text::sprintf('JPAGETITLE', $cfg->get('sitename'), $title);
		} elseif ($cfg->get('sitename_pagetitles', 0) == 2) {
			$title = Text::sprintf('JPAGETITLE', $title, $cfg->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'));
		}
		
		$this->pageclass_sfx = htmlspecialchars($this->params->get('pageclass_sfx',''));
	}
}

Anon7 - 2022
AnonSec Team