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/saint-martin-lg/plugins/slideshowck/folder/elements/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/maitricfuz/www/saint-martin-lg/plugins/slideshowck/folder/elements/ckfolder.php
<?php
/**
 * @copyright	Copyright (C) 2016 Cedric KEIFLIN alias ced1870
 * http://www.joomlack.fr
 * @license		GNU/GPL
 * */

defined('_JEXEC') or die;

if (!defined('SLIDESHOWCK_MEDIA_URI'))
{
	define('SLIDESHOWCK_MEDIA_URI', Slideshowck\CKUri::root(true) . '/media/com_slideshowck');
}

require_once JPATH_ROOT . '/administrator/components/com_slideshowck/elements/ckformfield.php';

Slideshowck\CKText::script('CK_SAVE_CLOSE');

class JFormFieldCkfolder extends CKFormField
{

	protected $type = 'ckfolder';

	function __construct($form = null) {
		$doc = Slideshowck\CKFof::getDocument();

		\Joomla\CMS\HTML\HTMLHelper::_('jquery.framework');
		$doc->addStyleSheet(Slideshowck\CKUri::root(true) . '/plugins/slideshowck/folder/elements/ckfolder/ckfolder.css');
//		$doc->addScript(SLIDESHOWCK_MEDIA_URI . '/assets/jquery-ui.min.js');
		$doc->addScript(Slideshowck\CKUri::root(true) . '/plugins/slideshowck/folder/elements/ckfolder/ckfolder.js');
		$doc->addStylesheet(SLIDESHOWCK_MEDIA_URI . '/assets/ckbox.css');
		$doc->addScript(SLIDESHOWCK_MEDIA_URI . '/assets/ckbox.js');

		parent::__construct($form);
	}

	protected function getInput() {
		// Initialize some field attributes.
		$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'].'"';

		// 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="' . SLIDESHOWCK_MEDIA_URI . '/images/' . $icon . '" style="margin-right:5px;" /></div>' : '<div style="display:inline-block;width:20px;"></div>';
		$html .= '<input type="text" name="' . $this->name . '" id="' . $this->id . '"' . ' value="'
			. htmlspecialchars($this->value, ENT_COMPAT, 'UTF-8') . '"' . $class . $size . $disabled . $readonly . $onchange . $maxLength . $styles . '/>';
		if ($suffix)
			$html .= '<span style="display:inline-block;line-height:25px;">' . $suffix . '</span>';
		$html .= '<div class="ckbutton" onclick="CKBox.open({url: \'index.php?option=com_slideshowck&view=browse&type=folder&field=' . $this->id . '&tmpl=component&func=ckSelectFolder\'})"><i class="fas fa-edit"></i> ' . Slideshowck\CKText::_('SLIDESHOWCK_SELECT') . '</div>';
		$html .= '<p></p><p>' . Slideshowck\CKText::_('SLIDESHOWCK_FOLDER_EDIT_LABELS_DESC') . '</p>';
		$html .= '<p><div class="btn btn-primary" onclick="ckEditLabelsFile()">' . Slideshowck\CKText::_('SLIDESHOWCK_FOLDER_EDIT_LABELS') . '</div></p>';
//		$html .= '<h3>' . Slideshowck\CKText::_('SLIDESHOWCK_FOLDER_SLIDES_PREVIEW') . '</h3>';
//		$html .= '<div id="' . $this->id . 'imagespreview"></div>';
		$html .= '<div id="' . $this->id . 'labelseditor" ></div>';
		return $html;
	}
}

Anon7 - 2022
AnonSec Team