shell bypass 403
<?php /** * @package Joomla.Platform * @subpackage Form * * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('JPATH_PLATFORM') or die; /** * Form Field class for the Joomla Platform. * Supports a generic list of options. * * @package Joomla.Platform * @subpackage Form * @since 11.1 */ class JFormFieldAnimateList extends JFormField { /** * The form field type. * * @var string * @since 11.1 */ protected $type = 'AnimateList'; /** * Method to get the field input markup for a generic list. * Use the multiple attribute to enable multiselect. * * @return string The field input markup. * * @since 11.1 */ protected function getInput() { $html = array(); $attr = ''; // Initialize some field attributes. $attr .= !empty($this->class) ? ' class="' . $this->class . '"' : ''; $attr .= !empty($this->size) ? ' size="' . $this->size . '"' : ''; $attr .= $this->multiple ? ' multiple' : ''; $attr .= $this->required ? ' required aria-required="true"' : ''; $attr .= $this->autofocus ? ' autofocus' : ''; // To avoid user's confusion, readonly="true" should imply disabled="true". if ((string) $this->readonly == '1' || (string) $this->readonly == 'true' || (string) $this->disabled == '1'|| (string) $this->disabled == 'true') { $attr .= ' disabled="disabled"'; } // Initialize JavaScript field attributes. $attr .= $this->onchange ? ' onchange="' . $this->onchange . '"' : ''; // Get the field options. $options = array( JHTML::_('select.option', 'bounce', 'bounce'), JHTML::_('select.option', '0.1', '0.1'), JHTML::_('select.option', '0.2', '0.2'), JHTML::_('select.option', '0.3', '0.3'), JHTML::_('select.option', '0.4', '0.4'), JHTML::_('select.option', '0.5', '0.5'), JHTML::_('select.option', '0.6', '0.6'), JHTML::_('select.option', '0.7', '0.7'), JHTML::_('select.option', '0.8', '0.8'), JHTML::_('select.option', '0.9', '0.9'), JHTML::_('select.option', '1.0', '1.0'), ); // Create a read-only list (no name) with a hidden input to store the value. if ((string) $this->readonly == '1' || (string) $this->readonly == 'true') { $html[] = JHtml::_('select.genericlist', $options, '', trim($attr), 'value', 'text', $this->value, $this->id); $html[] = '<input type="hidden" name="' . $this->name . '" value="' . $this->value . '"/>'; } else // Create a regular list. { $html[] = JHtml::_('select.genericlist', $options, $this->name, trim($attr), 'value', 'text', $this->value, $this->id); } return implode($html); } }