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/editors-xtd/mymaplocations/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/dansnotreville-fr/plugins/editors-xtd/mymaplocations/mymaplocations.php
<?php

/**
 * @version    4.5.2
 * @package     com_mymaplocations
 * @copyright   JoomUnited (C) 2011. All rights reserved.
 * @license     http://www.gnu.org/copyleft/gpl.html GNU/GPL
 */
// No direct access to this file
defined('_JEXEC') or die('Restricted access');

// Import Joomla plugin library
jimport('joomla.plugin.plugin');
use Joomla\CMS\Language\Text;
/**
 * Editor Article buton
 *
 * @package		Joomla.Plugin
 * @subpackage	Editors-xtd.article
 * @since 1.5
 */
class plgButtonMyMaplocations extends JPlugin {

    /**
     * Constructor
     *
     * @access      protected
     * @param       object  $subject The object to observe
     * @param       array   $config  An array that holds the plugin configuration
     * @since       1.5
     */
    public function __construct(& $subject, $config) {
        parent::__construct($subject, $config);
        $this->loadLanguage();
    }

    /**
     * Display the button
     *
     * @return array A four element array of (article_id, article_title, category_id, object)
     */
    function onDisplay($name) {
        $app = JFactory::getApplication();
        if ($app->isClient('site')) {
            return;
        }
        JFactory::getLanguage()->load('com_mymaplocations', JPATH_ADMINISTRATOR);
        /*
         * Javascript to insert the link
         * View element calls jSelectMedia when a media is clicked
         * jSelectMedia creates the link tag, sends it to the editor,
         * and closes the select frame.
         */
        $js = "
		function jSelectChart_jform_request_id(id) {
			var tag = '{mymaplocation id='+id+'}';
			if (typeof Joomla.editors.instances['".$name."'] !== 'undefined') {
			window.parent.Joomla.editors.instances['".$name."'].replaceSelection(tag);
			if(typeof window.parent.Joomla.Modal!=='undefined')
			{
			window.parent.Joomla.Modal.getCurrent().close();
			}
			else
			{
			SqueezeBox.close();	
			}
		}
		else
		{
			window.parent.jInsertEditorText(tag, '".$name."');
			SqueezeBox.close();
			}
		}";
        $doc = JFactory::getDocument();
        $doc->addScriptDeclaration($js);
        $css='.icon-mymaplocations::before {content: "\70";}';
        $doc->addStyleDeclaration($css);        
        $link = 'index.php?option=com_mymaplocations&view=locations&layout=modal&tmpl=component&component=com_mymaplocations&data=bulk&function=jSelectChart_jform_request_id';

        $button = new JObject;
        $button->modal = true;
        $button->class = 'btn';
        $button->link = $link;
        $button->icon    = 'file-add';
		$button->iconSVG = '<svg viewBox="0 0 32 32" width="24" height="24"><path d="M28 24v-4h-4v4h-4v4h4v4h4v-4h4v-4zM2 2h18v6h6v10h2v-10l-8-'
								. '8h-20v32h18v-2h-16z"></path></svg>';
        $button->text = JText::_('COM_MYMAPLOCATIONS');
        $button->name = 'mymaplocations';
        $button->options =[ 
        'height'          => '400px',
        'width'           => '800px',
        'bodyHeight'      => '70',
        'modalWidth'      => '80',
        'tinyPath'        => $link,
        ];
        return $button;
    }

}

Anon7 - 2022
AnonSec Team