? GR0V Shell

GR0V shell

Linux www.koreapackagetour.com 2.6.32-042stab145.3 #1 SMP Thu Jun 11 14:05:04 MSK 2020 x86_64

Path : /home/admin/domains/happytokorea.com/public_html_bk/test3/plugins/system/fancybox/
File Upload :
Current File : /home/admin/domains/happytokorea.com/public_html_bk/test3/plugins/system/fancybox/components.php

<?php
/**
 * Joomla! 1.5 System plugin for Fancybox
 *
 * @author Yireo (info@yireo.com)
 * @package Joomla!
 * @copyright Copyright 2009
 * @license GNU Public License
 * @link http://www.yireo.com
 */

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die( 'Restricted access' );

/**
 * Renders a components element
 */
class JElementComponents extends JElement
{
    public $_name = 'Components';

    public function fetchElement($name, $value, &$node, $control_name)
    {
        $db =& JFactory::getDBO();

        // load the list of components
        $query = 'SELECT * FROM `#__components` WHERE `enabled`=1 AND `parent`=0 AND `link`!=""';
        $db->setQuery( $query );
        $components = $db->loadObjectList();

        $options = array();
        foreach ($components as $component) {
            $options[] = JHTML::_('select.option',  $component->option, $component->name.' ['.$component->option.']', 'value', 'text');
        }

        $attribs = 'class="inputbox" multiple="multiple"';
        return JHTML::_('select.genericlist',  $options, ''.$control_name.'['.$name.'][]', $attribs, 'value', 'text', $value, $control_name.$name);
    }
}


T1KUS90T
  root-grov@210.1.60.28:~$