AnonSec Shell
Server IP : 46.105.57.169  /  Your IP : 216.73.216.144
Web Server : Apache
System : Linux webd003.cluster120.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 : maitricfuz ( 93378)
PHP Version : 8.4.10
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/maitricfuz/www/new-saint-martin/administrator/components/com_maximenuck/elements/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/maitricfuz/www/new-saint-martin/administrator/components/com_maximenuck/elements/ckstyle.php
<?php
/**
 * @copyright	Copyright (C) 2016 Cedric KEIFLIN alias ced1870
 * http://www.joomlack.fr
 * @license		GNU/GPL
 * */

defined('JPATH_PLATFORM') or die;

require_once JPATH_ROOT . '/administrator/components/com_maximenuck/helpers/helper.php';
require_once JPATH_ROOT . '/administrator/components/com_maximenuck/helpers/ckframework.php';

use Maximenuck\Helper;
// use Maximenuck\CKFramework;

\Joomla\CMS\Language\Text::script('MAXIMENUCK_SAVE_CLOSE');

// CKFramework::load();
Helper::loadCkbox();

class JFormFieldCkstyle extends \Joomla\CMS\Form\FormField {

	protected $type = 'ckstyle';

	protected function getInput() {
		$doc = \Joomla\CMS\Factory::getDocument();
		// Initialize some field attributes.
		$js = 'function ckSelectStyle(id, name, close) {
			if (!close && close != false) close = true;
			jQuery("#' . $this->id . '").val(id);
			jQuery("#' . $this->id . 'name").val(name);
			if (close) 
				CKBox.close(\'#ckstylesmodal .ckboxmodal-button\');
		}';
		$doc->addScriptDeclaration($js);
			
		if (Helper::isV9() == '0') {
			// check if the maximenu params component is installed
			$html = '<input name="' 
				. $this->name . '_button" id="' 
				. $this->name . '_button" class="ckpopupwizardmanager_button ckbutton" style="padding:20px;background-image:url(' 
				. MAXIMENUCK_MEDIA_URI . '/images/' . 'pencil.png);background-repeat: no-repeat; background-position:10px center;width:300px;min-width: 300px;" type="button" value="' 
				. \Joomla\CMS\Language\Text::_('MAXIMENUCK_STYLES_WIZARD') . '" onclick="CKBox.open({handler:\'iframe\', fullscreen: true, url:\'' 
				. \Joomla\CMS\Uri\Uri::root(true) . '/administrator/index.php?option=com_maximenuck&view=style&layout=edit&tmpl=component&frommoduleid=' 
				. \Joomla\CMS\Factory::getApplication()->input->get('id',0,'int')
				// . '&id=' . $this->value
				.'\'})"/>';
			$html .= '<input type="hidden" name="' . $this->name . '" id="' . $this->id . '"' . ' value="'
				. htmlspecialchars($this->value, ENT_COMPAT, 'UTF-8') . '" />';

		} else {
		
			$icon = $this->element['icon'];
			$suffix = $this->element['suffix'];
			$size = $this->element['size'] ? ' size="' . (int) $this->element['size'] . '"' : '';
			$maxLength = $this->element['maxlength'] ? ' maxlength="' . (int) $this->element['maxlength'] . '"' : '';
			$class = $this->element['class'] ? ' class="' . (string) $this->element['class'] . '"' : '';
			$readonly = ((string) $this->element['readonly'] == 'true') ? ' readonly="readonly"' : '';
			$disabled = ((string) $this->element['disabled'] == 'true') ? ' disabled="disabled"' : '';
			$defautlwidth = $suffix ? '128px' : '150px';
			$styles = ' style="width:'.$defautlwidth.';'.$this->element['styles'].'"';
			Helper::checkDbIntegrity();
			$styleName = Helper::getStyleNameById($this->value);

			// Initialize JavaScript field attributes.
			$onchange = $this->element['onchange'] ? ' onchange="' . (string) $this->element['onchange'] . '"' : '';
			$html = $icon ? '<div style="display:inline-block;vertical-align:top;margin-top:4px;width:20px;"><img src="' . MAXIMENUCK_MEDIA_URI . '/images/' . $icon . '" style="margin-right:5px;" /></div>' : '<div style="display:inline-block;width:20px;"></div>';		

			$html .= '<div class="' . (version_compare(JVERSION, '4') >= 0 ?  'btn-group'  :'ckbutton-group' ) . '">';
			$html .= '<input type="hidden" name="' . $this->name . '" id="' . $this->id . '"' . ' value="'
				. htmlspecialchars($this->value, ENT_COMPAT, 'UTF-8') . '"' . $class . $size . $disabled . $readonly . $onchange . $maxLength . $styles . '/>';
			$html .= '<input type="text" disabled name="' . $this->name . 'name" id="' . $this->id . 'name"' . ' value="'
				. htmlspecialchars($styleName) . '"' . $class . $size . $disabled . $readonly . $onchange . $maxLength . $styles . '/>';
			$footerHtml = '<a class="ckboxmodal-button" href="javascript:void(0)" onclick="ckSaveIframe(\'test\')">' . \Joomla\CMS\Language\Text::_('CK_CREATE_NEW') . '</a>';
			$html .= '<div class="' . (version_compare(JVERSION, '4') >= 0 ?  'btn btn-outline-secondary'  :'ckbutton' ) . '" onclick="CKBox.open({id: \'ckstylesmodal\', url: \'index.php?option=com_maximenuck&view=styles&tmpl=component&layout=modal\', style: {padding: \'0px\'}})"><i class="fas fa-mouse-pointer "></i> ' . \Joomla\CMS\Language\Text::_('CK_SELECT') . '</div>';
			$html .= '<div class="' . (version_compare(JVERSION, '4') >= 0 ?  'btn btn-outline-secondary'  :'ckbutton' ) . '" onclick="CKBox.open({url: \'index.php?option=com_maximenuck&view=style&tmpl=component&layout=edit&id=\'+jQuery(\'#' . $this->id . '\').val()+\'\'})"><i class="fas fa-edit"></i> ' . \Joomla\CMS\Language\Text::_('CK_EDIT') . '</div>';
			$html .= '<div class="' . (version_compare(JVERSION, '4') >= 0 ?  'btn btn-outline-secondary'  :'ckbutton' ) . ' cktip" onclick="jQuery(\'#' . $this->id . '\').val(\'\');jQuery(\'#' . $this->id . 'name\').val(\'\');" title="' . \Joomla\CMS\Language\Text::_('CK_REMOVE') . '"><i class="fas fa-times"></i></div>';
			$html .= '</div>';

		}

		return $html;
	}
}

Anon7 - 2022
AnonSec Team