summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-09-08 04:31:09 +0100
committerAndrew Dolgov <[email protected]>2005-09-08 04:31:09 +0100
commitc43f77f5923def16dda1b45c75b63671e539526c (patch)
treec7fa8d25a38422097ec16385ab323edcaafdd02a
parent14ce54af517455861cd83cb7a0ee22d34193fecf (diff)
reenable UPD support
-rw-r--r--backend.php22
1 files changed, 17 insertions, 5 deletions
diff --git a/backend.php b/backend.php
index ae35ee123..329f2783d 100644
--- a/backend.php
+++ b/backend.php
@@ -364,9 +364,6 @@
$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")) {
@@ -379,8 +376,23 @@
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";