1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-02-08 12:01:33 +00:00

optional support for showing content in an iframe

This commit is contained in:
Andrew Dolgov
2005-09-05 10:09:10 +01:00
parent 7e63d5e429
commit 70830c87c9
6 changed files with 42 additions and 8 deletions

View File

@@ -186,11 +186,23 @@
$result = pg_query("UPDATE ttrss_entries SET unread = false,last_read = NOW() WHERE id = '$id'");
$addheader = $_GET["addheader"];
$result = pg_query("SELECT title,link,content,feed_id,comments,
(SELECT icon_url FROM ttrss_feeds WHERE id = feed_id) as icon_url
FROM ttrss_entries
WHERE id = '$id'");
if ($addheader) {
print "<html>
<head>
<title>Tiny Tiny RSS : Article $id</title>
<link rel=\"stylesheet\" href=\"tt-rss.css\" type=\"text/css\">
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
</head><body>";
}
if ($result) {
$line = pg_fetch_assoc($result);
@@ -226,6 +238,10 @@
print "</table>";
}
if ($addheader) {
print "</body></html>";
}
}
if ($op == "viewfeed") {