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/components/com_simple_review/templates/default/commentform/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /AppServ/www/news/components/com_simple_review/templates/default/commentform/template.php
<?php
/**
 *  $Id: template.php 327 2010-11-17 08:59:25Z rowan $
 *
 * 	Copyright (C) 2005-2011  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.' );
class TemplateCommentFormFront extends TemplateCommentFormFrontBase
{
	function TemplateCommentFormFront(&$setup)
	{
		parent::Addon_Base_Template($setup, __FILE__);
		
		$templateDirectoryUrl = $this->GetUrlToTemplateDirectory();
		
		$cssUrl =  $templateDirectoryUrl.'css/';
		$cssFile = $cssUrl.'commentform.css';
		$this->addonManager->Bridge->IncludeCssLink($cssFile);
		
		$this->addonManager->Bridge->IncludeJSLink($templateDirectoryUrl.'js/commentform.js');
	}
		
	function Display()
	{
		$option = $this->addonManager->Bridge->Option;

		$details =& $this->setup->viewModel;
		
		$avatarURL = $this->addonManager->Bridge->SiteUrl."components/$option/images/avatars";
		
		$warningMandatoryName = $this->setup->relatedAddon->GetString('WarningMandatoryName', _SR_ADDON_TYPE_MODULE, 'Comment_Module');
		$warningMandatoryComment = $this->setup->relatedAddon->GetString('WarningMandatoryComment', _SR_ADDON_TYPE_MODULE, 'Comment_Module');
		$warningMandatoryImageCode = $this->setup->relatedAddon->GetString('WarningMandatoryImageCode', _SR_ADDON_TYPE_MODULE, 'Comment_Module');
		$warningLength = $this->setup->relatedAddon->GetString('WarningLength', _SR_ADDON_TYPE_MODULE, 'Comment_Module');
		$warningBounds = $this->setup->relatedAddon->GetString('WarningBounds', _SR_ADDON_TYPE_MODULE, 'Comment_Module');
		$captcha = $this->setup->relatedAddon->GetString('Captcha', _SR_ADDON_TYPE_MODULE, 'Captcha_Module');
		$maxLength = $this->setup->relatedAddon->GetSetting('MaxLength', _SR_ADDON_TYPE_MODULE, 'Comment_Module');
				
		$maxRating = floatval($this->addonManager->GetSetting('MaxRating', _SR_ADDON_TYPE_MODULE, 'Review_Module'));

		$useStarRating =  !$details->hasPreviouslyCommented && $this->addonManager->GetSetting('UseStarRating', _SR_ADDON_TYPE_MODULE, 'Comment_Module') == '1';
		
		$commentRequired = intval($this->addonManager->GetSetting('CommentRequired', _SR_ADDON_TYPE_MODULE, 'Comment_Module'), 10);;
		
		$ratingRequired = intval($this->addonManager->GetSetting('RatingRequired', _SR_ADDON_TYPE_MODULE, 'Comment_Module'), 10);
		if($ratingRequired === 3 && $this->setup->reviewRating < 0)
		{
			$ratingRequired = 0;
		}
		
		$jsRootUrl = $this->addonManager->Bridge->SiteUrl.'components/'.$option.'/javascript/';
		$jQueryProvider = $this->addonManager->GetSetting('JQuery', _SR_ADDON_TYPE_MODULE, 'Configuration_Module');

		require('template.html.php');
	}
}
?>

Anon7 - 2022
AnonSec Team