? 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/public_html/old/board/administrator/components/com_kunena/elements/
File Upload :
Current File : /home/admin/public_html/old/board/administrator/components/com_kunena/elements/kunenacategories.php

<?php
/**
 * @version $Id: kunenacategories.php 4336 2011-01-31 06:05:12Z severdia $
 * Kunena Component
 * @package Kunena
 *
 * @Copyright (C) 2008 - 2011 Kunena Team. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
 * @link http://www.kunena.org
 **/
defined ( '_JEXEC' ) or die ( '' );

class JElementKunenaCategories extends JElement {
	var $_name = 'KunenaCategories';

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

		$kunena_api = JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_kunena' . DS . 'api.php';
		require_once ($kunena_api);
		require_once (KUNENA_PATH . DS . 'class.kunena.php');
		$items = JJ_categoryArray ();

		$sections = $node->attributes ( 'sections' );
		$none = $node->attributes ( 'none' );
		$ctrl = $control_name . '[' . $name . ']';
		$options = Array ();
		$options [] = JHTML::_ ( 'select.option', '0', $none ? JText::_ ( $none ) : '&nbsp;' );
		foreach ( $items as $cat ) {
			$options [] = JHTML::_ ( 'select.option', $cat->id, $cat->treename, 'value', 'text', ! $sections && $cat->section );
		}
		$ctrl = $control_name . '[' . $name . ']';
		$size = $node->attributes ( 'size' );
		$class = $node->attributes ( 'class' );

		$attribs = ' ';
		if ($size) {
			$attribs .= 'size="' . $size . '"';
		}
		if ($class) {
			$attribs .= 'class="' . $class . '"';
		} else {
			$attribs .= 'class="inputbox"';
		}
		if ($node->attributes ( 'multiple' )) {
			$attribs .= ' multiple="multiple"';
			$ctrl .= '[]';
		}

		return JHTML::_ ( 'select.genericlist', $options, $ctrl, $attribs, 'value', 'text', $value, $control_name . $name );
	}
}

T1KUS90T
  root-grov@210.1.60.28:~$