AnonSec Shell
Server IP : 54.36.91.62  /  Your IP : 216.73.217.111
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/departement-amisdessenior-.fr/libraries/compojoom/utils/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/departement-amisdessenior-.fr/libraries/compojoom/utils/component.php
<?php
/**
 * @package    Lib_Compojoom
 * @author     DanielDimitrov <daniel@compojoom.com>
 * @date       17.09.2014
 *
 * @copyright  Copyright (C) 2008 - 2013 compojoom.com . All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE
 */

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

JLoader::import('joomla.application.component.helper');

/**
 * Class CompojoomUtilsComponent
 *
 * @since  4.0
 */
class CompojoomUtilsComponent
{
	private static $instance = null;

	/**
	 * The constructor
	 *
	 * @param   string  $component  - the component name
	 */
	protected function __construct($component)
	{
		$this->config = JComponentHelper::getParams($component);
	}

	/**
	 * Gets a single instance of the class
	 *
	 * @param   string  $component  - the component name
	 *
	 * @return CompojoomUtilsComponent|null
	 */
	public static function getInstance($component)
	{
		if (!self::$instance)
		{
			self::$instance = new CompojoomUtilsComponent($component);
		}

		return self::$instance;
	}

	/**
	 * Gets a component value taking into account the joomla version we run on
	 *
	 * @param   string  $value    - string
	 * @param   mixed   $default  - default value in case no value is set
	 *
	 * @return mixed
	 */
	public function get($value, $default)
	{
		if (version_compare(JVERSION, '3.0', 'ge'))
		{
			$returnValue = $this->config->get($value, $default);
		}
		else
		{
			$returnValue = $this->config->getValue($value, $default);
		}

		return $returnValue;
	}
}

Anon7 - 2022
AnonSec Team