1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-24 06:41:29 +00:00

browser interface fixes

This commit is contained in:
Andrew Dolgov
2005-12-30 06:29:24 +01:00
parent 018e1b8ce4
commit a7f22b70ec
2 changed files with 35 additions and 13 deletions

View File

@@ -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 "<div class=\"notice\">";
print "<b>Subscribed to feeds:</b>";
print "<ul class=\"nomarks\">";
foreach ($subscribed as $title) {
print "<li>$title</li>";
}
print "</ul>";
print "</div>";
}
}
if ($subop == "browse") {