Index: trunk/themes/default/login/login_form.tpl =================================================================== diff -u -r13 -r1120 --- trunk/themes/default/login/login_form.tpl (.../login_form.tpl) (revision 13) +++ trunk/themes/default/login/login_form.tpl (.../login_form.tpl) (revision 1120) @@ -1,5 +1,6 @@
Index: trunk/kernel/include/item.php
===================================================================
diff -u -r1099 -r1120
--- trunk/kernel/include/item.php (.../item.php) (revision 1099)
+++ trunk/kernel/include/item.php (.../item.php) (revision 1120)
@@ -77,8 +77,9 @@
function &AddReview($createdBy,$reviewText,$isPending,$ip=NULL,$ForceIP=0, $Module="", $CreatedOn = 0)
{
$this->Reviews->itemID=$this->Get("ResourceId");
+
if($ip == NULL)
- $ip = $_SERVER["REMOTE_ADDR"];
+ $ip = $_SERVER["REMOTE_ADDR"];
if(!$CreatedOn)
$CreatedOn = mktime(0,0,0,adodb_date("m"),adodb_date("d"),adodb_date("Y"));
@@ -445,17 +446,19 @@
{
global $Errors;
global $REMOTE_ADDR;
-
- if($this->rating_ip_exists($REMOTE_ADDR))
+ //echo "Submitting vote "; +/* if($this->rating_ip_exists($REMOTE_ADDR)) { // $Errors->AddError("error.already_voted","","","",get_class($this),"SubmitVote"); return false; - } + }*/ $vote = new clsItemRating(NULL); $vote->Set("ItemId",$this->UniqueId()); $vote->Set("RatingValue",$voteRating); - if(!$vote->Create()) - return false; + if(!$vote->Create()) { + //echo "Submitting Failed "; + return false; + } $NumVotes = (int)$this->Get("CachedVotesQty"); $CurrentRating = (int)$this->Get("CachedRating"); @@ -464,6 +467,7 @@ $this->Set("CachedRating",$Rating); $this->Update(); $this->Increment("CachedVotesQty"); + //echo "Submitting Done "; } function rating_ip_exists($ip) Index: trunk/kernel/parser.php =================================================================== diff -u -r1112 -r1120 --- trunk/kernel/parser.php (.../parser.php) (revision 1112) +++ trunk/kernel/parser.php (.../parser.php) (revision 1120) @@ -3441,7 +3441,7 @@ break; } $ret = $vars[$name]; - + return $ret; } Index: trunk/kernel/include/parse.php =================================================================== diff -u -r845 -r1120 --- trunk/kernel/include/parse.php (.../parse.php) (revision 845) +++ trunk/kernel/include/parse.php (.../parse.php) (revision 1120) @@ -522,7 +522,7 @@ function IncludeTemplate($tag, $SupressError=FALSE) { - global $LogLevel, $objSession,$objLanguages; + global $LogLevel, $objSession,$objLanguages, $var_list; $t = ''; $ret = ''; @@ -538,6 +538,10 @@ $CheckSys = $tag->GetAttributeByName('_system'); for($p=0;$p ![]()
+ |
-
-
- |