| 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/nice/components/com_rsfeedback/helpers/adapter/ |
Upload File : |
<?php
/**
* @package RSJoomla! Adapter
* @copyright (C) 2020 www.rsjoomla.com
* @license GPL, http://www.gnu.org/licenses/gpl-2.0.html
*/
defined('_JEXEC') or die('Restricted access');
function RSFeedbackAutoload($class) {
$class = strtolower($class);
$prefix = 'rsfeedbackadapter';
if (strpos($class, $prefix) === 0) {
// Grab name and filter it
$name = preg_replace('/[^a-z]/i', '', substr($class, strlen($prefix)));
// Supported Joomla! versions
$versions = array('4.0', '3.0');
// Iterate through and find the first available class
foreach ($versions as $version) {
$file = __DIR__ . '/' . $version . '/' . $name . '.php';
if (version_compare(JVERSION, $version, '>=') && file_exists($file)) {
require_once $file;
break;
}
}
}
}
spl_autoload_register('RSFeedbackAutoload');