X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=classes%2Fpref%2Ffeeds.php;h=5127b19c33a35e048990cde558463f2cb4d445ca;hb=3a0292303e453f38204279b5d1c978a4b9c367e9;hp=5cd07b3efd7592720b04f24fe8f7f390f0ee03cc;hpb=a340b29ba9d70344051e2dec230dbeee216640b5;p=tt-rss.git diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php index 5cd07b3e..5127b19c 100755 --- a/classes/pref/feeds.php +++ b/classes/pref/feeds.php @@ -69,9 +69,9 @@ class Pref_Feeds extends Handler_Protected { } $fsth = $this->pdo->prepare("SELECT id, title, last_error, - ".SUBSTRING_FOR_DATE."(last_updated,1,19) AS last_updated + ".SUBSTRING_FOR_DATE."(last_updated,1,19) AS last_updated, update_interval FROM ttrss_feeds - WHERE cat_id = :cat AND + WHERE cat_id = :cat AND owner_uid = :uid AND (:search = '' OR (LOWER(title) LIKE :search OR LOWER(feed_url) LIKE :search)) ORDER BY order_id, title"); @@ -90,6 +90,7 @@ class Pref_Feeds extends Handler_Protected { $feed['icon'] = Feeds::getFeedIcon($feed_line['id']); $feed['param'] = make_local_datetime( $feed_line['last_updated'], true); + $feed['updates_disabled'] = (int)($feed_line['update_interval'] < 0); array_push($items, $feed); } @@ -237,9 +238,9 @@ class Pref_Feeds extends Handler_Protected { $cat['child_unread'] = 0; $fsth = $this->pdo->prepare("SELECT id, title,last_error, - ".SUBSTRING_FOR_DATE."(last_updated,1,19) AS last_updated + ".SUBSTRING_FOR_DATE."(last_updated,1,19) AS last_updated, update_interval FROM ttrss_feeds - WHERE cat_id IS NULL AND + WHERE cat_id IS NULL AND owner_uid = :uid AND (:search = '' OR (LOWER(title) LIKE :search OR LOWER(feed_url) LIKE :search)) ORDER BY order_id, title"); @@ -258,6 +259,7 @@ class Pref_Feeds extends Handler_Protected { $feed_line['last_updated'], true); $feed['unread'] = 0; $feed['type'] = 'feed'; + $feed['updates_disabled'] = (int)($feed_line['update_interval'] < 0); array_push($cat['items'], $feed); } @@ -272,7 +274,7 @@ class Pref_Feeds extends Handler_Protected { } else { $fsth = $this->pdo->prepare("SELECT id, title, last_error, - ".SUBSTRING_FOR_DATE."(last_updated,1,19) AS last_updated + ".SUBSTRING_FOR_DATE."(last_updated,1,19) AS last_updated, update_interval FROM ttrss_feeds WHERE owner_uid = :uid AND (:search = '' OR (LOWER(title) LIKE :search OR LOWER(feed_url) LIKE :search)) @@ -292,6 +294,7 @@ class Pref_Feeds extends Handler_Protected { $feed_line['last_updated'], true); $feed['unread'] = 0; $feed['type'] = 'feed'; + $feed['updates_disabled'] = (int)($feed_line['update_interval'] < 0); array_push($root['items'], $feed); } @@ -510,8 +513,6 @@ class Pref_Feeds extends Handler_Protected { print '
'; - $auth_pass_encrypted = $row["auth_pass_encrypted"]; - $title = htmlspecialchars($row["title"]); print_hidden("id", "$feed_id"); @@ -562,6 +563,18 @@ class Pref_Feeds extends Handler_Protected { 'dojoType="dijit.form.Select"'); } + /* Site URL */ + + $site_url = htmlspecialchars($row["site_url"]); + + print "
"; + + print __('Site URL:') . " "; + print ""; + /* FTS Stemming Language */ if (DB_TYPE == "pgsql") { @@ -600,14 +613,8 @@ class Pref_Feeds extends Handler_Protected { print "
"; $auth_login = htmlspecialchars($row["auth_login"]); - $auth_pass = $row["auth_pass"]; + $auth_pass = htmlspecialchars($row["auth_pass"]); - if ($auth_pass_encrypted && function_exists("mcrypt_decrypt")) { - require_once "crypt.php"; - $auth_pass = decrypt_string($auth_pass); - } - - $auth_pass = htmlspecialchars($auth_pass); $auth_enabled = $auth_login !== '' || $auth_pass !== ''; $auth_style = $auth_enabled ? '' : 'display: none'; @@ -620,7 +627,6 @@ class Pref_Feeds extends Handler_Protected { autocomplete=\"new-password\" name=\"auth_login\" value=\"$auth_login\">
"; - print " "; + __('Do not embed media').""; $cache_images = $row["cache_images"]; @@ -739,7 +745,7 @@ class Pref_Feeds extends Handler_Protected { - +
"; + $auto_expand = $feed_search != "" ? "true" : "false"; + print "
@@ -1231,7 +1241,7 @@ class Pref_Feeds extends Handler_Protected {