summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2008-02-15 18:43:10 +0100
committerAndrew Dolgov <[email protected]>2008-02-15 18:43:10 +0100
commitd96b7774da60b7df47d762029fdeff39db9bd647 (patch)
tree57eac6f91bdf60145524bde82272e5c8e88181a9 /backend.php
parent80d72112f3b65ed4e5f9cf35c6aafe2481282ad7 (diff)
initial work on dashboard
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php53
1 files changed, 36 insertions, 17 deletions
diff --git a/backend.php b/backend.php
index ce2e73d85..90f4cfcd2 100644
--- a/backend.php
+++ b/backend.php
@@ -238,31 +238,50 @@
print "<headlines id=\"$feed\"><![CDATA[";
- $ret = outputHeadlinesList($link, $feed, $subop,
- $view_mode, $limit, $cat_view, $next_unread_feed, $offset);
+ if ($feed == -4) {
- $topmost_article_ids = $ret[0];
- $headlines_count = $ret[1];
- $returned_feed = $ret[2];
- $disable_cache = $ret[3];
+ print "<div id=\"headlinesContainer\">";
- print "]]></headlines>";
+ print "PLACEHOLDER";
- print "<headlines-count value=\"$headlines_count\"/>";
+ print "</div>";
- $headlines_unread = getFeedUnread($link, $returned_feed);
+ print "]]></headlines>";
+ print "<headlines-count value=\"0\"/>";
+ print "<headlines-unread value=\"0\"/>";
+ print "<disable-cache value=\"0\"/>";
- print "<headlines-unread value=\"$headlines_unread\"/>";
- printf("<disable-cache value=\"%d\"/>", $disable_cache);
+ print "<articles>";
+ print "</articles>";
- if ($_GET["debug"]) $timing_info = print_checkpoint("10", $timing_info);
+ } else {
- if (is_array($topmost_article_ids) && !get_pref($link, 'COMBINED_DISPLAY_MODE')) {
- print "<articles>";
- foreach ($topmost_article_ids as $id) {
- outputArticleXML($link, $id, $feed, false);
+ $ret = outputHeadlinesList($link, $feed, $subop,
+ $view_mode, $limit, $cat_view, $next_unread_feed, $offset);
+
+ $topmost_article_ids = $ret[0];
+ $headlines_count = $ret[1];
+ $returned_feed = $ret[2];
+ $disable_cache = $ret[3];
+
+ print "]]></headlines>";
+
+ print "<headlines-count value=\"$headlines_count\"/>";
+
+ $headlines_unread = getFeedUnread($link, $returned_feed);
+
+ print "<headlines-unread value=\"$headlines_unread\"/>";
+ printf("<disable-cache value=\"%d\"/>", $disable_cache);
+
+ if ($_GET["debug"]) $timing_info = print_checkpoint("10", $timing_info);
+
+ if (is_array($topmost_article_ids) && !get_pref($link, 'COMBINED_DISPLAY_MODE')) {
+ print "<articles>";
+ foreach ($topmost_article_ids as $id) {
+ outputArticleXML($link, $id, $feed, false);
+ }
+ print "</articles>";
}
- print "</articles>";
}
if ($_GET["debug"]) $timing_info = print_checkpoint("20", $timing_info);