Index: trunk/themes/default/login/login_form.tpl =================================================================== diff -u -N -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/itemrating.php =================================================================== diff -u -N -r1099 -r1120 --- trunk/kernel/include/itemrating.php (.../itemrating.php) (revision 1099) +++ trunk/kernel/include/itemrating.php (.../itemrating.php) (revision 1120) @@ -54,12 +54,12 @@ $this->Set("CreatedOn",adodb_date("U")); $this->Set("IPAddress",$REMOTE_ADDR); - if(ip_exists($this->Get("IPAddress"),$this->Get("ItemId"),$this->tablename)) +/* if(ip_exists($this->Get("IPAddress"),$this->Get("ItemId"),$this->tablename)) { //$Errors->AddError("error.already_rated","","","","clsItemRating","Create"); return false; } - +*/ parent::Create(); return true;
Index: trunk/kernel/include/item.php =================================================================== diff -u -N -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 -N -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 -N -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;$pHasCatPermission(trim($plist[$p]))) { $value = 1; Index: trunk/themes/default/items_since_last.tpl =================================================================== diff -u -N -r1073 -r1120 --- trunk/themes/default/items_since_last.tpl (.../items_since_last.tpl) (revision 1073) +++ trunk/themes/default/items_since_last.tpl (.../items_since_last.tpl) (revision 1120) @@ -53,13 +53,20 @@

+ + + + + + + +