1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-23 04:57:13 +00:00

add shortcut to open active article in new tab

This commit is contained in:
Andrew Dolgov
2007-07-20 07:01:18 +01:00
parent 58e481b479
commit 298f3f783a
3 changed files with 66 additions and 0 deletions

View File

@@ -201,6 +201,21 @@
}
if ($subop == "getArticleLink") {
$id = db_escape_string($_GET["id"]);
$result = db_query($link, "SELECT link FROM ttrss_entries, ttrss_user_entries
WHERE id = '$id' AND id = ref_id AND owner_uid = '".$_SESSION['uid']."'");
if (db_num_rows($result) == 1) {
$link = strip_tags(db_fetch_result($result, 0, "link"));
print "<rpc-reply><link>$link</link></rpc-reply>";
} else {
print "<rpc-reply><error>Article not found</error></rpc-reply>";
}
}
if ($subop == "setArticleTags") {
$id = db_escape_string($_GET["id"]);