From 298f3f783a7635a81b6b81b8a5dbb32e138b54ec Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 20 Jul 2007 07:01:18 +0100 Subject: add shortcut to open active article in new tab --- modules/backend-rpc.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'modules') diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php index e70b75524..868d46445 100644 --- a/modules/backend-rpc.php +++ b/modules/backend-rpc.php @@ -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 "$link"; + } else { + print "Article not found"; + } + } + if ($subop == "setArticleTags") { $id = db_escape_string($_GET["id"]); -- cgit v1.2.3