| Server IP : 213.186.33.4 / Your IP : 216.73.216.193 Web Server : Apache System : Linux webm006.cluster103.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 : awebpaca ( 35430) PHP Version : 8.5.0 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/awebpaca/visitevirtuelle/administrator/components/com_akeeba/akeeba/utils/ |
Upload File : |
<?php
/**
* Akeeba Engine
* The modular PHP5 site backup engine
* @copyright Copyright (c)2009-2014 Nicholas K. Dionysopoulos
* @license GNU GPL version 3 or, at your option, any later version
* @package akeebaengine
*
*/
/**
* Retrieves the component configuration when Joomla! is not running, by digging directly into the Joomla!
* database record.
* @author Nicholas
*/
class AEUtilComconfig
{
private static function loadConfig()
{
$db = AEFactory::getDatabase();
$sql = $db->getQuery(true)
->select($db->qn('params'))
->from($db->qn('#__extensions'))
->where($db->qn('element') . " = " . $db->q('com_akeeba'));
$db->setQuery($sql);
$config_ini = $db->loadResult();
// OK, Joomla! 1.6 stores values JSON-encoded so, what do I do? Right!
$config_ini = json_decode($config_ini, true);
if (is_null($config_ini) || empty($config_ini))
{
$config_ini = array();
}
return $config_ini;
}
public static function getValue($key, $default)
{
static $config;
if (empty($config))
{
$config = self::loadConfig();
}
if (array_key_exists($key, $config))
{
return $config[$key];
}
else
{
return $default;
}
}
}