From: Andrew Dolgov Date: Fri, 16 Jan 2009 16:12:28 +0000 (+0100) Subject: code cleanup (remove dashboard initial stuff) X-Git-Tag: 1.3.0~143 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=a5c815d35822dab932c0303837e82d88bcb0f308;p=tt-rss.git code cleanup (remove dashboard initial stuff) --- diff --git a/backend.php b/backend.php index 0c8929f5..08269b3c 100644 --- a/backend.php +++ b/backend.php @@ -282,62 +282,55 @@ } print ""; - $ret = outputHeadlinesList($link, $feed, $subop, - $view_mode, $limit, $cat_view, $next_unread_feed, $offset, - $vgroup_last_feed, $override_order); - - $topmost_article_ids = $ret[0]; - $headlines_count = $ret[1]; - $returned_feed = $ret[2]; - $disable_cache = $ret[3]; - $vgroup_last_feed = $ret[4]; - - print "]]>"; - - print ""; - print ""; + print ""; + print ""; - $headlines_unread = ccache_find($link, $returned_feed, $_SESSION["uid"]); - - print ""; - printf("", $disable_cache); - - if ($_GET["debug"]) $timing_info = print_checkpoint("10", $timing_info); - - if (is_array($topmost_article_ids) && !get_pref($link, 'COMBINED_DISPLAY_MODE') && !$_SESSION["bw_limit"]) { - print ""; - foreach ($topmost_article_ids as $id) { - outputArticleXML($link, $id, $feed, false); - } - print ""; + $headlines_unread = ccache_find($link, $returned_feed, $_SESSION["uid"]); + + print ""; + printf("", $disable_cache); + + if ($_GET["debug"]) $timing_info = print_checkpoint("10", $timing_info); + + if (is_array($topmost_article_ids) && !get_pref($link, 'COMBINED_DISPLAY_MODE') && !$_SESSION["bw_limit"]) { + print ""; + foreach ($topmost_article_ids as $id) { + outputArticleXML($link, $id, $feed, false); } + print ""; } if ($_GET["debug"]) $timing_info = print_checkpoint("20", $timing_info); diff --git a/functions.php b/functions.php index e49dd9d2..78cd3987 100644 --- a/functions.php +++ b/functions.php @@ -4077,8 +4077,6 @@ } - if (!$dashboard_menu) { - if (strpos($_SESSION["client.userAgent"], "MSIE") === false) { print " @@ -4157,11 +4155,6 @@ print ""; } - } else { // dashboard menu actions - - // not implemented - print ""; - } print ""; @@ -4284,11 +4277,6 @@ printCategoryHeader($link, -1, $cat_hidden, false); } - if (defined('_ENABLE_DASHBOARD')) { - printFeedEntry(-4, "virt", __("Dashboard"), 0, - "images/tag.png", $link); - } - $num_starred = getFeedUnread($link, -1); $num_published = getFeedUnread($link, -2); $num_fresh = getFeedUnread($link, -3); @@ -5843,29 +5831,6 @@ } // function update_daemon_common - function generate_dashboard_feed($link) { - - print "
"; - - print_headline_subtoolbar($link, "", "Dashboard", - false, false, -4, false, false, false, - false, 0, 0, true, true, "tag.png"); - - print "
"; - print "
There is 666 unread articles in 666 feeds.
"; - print "
"; - - print "
"; - - print "]]>"; - print ""; - print ""; - print ""; - - print ""; - print ""; - } - function sanitize_article_content($text) { # we don't support CDATA sections in articles, they break our own escaping $text = preg_replace("/\[\[CDATA/", "", $text);