From a7f22b70ec986f67601e65f91308c81844c18e76 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 30 Dec 2005 06:29:24 +0100 Subject: browser interface fixes --- backend.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'backend.php') diff --git a/backend.php b/backend.php index 7f5dfe376..596daaced 100644 --- a/backend.php +++ b/backend.php @@ -1504,6 +1504,8 @@ if ($subop == "massSubscribe") { $ids = split(",", db_escape_string($_GET["ids"])); + $subscribed = array(); + foreach ($ids as $id) { $result = db_query($link, "SELECT feed_url,title FROM ttrss_feeds WHERE id = '$id'"); @@ -1518,8 +1520,21 @@ $result = db_query($link, "INSERT INTO ttrss_feeds (owner_uid,feed_url,title,cat_id) VALUES ('".$_SESSION["uid"]."', '$feed_url', '$title', NULL)"); + + array_push($subscribed, $title); } } + + if (count($subscribed) > 0) { + print "
"; + print "Subscribed to feeds:"; + print ""; + print "
"; + } } if ($subop == "browse") { -- cgit v1.2.3