From a24f525cce32a6515532ac9392a5b02838ff82be Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 9 Dec 2005 20:48:13 +0100 Subject: quick action to add filter, misc backend improvements --- backend.php | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) (limited to 'backend.php') diff --git a/backend.php b/backend.php index b1c57c3a9..a31afb61b 100644 --- a/backend.php +++ b/backend.php @@ -1268,6 +1268,7 @@ if ($op == "pref-feeds") { $subop = $_GET["subop"]; + $quiet = $_GET["quiet"]; if ($subop == "editSave") { $feed_title = db_escape_string($_GET["t"]); @@ -1442,6 +1443,8 @@ } + if ($quiet) return; + // print "

Edit Feeds

"; $result = db_query($link, "SELECT id,title,feed_url,last_error @@ -1896,6 +1899,7 @@ if ($op == "pref-filters") { $subop = $_GET["subop"]; + $quiet = $_GET["quiet"]; if ($subop == "editSave") { @@ -1960,6 +1964,8 @@ } } + if ($quiet) return; + $result = db_query($link, "SELECT description FROM ttrss_filter_types ORDER BY description"); @@ -2529,6 +2535,71 @@ } + if ($id == "quickAddFilter") { + + $result = db_query($link, "SELECT description + FROM ttrss_filter_types ORDER BY description"); + + $filter_types = array(); + + while ($line = db_fetch_assoc($result)) { + array_push($filter_types, $line["description"]); + } + + print ""; + + print ""; + print ""; + + print ""; + + print "
Match: "; + + print_select("fadd_match", "Title", $filter_types); + + print "
Feed:
Action:"; + + print "
"; + + print " "; + + print ""; + + print "
"; + } } // update feeds of all users, may be used anonymously -- cgit v1.2.3-54-g00ecf