diff options
author | Andrew Dolgov <[email protected]> | 2010-11-19 21:05:28 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-11-19 21:05:28 +0300 |
commit | b509d64e960fd527a35366f44ee022ce831ae9f8 (patch) | |
tree | 12dc2e1a9048d0ceb1c623b87f3b92147101be06 /backend.php | |
parent | 997429c22813408e15c73ec0ff127f0cc1a9b994 (diff) |
rework headlines menu and openArticleInNewWindow()
Diffstat (limited to 'backend.php')
-rw-r--r-- | backend.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/backend.php b/backend.php index c17344a79..8110d4370 100644 --- a/backend.php +++ b/backend.php @@ -201,6 +201,23 @@ break; // feeds + case "la": + $id = db_escape_string($_REQUEST['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) { + $article_url = db_fetch_result($result, 0, 'link'); + + header("Location: $article_url"); + return; + + } else { + print_error(__("Article not found.")); + } + break; + case "view": $id = db_escape_string($_REQUEST["id"]); |