| 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/administrator/components/com_jlexreview/libs/ |
Upload File : |
<?php
/**
* @package JLex Review
* @version 5
* @copyright Copyright JLexArt. All rights reserved
* @license GNU General Public License version 2 or later;
* @author www.jlexart.com
*/
defined("_JEXEC") or die;
use Joomla\CMS\Factory;
// b/c plugin - apply for J5
if(version_compare(JVERSION, "5.0.0-alpha", ">=")){
$classmap = JPATH_ROOT.'/plugins/behaviour/compat/compat.xml';
$bcIsOff = true;
if(file_exists($classmap)){
// check bc plugin
$db = Factory::getDbo();
$query = $db->getQuery(true);
$query->select('COUNT(*)')
->from('#__extensions')
->where([
'type='.$db->quote('plugin'),
'element='.$db->quote('compat'),
'folder='.$db->quote('behaviour'),
'enabled=1'
]);
$enabled = (int) $db->setQuery($query)->loadResult();
$bcIsOff = $enabled==0;
}
if($bcIsOff)
require_once dirname(__FILE__).'/classmap.php';
}