"; if ($feed_site_url) { $target = "target=\"_blank\""; $reply .= "". truncate_string($feed_title,30).""; if ($error) { $reply .= " (Error)"; } } else { $reply .= $feed_title; } $reply .= " "; $reply .= ""; // left part $reply .= __('Select:')." ".__('All').", ".__('Unread').", ".__('Invert').", ".__('None').""; $reply .= " "; $reply .= ""; //$reply .= ""; //$reply .= " 0 && is_numeric($feed)) { // Update the feed if required with some basic flood control $result = db_query($this->link, "SELECT cache_images,".SUBSTRING_FOR_DATE."(last_updated,1,19) AS last_updated FROM ttrss_feeds WHERE id = '$feed'"); if (db_num_rows($result) != 0) { $last_updated = strtotime(db_fetch_result($result, 0, "last_updated")); $cache_images = sql_bool_to_bool(db_fetch_result($result, 0, "cache_images")); if (!$cache_images && time() - $last_updated > 120) { include "rssfuncs.php"; update_rss_feed($this->link, $feed, true, true); } } } if ($method_split[0] == "MarkAllReadGR") { catchup_feed($this->link, $method_split[1], false); } // FIXME: might break tag display? if (is_numeric($feed) && $feed > 0 && !$cat_view) { $result = db_query($this->link, "SELECT id FROM ttrss_feeds WHERE id = '$feed' LIMIT 1"); if (db_num_rows($result) == 0) { $reply['content'] = "
";
$result = db_query($this->link, "SELECT ".SUBSTRING_FOR_DATE."(MAX(last_updated), 1, 19) AS last_updated FROM ttrss_feeds
WHERE owner_uid = " . $_SESSION['uid']);
$last_updated = db_fetch_result($result, 0, "last_updated");
$last_updated = make_local_datetime($this->link, $last_updated, false);
$reply['content'] .= sprintf(__("Feeds last updated at %s"), $last_updated);
$result = db_query($this->link, "SELECT COUNT(id) AS num_errors
FROM ttrss_feeds WHERE last_error != '' AND owner_uid = ".$_SESSION["uid"]);
$num_errors = db_fetch_result($result, 0, "num_errors");
if ($num_errors > 0) {
$reply['content'] .= "
";
$reply['content'] .= "".
__('Some feeds have update errors (click for details)')."";
}
$reply['content'] .= "