X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;ds=sidebyside;f=functions.php;h=161335c96536d128dc596235f7b96d9b3ca36428;hb=3809b27874608388ec145d76b6da28b1e7eadab1;hp=8d69cc0b96ab43fedde3a6dbe2822eb95850a1fb;hpb=32d2181b921907f42d6f30b06c6637f11dc7fe59;p=tt-rss.git diff --git a/functions.php b/functions.php index 8d69cc0b..161335c9 100644 --- a/functions.php +++ b/functions.php @@ -1,6 +1,6 @@ "Detect automatically", + "auto" => "Detect automatically", + "ca_CA" => "Català ", "en_US" => "English", + "es_ES" => "Español", + "de_DE" => "Deutsch", "fr_FR" => "Français", "hu_HU" => "Magyar (Hungarian)", "it_IT" => "Italiano", @@ -37,7 +40,7 @@ } if (ENABLE_TRANSLATIONS == true) { // If translations are enabled. - require_once "accept-to-gettext.php"; + require_once "lib/accept-to-gettext.php"; require_once "lib/gettext/gettext.inc"; function startup_gettext() { @@ -105,6 +108,7 @@ require_once "lib/simplepie/simplepie.inc"; require_once "lib/magpierss/rss_fetch.inc"; require_once 'lib/magpierss/rss_utils.inc'; + require_once 'lib/htmlpurifier/library/HTMLPurifier.auto.php'; /** * Print a timestamped debug message. @@ -358,11 +362,17 @@ curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 15); curl_setopt($ch, CURLOPT_TIMEOUT, 45); curl_exec($ch); - curl_close($ch); - fclose($fp); + + if (strpos(curl_getinfo($ch, CURLINFO_CONTENT_TYPE), "image/") !== false) { + curl_close($ch); + fclose($fp); + $contents = file_get_contents($tmpfile); + } else { + curl_close($ch); + fclose($fp); + } } - $contents = file_get_contents($tmpfile); unlink($tmpfile); return $contents; @@ -495,11 +505,11 @@ function update_rss_feed($link, $feed_url, $feed, $ignore_daemon = false) { - if (!$_GET["daemon"] && !$ignore_daemon) { + if (!$_REQUEST["daemon"] && !$ignore_daemon) { return false; } - if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) { + if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) { _debug("update_rss_feed: start"); } @@ -518,19 +528,18 @@ } else { $result = db_query($link, "SELECT id,update_interval,auth_login, - auth_pass,cache_images,update_method,hidden,last_updated + auth_pass,cache_images,update_method,last_updated FROM ttrss_feeds WHERE id = '$feed'"); } if (db_num_rows($result) == 0) { - if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) { + if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) { _debug("update_rss_feed: feed $feed [$feed_url] NOT FOUND/SKIPPED"); } return false; } - $hidden = sql_bool_to_bool(db_fetch_result($result, 0, "hidden")); $update_method = db_fetch_result($result, 0, "update_method"); $last_updated = db_fetch_result($result, 0, "last_updated"); @@ -550,7 +559,7 @@ $use_simplepie = ENABLE_SIMPLEPIE; } - if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) { + if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) { _debug("use simplepie: $use_simplepie (feed setting: $update_method)\n"); } @@ -578,11 +587,11 @@ } - if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) { + if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) { _debug("update_rss_feed: fetching [$fetch_url]..."); } - if (!defined('DAEMON_EXTENDED_DEBUG') && !$_GET['xdebug']) { + if (!defined('DAEMON_EXTENDED_DEBUG') && !$_REQUEST['xdebug']) { error_reporting(0); } @@ -600,14 +609,14 @@ $rss->set_output_encoding('UTF-8'); if (SIMPLEPIE_CACHE_IMAGES && $cache_images) { - if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) { + if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) { _debug("enabling image cache"); } $rss->set_image_handler('./image.php', 'i'); } - if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) { + if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) { _debug("feed update interval (sec): " . get_feed_update_interval($link, $feed)*60); } @@ -622,7 +631,7 @@ // print_r($rss); - if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) { + if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) { _debug("update_rss_feed: fetch done, parsing..."); } else { error_reporting (DEFAULT_ERROR_LEVEL); @@ -638,7 +647,7 @@ if ($fetch_ok) { - if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) { + if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) { _debug("update_rss_feed: processing feed data..."); } @@ -660,7 +669,7 @@ } if (get_pref($link, 'ENABLE_FEED_ICONS', $owner_uid, false)) { - if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) { + if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) { _debug("update_rss_feed: checking favicon..."); } @@ -675,7 +684,7 @@ $feed_title = db_escape_string($rss->channel["title"]); } - if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) { + if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) { _debug("update_rss_feed: registering title: $feed_title"); } @@ -706,7 +715,7 @@ db_query($link, "UPDATE ttrss_feeds SET icon_url = '$icon_url' WHERE id = '$feed'"); } - if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) { + if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) { _debug("update_rss_feed: loading filters..."); } @@ -728,7 +737,7 @@ // clear any errors and mark feed as updated if fetched okay // even if it's blank - if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) { + if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) { _debug("update_rss_feed: entry iterator is not an array, no articles?"); } @@ -738,15 +747,14 @@ return; // no articles } - if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) { + if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) { _debug("update_rss_feed: processing articles..."); } foreach ($iterator as $item) { - if ($_GET['xdebug']) { + if ($_REQUEST['xdebug'] == 2) { print_r($item); - } if ($use_simplepie) { @@ -763,7 +771,7 @@ if (!$entry_guid) $entry_guid = make_guid_from_title($item["title"]); } - if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) { + if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) { _debug("update_rss_feed: guid $entry_guid"); } @@ -793,7 +801,7 @@ $entry_timestamp_fmt = strftime("%Y/%m/%d %H:%M:%S", $entry_timestamp); - if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) { + if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) { _debug("update_rss_feed: date $entry_timestamp [$entry_timestamp_fmt]"); } @@ -811,7 +819,7 @@ if (!$entry_link) $entry_link = $item["link"]; } - if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) { + if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) { _debug("update_rss_feed: title $entry_title"); } @@ -847,7 +855,7 @@ } } - if ($_GET["xdebug"]) { + if ($_REQUEST["xdebug"] == 2) { print "update_rss_feed: content: "; print_r(htmlspecialchars($entry_content)); } @@ -925,7 +933,7 @@ } } - if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) { + if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) { _debug("update_rss_feed: category tags:"); print_r($additional_tags); } @@ -1040,7 +1048,7 @@ $entry_content = sanitize_article_content($entry_content); $entry_title = sanitize_article_content($entry_title); - if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) { + if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) { _debug("update_rss_feed: done collecting data [TITLE:$entry_title]"); } @@ -1048,7 +1056,7 @@ if (db_num_rows($result) == 0) { - if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) { + if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) { _debug("update_rss_feed: base guid not found"); } @@ -1107,7 +1115,7 @@ if (db_num_rows($result) == 1) { - if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) { + if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) { _debug("update_rss_feed: base guid found, checking for user record"); } @@ -1125,7 +1133,7 @@ // do we allow duplicate posts with same GUID in different feeds? if (get_pref($link, "ALLOW_DUPLICATE_POSTS", $owner_uid, false)) { - $dupcheck_qpart = "AND feed_id = '$feed'"; + $dupcheck_qpart = "AND (feed_id = '$feed' OR feed_id IS NULL)"; } else { $dupcheck_qpart = ""; } @@ -1135,7 +1143,7 @@ $article_filters = get_article_filters($filters, $entry_title, $entry_content, $entry_link, $entry_timestamp); - if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) { + if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) { _debug("update_rss_feed: article filters: "); if (count($article_filters) != 0) { print_r($article_filters); @@ -1151,19 +1159,22 @@ $score = calculate_article_score($article_filters); - if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) { + if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) { _debug("update_rss_feed: initial score: $score"); } - $result = db_query($link, - "SELECT ref_id, int_id FROM ttrss_user_entries WHERE + $query = "SELECT ref_id, int_id FROM ttrss_user_entries WHERE ref_id = '$ref_id' AND owner_uid = '$owner_uid' - $dupcheck_qpart"); + $dupcheck_qpart"; + +// if ($_REQUEST["xdebug"]) print "$query\n"; + + $result = db_query($link, $query); // okay it doesn't exist - create user entry if (db_num_rows($result) == 0) { - if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) { + if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) { _debug("update_rss_feed: user record not found, creating..."); } @@ -1203,11 +1214,15 @@ $entry_int_id = db_fetch_result($result, 0, "int_id"); } } else { + if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) { + _debug("update_rss_feed: user record FOUND"); + } + $entry_ref_id = db_fetch_result($result, 0, "ref_id"); $entry_int_id = db_fetch_result($result, 0, "int_id"); } - if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) { + if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) { _debug("update_rss_feed: RID: $entry_ref_id, IID: $entry_int_id"); } @@ -1262,18 +1277,18 @@ db_query($link, "COMMIT"); - if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) { + if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) { _debug("update_rss_feed: assigning labels..."); } assign_article_to_labels($link, $entry_ref_id, $article_filters, $owner_uid); - if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) { + if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) { _debug("update_rss_feed: looking for enclosures..."); } - if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) { + if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) { print_r($enclosures); } @@ -1296,7 +1311,7 @@ db_query($link, "COMMIT"); - if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) { + if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) { _debug("update_rss_feed: looking for tags..."); } @@ -1343,7 +1358,7 @@ // print "
TAGS: "; print_r($entry_tags); print "
"; - if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) { + if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) { print_r($entry_tags); } @@ -1375,27 +1390,18 @@ db_query($link, "COMMIT"); } - if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) { + if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) { _debug("update_rss_feed: article processed"); } } if (!$last_updated) { - if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) { + if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) { _debug("update_rss_feed: new feed, catching it up..."); } catchup_feed($link, $feed, false, $owner_uid); } - if (!$hidden) { - if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) { - _debug("update_rss_feed: updating counters cache..."); - } - - // disabled, purge_feed() does that... - //ccache_update($link, $feed, $owner_uid); - } - purge_feed($link, $feed, 0); db_query($link, "UPDATE ttrss_feeds @@ -1411,7 +1417,7 @@ $error_msg = mb_substr(magpie_error(), 0, 250); } - if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) { + if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) { _debug("update_rss_feed: error fetching feed: $error_msg"); } @@ -1426,7 +1432,7 @@ unset($rss); } - if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) { + if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) { _debug("update_rss_feed: done"); } @@ -1579,6 +1585,17 @@ $rtl_content = false, $last_updated = false, $last_error = false, $fg_content = false, $bg_content = false) { + if (!$feed_title) $feed_title = getFeedTitle($link, $feed_id, false); + if (!$unread) $unread = getFeedUnread($link, $feed_id); + + if ($unread > 0) $class .= "Unread"; + + if (!$icon_file) $icon_file = getFeedIcon($feed_id); + + if (strpos($icon_file, "images") !== false) { + $icon_file = theme_image($link, $icon_file); + } + if (file_exists($icon_file) && filesize($icon_file) > 0) { $feed_icon = "
";
+ $entry_comments = "$num_comments comments";
} else {
if ($line["comments"] && $line["link"] != $line["comments"]) {
- $entry_comments = "comments";
+ $entry_comments = "comments";
}
}
@@ -4602,7 +4730,7 @@
print "]+>/is', '', $res);
+ }
+ if (get_pref($link, 'OPEN_LINKS_IN_NEW_WINDOW')) {
+ $res = preg_replace("/href=/i", "target=\"_blank\" href=", $res);
}
return $res;
@@ -3711,7 +3825,6 @@
ref_id = ttrss_entries.id AND feed_id = ttrss_feeds.id
AND include_in_digest = true
AND $interval_query
- AND hidden = false
AND ttrss_user_entries.owner_uid = $user_id
AND unread = true
ORDER BY ttrss_feeds.title, date_entered DESC
@@ -3932,6 +4045,9 @@
unread = NOT unread,last_read = NOW()
WHERE ref_id = '$id' AND owner_uid = " . $_SESSION["uid"]);
}
+
+ $feed_id = getArticleFeed($link, $id);
+ ccache_update($link, $feed_id, $_SESSION["uid"]);
}
function make_guid_from_title($title) {
@@ -3953,6 +4069,9 @@
$catchup_feed_link = "javascript:catchupCurrentFeed()";
$catchup_sel_link = "javascript:catchupSelection()";
+ $archive_sel_link = "javascript:archiveSelection()";
+ $delete_sel_link = "javascript:deleteSelection()";
+
if (!get_pref($link, 'COMBINED_DISPLAY_MODE')) {
$sel_all_link = "javascript:selectTableRowsByIdPrefix('headlinesList', 'RROW-', 'RCHK-', true, '', true)";
@@ -3987,7 +4106,27 @@
print "".
truncate_string($feed_title,30)."";
} else {
- print $feed_title;
+ if ($feed_id < -10) {
+ $label_id = -11-$feed_id;
+
+ $result = db_query($link, "SELECT fg_color, bg_color
+ FROM ttrss_labels2 WHERE id = '$label_id' AND owner_uid = " .
+ $_SESSION["uid"]);
+
+ if (db_num_rows($result) != 0) {
+ $fg_color = db_fetch_result($result, 0, "fg_color");
+ $bg_color = db_fetch_result($result, 0, "bg_color");
+
+ print "";
+ print $feed_title;
+ print "";
+ } else {
+ print $feed_title;
+ }
+
+ } else {
+ print $feed_title;
+ }
}
if ($search) {
@@ -4015,7 +4154,8 @@
onmouseover=\"enable_selection(false)\"
onmouseout=\"enable_selection(true)\"
onclick=\"toggleHeadlineActions()\" id=\"headlineActionsDrop\">".
- __("Actions...") . "
+ __("Actions...") . "
";
print "
";
@@ -4024,12 +4164,19 @@
";
}
@@ -4164,11 +4270,7 @@
if (db_num_rows($result) > 0) {
if (get_pref($link, 'ENABLE_FEED_CATS')) {
- if ($_COOKIE["ttrss_vf_lclps"] == 1) {
- $cat_hidden = true;
- } else {
- $cat_hidden = false;
- }
+ $cat_hidden = get_pref($link, "_COLLAPSED_LABELS");
printCategoryHeader($link, -2, $cat_hidden, true);
@@ -4181,16 +4283,10 @@
$label_id = -$line['id'] - 11;
$count = getFeedUnread($link, $label_id);
-
- $class = "label";
-
- if ($count > 0) {
- $class .= "Unread";
- }
printFeedEntry($label_id,
- $class, $line["caption"],
- $count, "images/label.png", $link,
+ "label", $line["caption"],
+ $count, false, $link,
false, false, false,
$line['fg_color'], $line['bg_color']);
@@ -4235,13 +4331,12 @@
ON
(ttrss_feeds.id = feed_id)
WHERE
- ttrss_feeds.hidden = false AND
ttrss_feeds.owner_uid = '$owner_uid' AND parent_feed IS NULL
ORDER BY $order_by_qpart";
$result = db_query($link, $query);
- $actid = $_GET["actid"];
+ $actid = $_REQUEST["actid"];
/* real feeds */
@@ -4255,14 +4350,14 @@
while ($line = db_fetch_assoc($result)) {
- $feed = trim($line["title"]);
+ $feed = htmlspecialchars(trim($line["title"]));
if (!$feed) $feed = "[Untitled]";
$feed_id = $line["id"];
$unread = $line["unread"];
- $subop = $_GET["subop"];
+ $subop = $_REQUEST["subop"];
if (get_pref($link, 'HEADLINES_SMART_DATE')) {
$last_updated = smart_date_time(strtotime($line["last_updated_noms"]));
@@ -4300,8 +4395,6 @@
$class = "feed";
}
- if ($unread > 0) $class .= "Unread";
-
if ($actid == $feed_id) {
$class .= "Selected";
}
@@ -4320,19 +4413,17 @@
// workaround for NULL category
if ($category == __("Uncategorized")) {
- if ($_COOKIE["ttrss_vf_uclps"] == 1) {
- $collapsed = "t";
- }
+ $collapsed = get_pref($link, "_COLLAPSED_UNCAT");
}
- $cat_id = sprintf("%d", $cat_id);
+ $cat_id = (int) $cat_id;
printCategoryHeader($link, $cat_id, $collapsed, true);
}
printFeedEntry($feed_id, $class, $feed, $unread,
- ICONS_URL."/$feed_id.ico", $link, $rtl_content,
+ false, $link, $rtl_content,
$last_updated, $line["last_error"]);
++$lnum;
@@ -4378,13 +4469,8 @@
foreach (array_keys($tags) as $tag) {
$unread = $tags[$tag];
-
$class = "tag";
-
- if ($unread > 0) {
- $class .= "Unread";
- }
-
+
printFeedEntry($tag, $class, $tag, $unread, "images/tag.png", $link);
}
@@ -4436,6 +4522,7 @@
function tag_is_valid($tag) {
if ($tag == '') return false;
if (preg_match("/^[0-9]*$/", $tag)) return false;
+ if (mb_strlen($tag) > 250) return false;
if (function_exists('iconv')) {
$tag = iconv("utf-8", "utf-8", $tag);
@@ -4446,11 +4533,16 @@
return true;
}
- function render_login_form($link, $mobile = false) {
- if (!$mobile) {
+ function render_login_form($link, $mobile = 0) {
+ switch ($mobile) {
+ case 0:
require_once "login_form.php";
- } else {
+ break;
+ case 1:
require_once "mobile/login_form.php";
+ break;
+ case 2:
+ require_once "mobile/classic/login_form.php";
}
}
@@ -4464,18 +4556,21 @@
}
function format_warning($msg, $id = "") {
+ global $link;
return "$tmp_category";
+ id=\"FCATN-$cat_id\" $browse_cat_link/>$tmp_category";
print "";
@@ -4101,56 +4247,16 @@
if (get_pref($link, 'ENABLE_FEED_CATS')) {
- if ($_COOKIE["ttrss_vf_vclps"] == 1) {
- $cat_hidden = true;
- } else {
- $cat_hidden = false;
- }
+ $cat_hidden = get_pref($link, "_COLLAPSED_SPECIAL");
printCategoryHeader($link, -1, $cat_hidden, false);
}
- $num_starred = getFeedUnread($link, -1);
- $num_published = getFeedUnread($link, -2);
- $num_fresh = getFeedUnread($link, -3);
- $num_total = getFeedUnread($link, -4);
-
- $class = "virt";
-
- if ($num_total > 0) $class .= "Unread";
-
- printFeedEntry(-4, $class, __("All articles"), $num_total,
- "images/tag.png", $link);
-
- $class = "virt";
-
- if ($num_fresh > 0) $class .= "Unread";
-
- printFeedEntry(-3, $class, __("Fresh articles"), $num_fresh,
- "images/fresh.png", $link);
-
- $class = "virt";
-
- if ($num_starred > 0) $class .= "Unread";
-
- $is_ie = (strpos($_SESSION["client.userAgent"], "MSIE") !== false);
-
- if ($is_ie) {
- $mark_img_ext = "gif";
- } else {
- $mark_img_ext = "png";
+ foreach (array(-4, -3, -1, -2, 0) as $i) {
+ printFeedEntry($i, "virt", false, false,
+ false, $link);
}
- printFeedEntry(-1, $class, __("Starred articles"), $num_starred,
- "images/mark_set.$mark_img_ext", $link);
-
- $class = "virt";
-
- if ($num_published > 0) $class .= "Unread";
-
- printFeedEntry(-2, $class, __("Published articles"), $num_published,
- "images/pub_set.gif", $link);
-
if (get_pref($link, 'ENABLE_FEED_CATS')) {
print "
$msg
$msg
$msg
$msg
$msg
$msg
";
+
";
if (!$zoom_mode) {
print "$tags_str
(+)";
- if (defined('_ENABLE_INLINE_VIEW')) {
-
- print "
";
-
- }
-
- print "
";
$note_escaped = htmlspecialchars($line['note'], ENT_QUOTES);
- print "
";
+ } else {
+ $tags_str = strip_tags($tags_str);
+ print "$tags_str";
}
print "
";
+
+ print "
";
+ if (!get_pref($link, "STRIP_IMAGES")) {
+ if ($always_display_enclosures || !preg_match("/
";
+ }
}
}
}
@@ -4742,8 +4882,8 @@
} else {
print "