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/nice2/components/com_jlexreview/controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/amisdesseniors-fr/nice2/components/com_jlexreview/controllers/form.php
<?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 JLexReviewControllerForm extends JControllerLegacy
{
	public function display($cachable = false, $urlparams = array())
	{
		$app = JFactory::getApplication();
		$doc = JFactory::getDocument();

        $loader = JPATH_ROOT."/components/com_jlexreview/load.php";
		require_once $loader;

		$config = JLexReviewHelperAdmin::getConfig();
		$active = $app->getMenu()->getActive();

		if(
			is_object($active)
			&& isset($active->query['option'])
			&& isset($active->query['view'])
			&& isset($active->query['option'])=='com_jlexreview'
			&& isset($active->query['view'])=='form'
			)
		{
			$object = array(
				'title' => $active->getParams()->get('object_name', $active->title),
				'type'  => $active->getParams()->get('object', 'menu'),
				'id' 	=> $active->getParams()->get('object_id',$active->id),
				'section' => 0,
				'display'  => $active->getParams()->get('display', 'both')
			);

			if(!preg_match('/^[A-z0-9\_]+$/', $object['type'])) $object['type']='menu';
			if(!preg_match('/^[1-9][0-9]*$/',$object['id'])) $object['id']=$active->id;

			$object['section'] = $active->getParams()->get('section_id', 0);
			if(!preg_match('/^[1-9][0-9]*$/', $object['section'])) $object['section']=0;

			// params
			$header = $active->getParams()->get('header','-1');
			$summary = $active->getParams()->get('summary_board','-1');

			if($header!='-1') $config->set('header', $header);
			if($summary!='-1') $config->set('summary_board', $summary);

			$doc->setTitle($active->title.' - '.$app->getCfg('sitename'));
			$title = $active->getParams()->get('page_title', '');

			if(!empty($title))
                $doc->setTitle($title.' - '.$app->getCfg('sitename'));

            $desc  = $active->getParams()->get('menu-meta_description', '');
            if(!empty($desc))
                $doc->setMetaData('description', $desc);

			echo JLexReviewLoad::init( $object['title'], $object['type'], $object['id'], $object['section'], array('jdisplay'=>$object['display']) );
		} else {
			// submit new review
			$id = $app->input->getInt('id', 0);
			if($id<1)
			{
				throw new Exception(JText::_("JR_PAGE_NOT_FOUND"), 404);
				return false;
			}

			// find item from this ID
			$db = JFactory::getDbo();
			$query = $db->getQuery(true);

			$query->select('*')
				  ->from('#__jlexreview_entry')
				  ->where(array(
				  		'id='.$db->quote($id),
				  		'published=1'
				  	));

			$entry = $db->setQuery($query)->loadObject();
			if(!$entry)
			{
				throw new Exception(JText::_("JR_PAGE_NOT_FOUND"), 404);
				return false;
			}

			$config->set('form_title', $entry->object_name);

			echo JLexReviewLoad::init($entry->object_name, $entry->object, $entry->object_id, $entry->section_id, array('jdisplay'=>'form'));
		}
	}
}

Anon7 - 2022
AnonSec Team