summaryrefslogtreecommitdiff
path: root/classes/pluginhost.php
AgeCommit message (Collapse)Author
2021-11-16pluginhost: set stricter @paramsAndrew Dolgov
2021-11-16adjust phpdoc tags for hook definitions/constants (make them reference each ↵Andrew Dolgov
other)
2021-11-14 * deal with some phpstan warnings in base plugin classAndrew Dolgov
* arguably better hack for incompatible plugins causing E_COMPILE_ERROR
2021-11-14pluginhost: add a hack to not crash on an incompatible plugin more than once ↵Andrew Dolgov
(per login) - UGLY
2021-11-12Switch class properties from PHP typing to PHPDoc for compatibility with PHP ↵wn_
< 7.4.0
2021-11-12Address PHPStan warnings in 'classes/pluginhost.php'.wn_
2021-11-01Address PHPStan warnings in 'classes/pluginhost.php'.wn_
------ -------------------------------------------------------------------- Line classes/pluginhost.php ------ -------------------------------------------------------------------- 16 Property PluginHost::$last_registered is never read, only written. 386 If condition is always true. ------ --------------------------------------------------------------------
2021-10-22pluginhost: update comments for HOOK_ constants to use phpdoc syntax; add ↵Andrew Dolgov
HOOK_PRE_SUBSCRIBE
2021-04-09pluginhost: add profile_get/profile_set helpersAndrew Dolgov
2021-03-15Fix E_NOTICE in `add_handler()`.JustAMacUser
2021-03-07 * af_redditimgur: optionally import scoreAndrew Dolgov
* add pluginhost->set_array() to set many plugin settings at once
2021-03-03wip: initial for db_migrationsAndrew Dolgov
2021-03-03add basic local plugin uninstallerAndrew Dolgov
2021-03-03add a send test email button to prefs/systemAndrew Dolgov
2021-03-02pluginhost: remove namespace classloader, plugins should use composer insteadAndrew Dolgov
2021-03-02* sanitize: never rewrite relative links to our own prefixAndrew Dolgov
* use Config::get_self_url() instead of get_self_url_prefix() in a bunch of places
2021-02-26add pluginhost->get_array() shorthandAndrew Dolgov
2021-02-22dirname(__FILE__) -> __DIR__Andrew Dolgov
2021-02-22fix several issues reported by phpstanAndrew Dolgov
2021-02-22reinstate HOOK_RENDER_ENCLOSUREAndrew Dolgov
2021-02-19move bookmarklet-related methods out of public.php into the pluginAndrew Dolgov
2021-02-17 * add (disabled) shortcut syntax for plugin methodsAndrew Dolgov
* add controls shortcut for pluginhandler tags * add similar shortcut for frontend * allow plugins to selectively exclude their methods from CSRF checking
2021-02-17* implement shortcut syntax for exposed plugin methodsAndrew Dolgov
* move shared article rendering code to share plugin
2021-02-15article: unify namingAndrew Dolgov
2021-02-09pluginhost: a few more warnings and type hintsAndrew Dolgov
2021-02-08pluginhost: add some type hintsAndrew Dolgov
2021-02-08db: add type hintsAndrew Dolgov
2021-02-08more hooks, also add type hint for PluginHost::getInstance()Andrew Dolgov
2021-02-08pluginhost: note hook function prototypesAndrew Dolgov
2021-02-08pluginhost: deny hook registration to plugins which lack relevant ↵Andrew Dolgov
implementation methods
2021-02-08move some old-style handlers to new callback onesAndrew Dolgov
2021-02-08pluginhost: rework run_hooks() to be shorter, add callback variant; ↵Andrew Dolgov
implement exception handling for both
2021-02-08pluginhost: catch errors while loading plugin source codeAndrew Dolgov
2021-02-08pluginhost: catch fatal errors in plugin initAndrew Dolgov
2021-02-06fix some more warnings reported by phpstanAndrew Dolgov
2021-02-05initial WIP for php8; bump php version requirement to 7.0Andrew Dolgov
2021-01-17Select... dropdown: replace dijit Select with DropDownButton, simplify layoutAndrew Dolgov
PluginHost: add HOOK_HEADLINE_TOOLBAR_SELECT_MENU_ITEM Headlines.onActionChanged: removed
2021-01-15pluginhost: load_data: check schema lastAndrew Dolgov
2021-01-15pluginhost: load plugin data automatically (also marks load_data method as ↵Andrew Dolgov
private)
2020-09-22use self:: in some places to invoke static methods from the same classAndrew Dolgov
2020-09-17replace FALSE with false so that static analyzer shuts up about itAndrew Dolgov
2020-09-14- fix multiple vulnerabilities in af_proxy_httpAndrew Dolgov
- fix vulnerability in rewrite_relative_url() which prevented some URLs from being properly absolutized - fetch_file_contents: validate all URLs before requesting them - validate URLs: explicitly whitelist http and https scheme, forbid everything else - DiskCache/cached_url: only serve whitelisted content types (images, video) - simplify filename/URL handling code, remove and consolidate some less-used functions
2020-08-13pluginhost: allow overriding default sort modes via ↵Andrew Dolgov
HOOK_HEADLINES_CUSTOM_SORT_MAP etc
2020-04-29* add HOOK_ENCLOSURE_IMPORTEDAndrew Dolgov
* pass feed id to HOOK_FEED_PARSED
2020-03-10PluginHost/save_data: use separate PDO connection to prevent issues with ↵Andrew Dolgov
nested transactions
2019-11-27remove hardcoded iframe domain whitelist, make iframe script whitelisting ↵Andrew Dolgov
configurable by plugins (HOOK_IFRAME_WHITELISTED)
2019-10-07Add const HOOK_FEED_TREEjc
2019-10-07Add const HOOK_FEED_TREEjc
2019-08-16af_readability: add missing fileAndrew Dolgov
2019-08-15fix get_method_url() to use correct method parameterAndrew Dolgov