code cleanup (remove dashboard initial stuff)

This commit is contained in:
Andrew Dolgov 2009-01-16 17:12:28 +01:00
parent cc914918fa
commit a5c815d358
2 changed files with 45 additions and 87 deletions

View File

@ -283,12 +283,6 @@
print "<headlines id=\"$feed\"><![CDATA["; print "<headlines id=\"$feed\"><![CDATA[";
if ($feed == -4) {
generate_dashboard_feed($link);
} else {
$override_order = false; $override_order = false;
switch ($order_by) { switch ($order_by) {
@ -338,7 +332,6 @@
} }
print "</articles>"; print "</articles>";
} }
}
if ($_GET["debug"]) $timing_info = print_checkpoint("20", $timing_info); if ($_GET["debug"]) $timing_info = print_checkpoint("20", $timing_info);

View File

@ -4077,8 +4077,6 @@
} }
if (!$dashboard_menu) {
if (strpos($_SESSION["client.userAgent"], "MSIE") === false) { if (strpos($_SESSION["client.userAgent"], "MSIE") === false) {
print "<td class=\"headlineActions$rtl_cpart\"> print "<td class=\"headlineActions$rtl_cpart\">
@ -4157,11 +4155,6 @@
print "</td>"; print "</td>";
} }
} else { // dashboard menu actions
// not implemented
print "</td>";
}
print "<td class=\"headlineTitle$rtl_cpart\">"; print "<td class=\"headlineTitle$rtl_cpart\">";
@ -4284,11 +4277,6 @@
printCategoryHeader($link, -1, $cat_hidden, false); 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_starred = getFeedUnread($link, -1);
$num_published = getFeedUnread($link, -2); $num_published = getFeedUnread($link, -2);
$num_fresh = getFeedUnread($link, -3); $num_fresh = getFeedUnread($link, -3);
@ -5843,29 +5831,6 @@
} // function update_daemon_common } // function update_daemon_common
function generate_dashboard_feed($link) {
print "<div id=\"headlinesContainer\">";
print_headline_subtoolbar($link, "", "Dashboard",
false, false, -4, false, false, false,
false, 0, 0, true, true, "tag.png");
print "<div id=\"headlinesInnerContainer\" class=\"dashboard\">";
print "<div>There is <b>666</b> unread articles in <b>666</b> feeds.</div>";
print "</div>";
print "</div>";
print "]]></headlines>";
print "<headlines-count value=\"0\"/>";
print "<headlines-unread value=\"0\"/>";
print "<disable-cache value=\"1\"/>";
print "<articles>";
print "</articles>";
}
function sanitize_article_content($text) { function sanitize_article_content($text) {
# we don't support CDATA sections in articles, they break our own escaping # we don't support CDATA sections in articles, they break our own escaping
$text = preg_replace("/\[\[CDATA/", "", $text); $text = preg_replace("/\[\[CDATA/", "", $text);