HEX
Server: Apache
System: Linux webm005.cluster114.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: epubdjye (129326)
PHP: 8.5.7
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/epubdjye/www17/old/administrator/components/com_acymailing/views/tag/view.html.php
<?php
/**
 * @copyright	Copyright (C) 2009-2012 ACYBA SARL - All rights reserved.
 * @license		http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
 */
defined('_JEXEC') or die('Restricted access');
?>
<?php
class TagViewTag extends JView
{
	function display($tpl = null)
	{
		$function = $this->getLayout();
		if(method_exists($this,$function)) $this->$function();
		parent::display($tpl);
	}
	function tag(){
		$doc = JFactory::getDocument();
		$doc->addStyleSheet( ACYMAILING_CSS.'frontendedition.css' );
		JPluginHelper::importPlugin('acymailing');
		$dispatcher = JDispatcher::getInstance();
		$tagsfamilies = $dispatcher->trigger('acymailing_getPluginType');
		$defaultFamily = reset($tagsfamilies);
		$app = JFactory::getApplication();
		$fctplug = $app->getUserStateFromRequest( ACYMAILING_COMPONENT.".tag", 'fctplug',$defaultFamily->function,'cmd' );
		ob_start();
		$defaultContents = $dispatcher->trigger($fctplug);
		$defaultContent = ob_get_clean();
		$js = 'function insertTag(){if(window.parent.insertTag(window.document.getElementById(\'tagstring\').value)) {try{window.parent.document.getElementById(\'sbox-window\').close();}catch(err){window.parent.SqueezeBox.close();}}}';
		$js.= 'function setTag(tagvalue){window.document.getElementById(\'tagstring\').value = tagvalue;if(tagvalue.length>0){showTagButton();}else{hideTagButton();}}';
		$js .='function showTagButton(){window.document.getElementById(\'insertButton\').style.display = \'inline\'; window.document.getElementById(\'tagstring\').style.display=\'inline\';}';
		$js .='function hideTagButton(){window.document.getElementById(\'insertButton\').style.display = \'none\';}';
		$doc = JFactory::getDocument();
		$doc->addScriptDeclaration( $js );
		$this->assignRef('fctplug',$fctplug);
		$type = JRequest::getString('type','news');
		$this->assignRef('type',$type);
		$this->assignRef('defaultContent',$defaultContent);
		$this->assignRef('tagsfamilies',$tagsfamilies);
		$app = JFactory::getApplication();
		$this->assignRef('app',$app);
		$ctrl = JRequest::getString('ctrl');
		$this->assignRef('ctrl',$ctrl);
	}
}