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:
16
backend.php
16
backend.php
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user