".__('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."); $stamp = (int)read_stampfile("update_daemon.stamp"); print "

" . __("Last update:") . " " . date("Y.m.d, G:i", $stamp); } 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; } } if ($param == 3) { print __("TT-RSS has detected that update daemon is taking too long to perform a feed update. This could indicate a problem like crash or a hang. Please check the daemon process or contact instance owner."); $stamp = (int)read_stampfile("update_daemon.stamp"); print "

" . __("Last update:") . " " . date("Y.m.d, G:i", $stamp); } print "

"; print "
"; print ""; print "
"; return; } if ($id == "quickAddFeed") { print "
".__('Subscribe to feed')."
"; print "
"; print "
"; print ""; /* print ""; */ print ""; print ""; print ""; if (get_pref($link, 'ENABLE_FEED_CATS')) { print ""; } /* print ""; */ print "
".__('Feed URL:')."
".__('Category:').""; print_feed_cat_select($link, "cat_id"); print "
"; print __("Some feeds require authentication. If you subscribe to such feed, you will have to enter your login and password in Feed Editor"); print "
"; /* print ""; */ print ""; print "
"; print "
"; return; } if ($id == "search") { print "
".__('Search')."
"; print "
"; print "
"; #$active_feed_id = db_escape_string($_GET["param"]); print $_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 "
"; return; } 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 "
"; print " "; print " "; print ""; return; } 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 ""; 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:')."
".__('Options:').""; print "
"; print "
"; print "
"; print " "; print ""; print "
"; // print ""; return; } 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 "
"; return; } 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 "
"; return; } if ($id == "printTagCloud") { print "
".__('Tag cloud')."
"; print "
"; print __("Showing most popular tags ")." (".__('browse more')."):
"; print "
"; printTagCloud($link); print "
"; print "
"; print ""; print "
"; print "
"; return; } print "
Internal Error

Unknown dialog $id

"; } ?>