diff --git a/backend.php b/backend.php index c25410d9a..3452c741f 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 dfcc952af..ba5dcd6ba 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);