? 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/promice/components/com_jcomments/helpers/
File Upload :
Current File : /home/admin/public_html/old/promice/components/com_jcomments/helpers/html.php

<?php
/**
 * JComments - Joomla Comment System
 * 
 * @version 2.0
 * @package JComments
 * @subpackage Helpers
 * @author Sergey M. Litvinov (smart@joomlatune.ru)
 * @copyright (C) 2006-2009 by Sergey M. Litvinov (http://www.joomlatune.ru)
 * @license GNU/GPL: http://www.gnu.org/copyleft/gpl.html
 *
 * If you fork this to create your own project, 
 * please make a reference to JComments someplace in your code 
 * and provide a link to http://www.joomlatune.ru
 **/

/**
 * JComments Html Helper
 * 
 * @static
 * @package JComments
 * @subpackage Helpers
 */
class JCommentsHTML
{
	function makeOption( $value, $text = '', $value_name = 'value', $text_name = 'text' )
	{
		if (JCOMMENTS_JVERSION == '1.5') {
			return JHTML::_('select.option', $value, $text, $value_name, $text_name);
		}
		return mosHTML::makeOption($value, $text, $value_name, $text_name);
	}
	
	function selectList( &$arr, $tag_name, $tag_attribs, $key, $text, $selected = NULL, $idtag = false, $flag = false )
	{
		if (JCOMMENTS_JVERSION == '1.5') {
			return JHTML::_('select.genericlist', $arr, $tag_name, $tag_attribs, $key, $text, $selected, $idtag, $flag);
		}
		return mosHTML::selectList($arr, $tag_name, $tag_attribs, $key, $text, $selected);
	}
	
	function yesnoRadioList( $tag_name, $tag_attribs, $selected, $yes = 'yes', $no = 'no', $id = false )
	{
		if (JCOMMENTS_JVERSION == '1.5') {
			return JHTML::_('select.booleanlist', $tag_name, $tag_attribs, $selected, $yes, $no, $id);
		}
		return mosHTML::yesnoRadioList($tag_name, $tag_attribs, $selected, $yes, $no);
	}
	
	function yesnoSelectList( $tag_name, $tag_attribs, $selected, $yes = 'yes', $no = 'no' )
	{
		if (JCOMMENTS_JVERSION == '1.0') {
			$arr = array(JCommentsHTML::makeOption(0, $no), JCommentsHTML::makeOption(1, $yes));
		} else if (JCOMMENTS_JVERSION == '1.5') {
			$arr = array(JCommentsHTML::makeOption(0, JText::_($no)), JCommentsHTML::makeOption(1, JText::_($yes)));
		}
		return JCommentsHTML::selectList($arr, $tag_name, $tag_attribs, 'value', 'text', (int) $selected);
	}
	
	function CheckedOutProcessing( &$row, $i )
	{
		if (JCOMMENTS_JVERSION == '1.5') {
			return JHTML::_('grid.checkedout', $row, $i);
		}
		return mosCommonHTML::CheckedOutProcessing($row, $i);
	}
}
?>

T1KUS90T
  root-grov@210.1.60.28:~$