removed a lot of obsolete non-iframe code from backend.php

master
Andrew Dolgov 19 years ago
parent cb1083a1f6
commit 82c9223c6b

@ -294,27 +294,6 @@
$feed_last_updated = "Updated: " . $line["last_updated"]; $feed_last_updated = "Updated: " . $line["last_updated"];
if (!$addheader) {
print "<tr><td class=\"search\" colspan=\"4\">
Search: <input id=\"searchbox\"
onblur=\"javascript:enableHotkeys()\" onfocus=\"javascript:disableHotkeys()\"
onchange=\"javascript:search($feed);\"> ";
print " <a class=\"button\" href=\"javascript:resetSearch()\">Reset</a>";
print "&nbsp;&nbsp;View: ";
print_select("viewbox", $view_mode, array("All Posts", "Starred"),
"onchange=\"javascript:viewfeed('$feed', '0', '');\"");
print "</td></tr>";
print "<tr>
<td colspan=\"4\" class=\"title\">" . $line["title"] . "</td></tr>";
}
$search = $_GET["search"]; $search = $_GET["search"];
if ($search) { if ($search) {
@ -337,12 +316,8 @@
$total_entries = pg_fetch_result($result, 0, "total_entries"); $total_entries = pg_fetch_result($result, 0, "total_entries");
if (!$addheader) { if ($limit != "All") {
$limit_query_part = "LIMIT ".HEADLINES_PER_PAGE." OFFSET $skip"; $limit_query_part = "LIMIT " . $limit;
} else {
if ($limit != "All") {
$limit_query_part = "LIMIT " . $limit;
}
} }
$result = pg_query("SELECT $result = pg_query("SELECT
@ -417,65 +392,6 @@
print "<tr><td>&nbsp;</td></tr>"; print "<tr><td>&nbsp;</td></tr>";
} }
// start unholy navbar block
if (!$addheader) {
print "<tr><td colspan=\"4\" class=\"headlineToolbar\">";
$next_skip = $skip + HEADLINES_PER_PAGE;
$prev_skip = $skip - HEADLINES_PER_PAGE;
print "Navigate: ";
if ($prev_skip >= 0) {
print "<a class=\"button\"
href=\"javascript:viewfeed($feed, $prev_skip);\">Previous Page</a>";
} else {
print "<a class=\"disabledButton\">Previous Page</a>";
}
print "&nbsp;";
if ($next_skip < $total_entries) {
print "<a class=\"button\"
href=\"javascript:viewfeed($feed, $next_skip);\">Next Page</a>";
} else {
print "<a class=\"disabledButton\">Next Page</a>";
}
print "&nbsp;&nbsp;Feed: ";
print "<a class=\"button\"
href=\"javascript:viewfeed($feed, 0, 'ForceUpdate');\">Update</a>";
print "&nbsp;&nbsp;Mark as read: ";
if ($num_unread > 0) {
print "<a class=\"button\" id=\"btnCatchupPage\"
href=\"javascript:catchupPage($feed);\">This Page</a>";
print "&nbsp;";
} else {
print "<a class=\"disabledButton\">This Page</a>";
print "&nbsp;";
}
print "<a class=\"button\"
href=\"javascript:viewfeed($feed, $skip, 'MarkAllRead');\">All Posts</a>";
}
/* print "&nbsp;&nbsp;Unmark: ";
print "<a class=\"button\"
href=\"javascript:unmarkPosts(false);\">This Page</a>";
print "&nbsp;";
print "<a class=\"button\"
href=\"javascript:unmarkPosts(true);\">All Posts</a>"; */
print "</td></tr>";
// end unholy navbar block
print "</table>"; print "</table>";
$result = pg_query("SELECT id, (SELECT count(id) FROM ttrss_entries $result = pg_query("SELECT id, (SELECT count(id) FROM ttrss_entries

@ -6,7 +6,6 @@
define('MAGPIE_CACHE_DIR', '/var/tmp/magpie-ttrss-cache'); define('MAGPIE_CACHE_DIR', '/var/tmp/magpie-ttrss-cache');
// Local cache directory for RSS feeds // Local cache directory for RSS feeds
define(HEADLINES_PER_PAGE, 15);
define(MIN_UPDATE_TIME, 1800); define(MIN_UPDATE_TIME, 1800);
define(WEB_DEMO_MODE, false); define(WEB_DEMO_MODE, false);

Loading…
Cancel
Save