Notice"; print "
"; if ($param == 1) { print _("Update daemon is enabled in configuration, but daemon process is not running, which prevents all feeds from updating. Please start the daemon process or contact instance owner."); } if ($param == 2) { $msg = check_for_update($link, false); if (!$msg) { print _("You are running the latest version of Tiny Tiny RSS. The fact that you are seeing this dialog is probably a bug."); } else { print $msg; } } print "
"; print "
"; print ""; print "
"; } if ($id == "quickAddFeed") { print "
Subscribe to feed
"; print "
"; print "
"; print ""; print ""; print ""; print ""; if (get_pref($link, 'ENABLE_FEED_CATS')) { print ""; } print "
Feed URL:
Category:"; print_feed_cat_select($link, "cat_id"); print "
"; print "
"; print "
"; } if ($id == "search") { print "
Search
"; print "
"; print "
"; #$active_feed_id = db_escape_string($_GET["param"]); $params = split(":", db_escape_string($_GET["param"])); $active_feed_id = sprintf("%d", $params[0]); $is_cat = $params[1] == "true"; print ""; print ""; print "
Search:"; print "
Where:"; print "
Match on:"; $search_fields = array( "title" => "Title", "content" => "Content", "both" => "Title or content"); print_select_hash("match_on", 3, $search_fields); print "
"; print "
"; print "
"; print "
"; } if ($id == "quickAddLabel") { print "
Create label
"; print "
"; print "
"; print ""; print ""; print ""; print ""; print "
Caption: "; print "

SQL Expression:

"; print ""; print "
"; print "
"; print "
"; print "
"; print " "; print " "; print ""; } if ($id == "quickAddFilter") { $active_feed_id = db_escape_string($_GET["param"]); print "
Create filter
"; print "
"; print "
"; print ""; print ""; print ""; // print "
Note: filter will only apply to new articles.
"; $result = db_query($link, "SELECT id,description FROM ttrss_filter_types ORDER BY description"); $filter_types = array(); while ($line = db_fetch_assoc($result)) { //array_push($filter_types, $line["description"]); $filter_types[$line["id"]] = $line["description"]; } print ""; print ""; print ""; print ""; print ""; print ""; print ""; print "
Match: "; print "
On field:"; print_select_hash("filter_type", 1, $filter_types, "class=\"_iedit\""); print "
Feed:"; print_feed_select($link, "feed_id", $active_feed_id); print "
Action:"; print "
Params:
"; print "
"; print "
"; print " "; print ""; print "
"; // print ""; } if ($id == "feedUpdateErrors") { print "
Update Errors
"; print "
"; print "These feeds have not been updated because of errors:"; $result = db_query($link, "SELECT id,title,feed_url,last_error FROM ttrss_feeds WHERE last_error != '' AND owner_uid = ".$_SESSION["uid"]); print "
    "; while ($line = db_fetch_assoc($result)) { print "
  • " . $line["title"] . " (" . $line["feed_url"] . "): " . "" . $line["last_error"] . ""; } print "
"; print "
"; print "
"; print ""; print "
"; } if ($id == "editArticleTags") { print "
Edit Tags
"; print "
"; print "
"; print "Tags for this article (separated by commas):
"; $tags = get_article_tags($link, $param); $tags_str = join(", ", $tags); print ""; print ""; print ""; print ""; $result = db_query($link, "SELECT DISTINCT tag_name FROM ttrss_tags WHERE owner_uid = '".$_SESSION["uid"]."' ORDER BY tag_name"); $found_tags = array(); array_push($found_tags, ''); while ($line = db_fetch_assoc($result)) { array_push($found_tags, truncate_string($line["tag_name"], 20)); } print ""; print ""; print "
Add existing tag:"; print_select("found_tags", '', $found_tags, "onchange=\"javascript:editTagsInsert()\""); print "
"; print "
"; print "
"; print " "; print ""; print "
"; } print "
"; } ?>