From 5321e775f92bc304456e7b6ed55ad169bf21ba16 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 26 Feb 2013 19:20:58 +0400 Subject: [PATCH] remove update on checksum change (updated status has been removed); rtl stuff (unused) --- classes/feeds.php | 21 ------------------ classes/pref/feeds.php | 50 +----------------------------------------- include/functions.php | 23 +------------------ include/rssfuncs.php | 8 +------ js/prefs.js | 10 --------- 5 files changed, 3 insertions(+), 109 deletions(-) diff --git a/classes/feeds.php b/classes/feeds.php index cc6d2733..fed96056 100644 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -198,27 +198,6 @@ class Feeds extends Handler_Protected { } } - if (is_numeric($feed) && $feed > 0) { - - $result = db_query($this->link, "SELECT rtl_content FROM ttrss_feeds - WHERE id = '$feed' AND owner_uid = " . $_SESSION["uid"]); - - if (db_num_rows($result) == 1) { - $rtl_content = sql_bool_to_bool(db_fetch_result($result, 0, "rtl_content")); - } else { - $rtl_content = false; - } - - if ($rtl_content) { - $rtl_tag = "dir=\"RTL\""; - } else { - $rtl_tag = ""; - } - } else { - $rtl_tag = ""; - $rtl_content = false; - } - @$search = db_escape_string($_REQUEST["query"]); if ($search) { diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php index 52d5e89a..aa2ae661 100644 --- a/classes/pref/feeds.php +++ b/classes/pref/feeds.php @@ -592,17 +592,6 @@ class Pref_Feeds extends Handler_Protected { print " "; - $rtl_content = sql_bool_to_bool(db_fetch_result($result, 0, "rtl_content")); - - if ($rtl_content) { - $checked = "checked=\"1\""; - } else { - $checked = ""; - } - - print "
 "; - $include_in_digest = sql_bool_to_bool(db_fetch_result($result, 0, "include_in_digest")); if ($include_in_digest) { @@ -654,18 +643,6 @@ class Pref_Feeds extends Handler_Protected { name=\"mark_unread_on_update\" $checked> "; - $update_on_checksum_change = sql_bool_to_bool(db_fetch_result($result, 0, "update_on_checksum_change")); - - if ($update_on_checksum_change) { - $checked = "checked"; - } else { - $checked = ""; - } - - print "
 "; - print ""; /* Icon */ @@ -819,11 +796,6 @@ class Pref_Feeds extends Handler_Protected { print " "; $this->batch_edit_cbox("private", "private_l"); - print "
 "; - - print " "; $this->batch_edit_cbox("rtl_content", "rtl_content_l"); - print "
 "; @@ -850,12 +822,6 @@ class Pref_Feeds extends Handler_Protected { print " "; $this->batch_edit_cbox("mark_unread_on_update", "mark_unread_on_update_l"); - print "
 "; - - print " "; $this->batch_edit_cbox("update_on_checksum_change", "update_on_checksum_change_l"); - print ""; print "
@@ -890,7 +856,6 @@ class Pref_Feeds extends Handler_Protected { $auth_login = db_escape_string(trim($_POST["auth_login"])); $auth_pass = db_escape_string(trim($_POST["auth_pass"])); $private = checkbox_to_sql_bool(db_escape_string($_POST["private"])); - $rtl_content = checkbox_to_sql_bool(db_escape_string($_POST["rtl_content"])); $include_in_digest = checkbox_to_sql_bool( db_escape_string($_POST["include_in_digest"])); $cache_images = checkbox_to_sql_bool( @@ -904,9 +869,6 @@ class Pref_Feeds extends Handler_Protected { $mark_unread_on_update = checkbox_to_sql_bool( db_escape_string($_POST["mark_unread_on_update"])); - $update_on_checksum_change = checkbox_to_sql_bool( - db_escape_string($_POST["update_on_checksum_change"])); - if (get_pref($this->link, 'ENABLE_FEED_CATS')) { if ($cat_id && $cat_id != 0) { $category_qpart = "cat_id = '$cat_id',"; @@ -930,13 +892,11 @@ class Pref_Feeds extends Handler_Protected { auth_login = '$auth_login', auth_pass = '$auth_pass', private = $private, - rtl_content = $rtl_content, cache_images = $cache_images, cache_content = $cache_content, include_in_digest = $include_in_digest, always_display_enclosures = $always_display_enclosures, - mark_unread_on_update = $mark_unread_on_update, - update_on_checksum_change = $update_on_checksum_change + mark_unread_on_update = $mark_unread_on_update WHERE id = '$feed_id' AND owner_uid = " . $_SESSION["uid"]); } else { @@ -995,10 +955,6 @@ class Pref_Feeds extends Handler_Protected { $qpart = "mark_unread_on_update = $mark_unread_on_update"; break; - case "update_on_checksum_change": - $qpart = "update_on_checksum_change = $update_on_checksum_change"; - break; - case "cache_images": $qpart = "cache_images = $cache_images"; break; @@ -1007,10 +963,6 @@ class Pref_Feeds extends Handler_Protected { $qpart = "cache_content = $cache_content"; break; - case "rtl_content": - $qpart = "rtl_content = $rtl_content"; - break; - case "cat_id": $qpart = $category_qpart_nocomma; break; diff --git a/include/functions.php b/include/functions.php index 57272078..4d3051a0 100644 --- a/include/functions.php +++ b/include/functions.php @@ -2841,27 +2841,6 @@ //if (!$zoom_mode) { print "
$parsed_updated
"; + $rv['content'] .= "
$parsed_updated
"; if ($line["link"]) { $rv['content'] .= "