summaryrefslogtreecommitdiff
path: root/include/functions.php
AgeCommit message (Collapse)Author
2017-12-01increase default of MAX_CONDITIONAL_INTERVAL to 12 hoursAndrew Dolgov
2017-11-30enforce unconditional requests every 6 hours even if server claims data is ↵Andrew Dolgov
not modified
2017-11-30add ttrss_feeds.last_unconditional (schema bump)Andrew Dolgov
2017-11-27add a sanity check for tt-rss myisam tablesAndrew Dolgov
2017-11-03Allow <hr> tag in the RSS item' descriptionwoxcab
2017-10-30fetch_file_contents: improve error handlingAndrew Dolgov
1. if request fails get error string from http response status line 2. do not override http error with possible CURL/php specific last error 3. fix silent php error generated while processing response headers to get last modified value
2017-10-08remove apache-specific x-sendfile stuffAndrew Dolgov
implement a hook (HOOK_SEND_LOCAL_FILE) which plugins may use to send files via httpd-specific implementation to increase performance typically on larger files
2017-10-01get_favicon_url: only check base elements with href attributewn_
2017-10-01Handle potentially-relative base element when getting favicon.wn_
The base element's "href" attribute is not required to be absolute, so rewrite relative to the site URL if it is relative. See: * https://www.w3.org/TR/html51/document-metadata.html#the-base-element * https://html.spec.whatwg.org/multipage/semantics.html#the-base-element
2017-08-17add support for http 304 not modified (no timestamp calculation bullshit ↵Andrew Dolgov
like last time)
2017-07-30do not base headlines label context submenu on feed tree labels categoryAndrew Dolgov
2017-07-17$_SERVER['HTTPS'] can be exists and 'off' for non-https connectiosNatan Frei
2017-07-10hopefully unify handling of server HTTPS variables where needed, use scheme ↵Andrew Dolgov
based on SELF_URL_PATH otherwise
2017-07-06replace some usages of SELF_URL_PATH with get_self_url_prefix()Andrew Dolgov
2017-07-02schema: updates for new filter format (bump version to 131)Andrew Dolgov
2017-07-02Revert "Revert "filters: support matching on multiple feeds/categories""Andrew Dolgov
This reverts commit f5d174bda96ddc41aa3828bf372a2a3d99cc4460.
2017-07-02Revert "filters: support matching on multiple feeds/categories"Andrew Dolgov
This reverts commit 0bf7e007bb3a7039ea11601c7f93c6da33604228.
2017-07-02filters: support matching on multiple feeds/categoriesAndrew Dolgov
opml: update filter export/import for new format
2017-05-29tunables:Andrew Dolgov
* add CACHE_MAX_DAYS as a tunable generic expiry interval for various cached files * add some comments to tunables in functions.php * rename _MIN_CACHE_FILE_SIZE to MIN_CACHE_FILE_SIZE * respect MIN_CACHE_FILE_SIZE setting in a few more places where content is cached
2017-05-16remove pubsubhubbub: deadAndrew Dolgov
2017-05-11move add_feed_url() to pref_feedsAndrew Dolgov
2017-05-06fix DAEMON_SLEEP_INTERVAL not being defined when usedAndrew Dolgov
enforce minimum 60 sec spawn/sleep interval in update processes
2017-05-05move counter stuff to a separate classAndrew Dolgov
2017-05-04move label stuff to Labels classAndrew Dolgov
fix some unresolved functions
2017-05-04move some label stuff to labels.phpAndrew Dolgov
move getfeedcategory() to Feeds
2017-05-04abs_to_rel_path: removedAndrew Dolgov
2017-05-04move counter cache to a separate classAndrew Dolgov
fix references to get_article_tags
2017-05-04move a bunch of functions into Feeds/Article namespacesAndrew Dolgov
+ static function catchupArticlesById($ids, $cmode, $owner_uid = false) { + static function getLastArticleId() { + static function queryFeedHeadlines($params) { + static function getParentCategories($cat, $owner_uid) { + static function getChildCategories($cat, $owner_uid) { move the rest of functions2.php back to functions.php as it is of more manageable size, remove the former
2017-05-04move to Article:Andrew Dolgov
+ static function purge_orphans($do_output = false) { move to Feeds + static function getGlobalUnread($user_id = false) { + static function getCategoryTitle($cat_id) { + static function getLabelUnread($label_id, $owner_uid = false) {
2017-05-04move the following to Feeds:Andrew Dolgov
+ static function catchup_feed($feed, $cat_view, $owner_uid = false, $mode = 'all', $search = false) { + static function getFeedArticles($feed, $is_cat = false, $unread_only = false, + static function subscribe_to_feed($url, $cat_id = 0, + static function getFeedIcon($id) { + static function getFeedTitle($id, $cat = false) { + static function getCategoryUnread($cat, $owner_uid = false) { + static function getCategoryChildrenUnread($cat, $owner_uid = false) {
2017-05-04move some common control-generating functions to controls.phpAndrew Dolgov
2017-04-26fix various issues reported by static analysisAndrew Dolgov
update gitlab-ci config
2017-03-31filter by search results while marking feed as readAndrew Dolgov
2017-03-04simplify error handlingAndrew Dolgov
* less convoluted exception dialogs * use window.onerror for the majority of exception catching/reporting * remove most of now useless try/catch blocks * report stacktrace instead of manually specified error locations
2017-02-10add some print_checkbox/print_button calls; rename some plugin preference ↵Andrew Dolgov
pane titles
2017-02-10af_zz_imgproxy: add optional setting to proxy all remote imagesAndrew Dolgov
functions: add some form helper methods
2017-01-28subscribe dialog: do not report errors via alert()Andrew Dolgov
fetch_file_contents: reset all globals on start, return error message body when not using curl subscribe_to_feed: report if cloudflare is in the error message
2017-01-24fetch_file_contents: rework the way shim works to prevent intermittent warningsAndrew Dolgov
2017-01-22feed tree: only run animation for appearing unread counters to prevent ↵Andrew Dolgov
clashes with aux counter updating and animations ending up in wrong state
2017-01-22Added support to fetch_file_contents() to explicitly set CURLOPT_FOLLOWLOCATION.JustAMacUser
2017-01-21lib: Upgrade php-publisher from ??? to a5d6a0e (2016-11-15)Anders Kaseorg
https://github.com/pubsubhubbub/php-publisher Signed-off-by: Anders Kaseorg <[email protected]>
2017-01-07deprecate encrypted feed passwords because mcrypt is getting removed from ↵Andrew Dolgov
php 7.1 1. transparent decryption for existing installs stays for the time being 2. new passwords are not going to be encrypted even if FEED_CRYPT_KEY is defined 3. added update.php --decrypt-feeds to bulk decrypt existing encrypted passwords 4. updated install to not auto-generate crypt key 5. added warning to config.php-dist
2016-10-24fetch_file_contents: set timeout when not using CURLAndrew Dolgov
2016-08-28Specify feed_id as an int rather than a string.John Brayton
2016-08-27Add feed_id to subscribeToFeed response when the code is 1 or 0.John Brayton
Set the API_LEVEL to 14.
2016-08-11perform housekeeping tasks for plugins loaded in user-context onlyAndrew Dolgov
2016-07-07test if mb_internal_encoding() is available in functions.php headAndrew Dolgov
2016-03-31fetch_file_contents: fix shim when invoked with 1 argument onlyAndrew Dolgov
2016-03-30remove fetch_file_contents2, use a compat shim insteadAndrew Dolgov
2016-03-30add a hash-based fetch_file_contents2()Andrew Dolgov