]> git.wh0rd.org Git - tt-rss.git/commitdiff
reenable UPD support
authorAndrew Dolgov <fox@bah.spb.su>
Thu, 8 Sep 2005 03:31:09 +0000 (04:31 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Thu, 8 Sep 2005 03:31:09 +0000 (04:31 +0100)
backend.php

index ae35ee123bd178129eaaf8446628b702cccef8ff..329f2783d010d623509cef275fab54fa853eb039 100644 (file)
                        $id = $line["id"];
                        $feed_id = $line["feed_id"];
 
-//                     printf("%d %s - %d %s<br>", strtotime($line["last_read"]), $line["last_read"],
-//                             strtotime($line["updated"]), $line["updated"]);
-
 /*                     if ($line["last_read"] && $line["updated"] &&                   
                                strtotime($line["last_read"]) < strtotime($line["updated"]) && 
                                ($line["unread"] == "f" || $line["unread"] == "0")) {
                                        alt=\"Updated\">";
                        } */
 
-                       $update_pic = "<img id='FUPDPIC-$id' src=\"images/blank_icon.png\" 
-                               alt=\"Updated\">";
+//                     printf("L %d (%s) &gt; U %d (%s) = %d<br>", 
+//                             strtotime($line["last_read"]), $line["last_read"],
+//                             strtotime($line["updated"]), $line["updated"],
+//                             strtotime($line["last_read"]) >= strtotime($line["updated"]));
+
+                       if ($line["last_read"] != "" && $line["updated"] != "" &&
+                               strtotime($line["last_read"]) < strtotime($line["updated"])) {
+
+                               $update_pic = "<img id='FUPDPIC-$id' src=\"images/updated.png\" 
+                                       alt=\"Updated\">";
+
+                       } else {
+
+                               $update_pic = "<img id='FUPDPIC-$id' src=\"images/blank_icon.png\" 
+                                       alt=\"Updated\">";
+
+                       }
 
                        if ($line["unread"] == "t" || $line["unread"] == "1") {
                                $class .= "Unread";