shell bypass 403
<?php /** * @title Simple image gallery module * @website http://www.joomshaper.com * @copyright Copyright (C) 2010 JoomShaper.com. All rights reserved. * @license GNU/GPL, see LICENSE.php */ defined('_JEXEC') or die('Restricted access'); jimport('joomla.form.formfield'); jimport( 'joomla.filesystem.folder' ); class JFormFieldFolderTree extends JFormField { protected $type = 'FolderTree'; protected function getInput() { $options = array(); // path to images directory $path = JPATH_ROOT.DIRECTORY_SEPARATOR.$this->element['directory']; $filter = $this->element['filter']; $folders = JFolder::listFolderTree($path, $filter); foreach ($folders as $folder) { $options[] = JHtml::_('select.option', str_replace(DIRECTORY_SEPARATOR,"/",$folder['relname']), str_replace(DIRECTORY_SEPARATOR,"/",substr($folder['relname'], 1))); } return JHtml::_('select.genericlist', $options, $this->name, '', 'value', 'text', $this->value); } }