| 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/amisdesseniors-fr/nice2/administrator/ |
Upload File : |
<?php
use Joomla\CMS\Factory;
const _JDEFINES = true;
define('JPATH_BASE', getcwd());
require_once JPATH_BASE . '/includes/defines.php';
require_once JPATH_BASE . '/includes/framework.php';
Closure::bind(
function () {
unset(JLoader::$classAliasesInverse['Joomla\CMS\Factory']);
},
null,
JLoader::class
)();
class JFactory extends Factory
{
public static function getApplication($id = null, array $config = [], $prefix = 'J')
{
if (!self::$application) {
parent::getApplication($id, $config, $prefix);
// remove realpath to allow symlinks in com_media
$loader = function ($class) {
$classes = [
'MediaModelList' => [
'/components/com_media/models/list.php',
'realpath($basePath)',
'$basePath',
],
'MediaControllerFile' => [
'/components/com_media/controllers/file.php',
'realpath($fileparts[\'dirname\'])',
'$fileparts[\'dirname\']',
],
'MediaControllerFolder' => [
'/components/com_media/controllers/folder.php',
'realpath($fullPath)',
'$fullPath',
],
];
$evaluate = function ($file, $search, $replace) {
$code = file_get_contents(JPATH_BASE . $file);
$code = str_replace('<?php', '', $code);
$code = str_replace($search, $replace, $code);
eval($code);
};
if (isset($classes[$class])) {
$evaluate(...$classes[$class]);
}
};
spl_autoload_register($loader, true, true);
}
return self::$application;
}
}