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 :  C:/AppServ/www/app/webroot/news/administrator/components/com_simple_review/addons/modules/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/AppServ/www/app/webroot/news/administrator/components/com_simple_review/addons/modules/base.php
<?php
/**
 *  $Id: base.php 313 2010-11-06 09:52:01Z rowan $
 *
 * 	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('_VALID_MOS')||defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' );

class Module_Base extends Addon_Base_Frontend
{
	var $Initialised = false;
 	function Module_Base(&$addonManager, &$addonName, $initialise)
 	{
 	  	$this->addonType =_SR_ADDON_TYPE_MODULE; 
        parent::Addon_Base_Frontend($addonManager, $addonName, $initialise);
	}

	function _DoMambots($content)
	{
		return $this->_AddonManager->Bridge->RunPlugins($content);
	} 		 	
	
	function _DisplayHeader()
	{
	}
	
	function _DisplayMain()
	{		
	}

	function _DisplayFooter()
	{
	}
	
	function &_GetWidgetTemplateDisplayManager($templateName)
	{
		$displayManger = new WidgetTemplateDisplayManager();
		$myWidgets =& $this->_LoadMyWidgets();
		foreach($myWidgets as $widget)
		{
			$displayManger->AddWidget($widget);
		}
		
		return $displayManger;
	}
	
	function &_LoadMyWidgets()
	{
		$myWidgets = array();
	  	
	  	$selectedWids = $this->GetSetting('Widgets');

		if($selectedWids == null)
		{
			return $myWidgets;	
		}
		$selectedWids = explode("||", $selectedWids ); 
		foreach ($selectedWids as $wid)
		{
		  	 $widInfo = explode("::", $wid );
		  	 //TODO: remove this part
		  	 if(count($widInfo) != 2)
		  	 {
		  	 	continue;
		  	 }
			 $widObj =& $this->_AddonManager->LoadWidget($widInfo[0], $widInfo[1], true);
			 $myWidgets[] =& $widObj;
		}
		return $myWidgets;  
	}	
}

?>

Anon7 - 2022
AnonSec Team