From: Andrew Dolgov Date: Mon, 5 Sep 2005 12:56:07 +0000 (+0100) Subject: removed a lot of obsolete non-iframe code from backend.php X-Git-Tag: 1.0.3~39 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=82c9223c6bccd503811ce3e5f74478417688e179;p=tt-rss.git removed a lot of obsolete non-iframe code from backend.php --- diff --git a/backend.php b/backend.php index c25410d9..3452c741 100644 --- a/backend.php +++ b/backend.php @@ -294,27 +294,6 @@ $feed_last_updated = "Updated: " . $line["last_updated"]; - if (!$addheader) { - - print " - Search: "; - - print " Reset"; - - print "  View: "; - - print_select("viewbox", $view_mode, array("All Posts", "Starred"), - "onchange=\"javascript:viewfeed('$feed', '0', '');\""); - - print ""; - - print " - " . $line["title"] . ""; - - } - $search = $_GET["search"]; if ($search) { @@ -337,12 +316,8 @@ $total_entries = pg_fetch_result($result, 0, "total_entries"); - if (!$addheader) { - $limit_query_part = "LIMIT ".HEADLINES_PER_PAGE." OFFSET $skip"; - } else { - if ($limit != "All") { - $limit_query_part = "LIMIT " . $limit; - } + if ($limit != "All") { + $limit_query_part = "LIMIT " . $limit; } $result = pg_query("SELECT @@ -416,65 +391,6 @@ ++$lnum; print " "; } - - // start unholy navbar block - - if (!$addheader) { - - print ""; - - $next_skip = $skip + HEADLINES_PER_PAGE; - $prev_skip = $skip - HEADLINES_PER_PAGE; - - print "Navigate: "; - - if ($prev_skip >= 0) { - print "Previous Page"; - } else { - print "Previous Page"; - } - print " "; - - if ($next_skip < $total_entries) { - print "Next Page"; - } else { - print "Next Page"; - } - print "  Feed: "; - - print "Update"; - - print "  Mark as read: "; - - if ($num_unread > 0) { - print "This Page"; - print " "; - } else { - print "This Page"; - print " "; - } - - print "All Posts"; - - } - -/* print "  Unmark: "; - - print "This Page"; - print " "; - - print "All Posts"; */ - - print ""; - - // end unholy navbar block print ""; diff --git a/config.php-dist b/config.php-dist index dfcc952a..ba5dcd6b 100644 --- a/config.php-dist +++ b/config.php-dist @@ -6,7 +6,6 @@ define('MAGPIE_CACHE_DIR', '/var/tmp/magpie-ttrss-cache'); // Local cache directory for RSS feeds - define(HEADLINES_PER_PAGE, 15); define(MIN_UPDATE_TIME, 1800); define(WEB_DEMO_MODE, false);