PATH:
home
/
centosnipponia
/
public_html
/
nipponiacom2
/
tmp
/
plg_system_sslredirect_j3x
/
fields
<?php /** * Joomla! System plugin for SSL redirection * * @author Yireo (info@yireo.com) * @package Joomla! * @copyright Copyright 2016 * @license GNU Public License * @link https://www.yireo.com */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die('Restricted access'); // Import classes jimport('joomla.html.html'); jimport('joomla.access.access'); jimport('joomla.form.formfield'); include_once JPATH_LIBRARIES . '/joomla/form/fields/list.php'; /** * Form Field-class for selecting a component */ class YireoFormFieldComponents extends JFormFieldList { /* * Form field type */ public $type = 'Components'; /* * Method to construct the HTML of this element * * @return string */ protected function getInput() { $name = $this->name . '[]'; $value = $this->value; $db = JFactory::getDbo(); // Load the list of components $query = 'SELECT * FROM `#__extensions` WHERE `type`="component" AND `enabled`=1'; $db->setQuery($query); $components = $db->loadObjectList(); $options = array(); foreach ($components as $component) { $options[] = JHTML::_('select.option', $component->element, $component->name . ' [' . $component->element . ']', 'value', 'text'); } $options = array_merge(parent::getOptions(), $options); $size = (count($options) > 12) ? 12 : count($options); $attribs = 'class="inputbox" multiple="multiple" size="' . $size . '"'; return JHTML::_('select.genericlist', $options, $name, $attribs, 'value', 'text', $value, $name); } }
[+]
..
[-] components.php
[edit]
[-] index.html
[edit]
[-] menuitems.php
[edit]
[-] .htaccess.disabled
[edit]