bug 827 restriced yellow marker <2006-09-1
authordirk <beliebige_email_adresse@fidocon.de>
Tue, 18 Oct 2011 21:26:19 +0000 (23:26 +0200)
committerdirk <beliebige_email_adresse@fidocon.de>
Tue, 18 Oct 2011 21:26:19 +0000 (23:26 +0200)
includes/wot.inc.php

index 9cc100d..497c569 100644 (file)
 <?
        }
 
-       function output_assurances_row($assuranceid,$date,$name,$awarded,$points,$location,$method,$experience)
+       function output_assurances_row($assuranceid,$date,$when,$name,$awarded,$points,$location,$method,$experience)
        {
 
        $tdstyle="";
        {
                if ($awarded == "0")
                {
-                       $tdstyle="style='background-color: #ffff80'";
-                       $emopen="<em>";
-                       $emclose="</em>";
+                       if ($when < "2009-09-01")
+                       {
+                               $tdstyle="style='background-color: #ffff80'";
+                               $emopen="<em>";
+                               $emclose="</em>";
+                       }
                }
        }
 
                        $fromuser = get_user (intval($row['to'])); 
                        calc_experience ($row,$points,$experience,$sum_experience);
                        $name = show_user_link ($fromuser['fname']." ".$fromuser['lname'],intval($row['to']));
-                       output_assurances_row (intval($row['id']),$row['date'],$name,intval($row['awarded']),intval($row['points']),$row['location'],$row['method']==""?"":_(sprintf("%s", $row['method'])),$experience);
+                       output_assurances_row (intval($row['id']),$row['date'],$row['when'],$name,intval($row['awarded']),intval($row['points']),$row['location'],$row['method']==""?"":_(sprintf("%s", $row['method'])),$experience);
                }
        }
 
                        $fromuser = get_user (intval($row['from']));
                        calc_assurances ($row,$points,$experience,$sum_experience,$awarded);
                        $name = show_user_link ($fromuser['fname']." ".$fromuser['lname'],intval($row['from']));
-                       output_assurances_row (intval($row['id']),$row['date'],$name,$awarded,intval($row['points']),$row['location'],$row['method']==""?"":_(sprintf("%s", $row['method'])),$experience);
+                       output_assurances_row (intval($row['id']),$row['date'],$row['when'],$name,$awarded,intval($row['points']),$row['location'],$row['method']==""?"":_(sprintf("%s", $row['method'])),$experience);
                }
        }