X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=backend.php;h=2dac4205fcbdf8b1751499d31efb05c9f674c2ac;hb=76798ff3f24b7c7b69bd12109228f769ceb650a6;hp=d6e45098b8a028721388cb95194f8decee89b91f;hpb=0e091d38cf6419edf5e623a584dc28a404fc2613;p=tt-rss.git diff --git a/backend.php b/backend.php index d6e45098..2dac4205 100644 --- a/backend.php +++ b/backend.php @@ -28,6 +28,8 @@ $lnum = 0; + $total_unread = 0; + while ($line = pg_fetch_assoc($result)) { $feed = $line["title"]; @@ -40,6 +42,8 @@ if ($unread > 0) $class .= "Unread"; + $total_unread += $unread; + print ""; $feed = "$feed"; @@ -58,6 +62,8 @@ print ""; + print "
$total_unread
"; + } if ($op == "view") {