Commit Graph

111 Commits

Author SHA1 Message Date
Andrew Dolgov cf1eaeedf3
* add UserHelper methods to manipulate user database (add, modify, delete)
* expose said methods via CLI (update.php)
 * fix several invocations of deprecated functions
 * set stricter type hints on several method arguments
2022-06-10 13:39:00 +03:00
wn_ 0f324b77df Address PHPStan warning and tweak 'tasks'+'interval' handling in 'update_daemon2.php'.
This ensures both are of the expected type (int) and meet a reasonable minimum.
2021-11-11 12:11:33 +00:00
wn_ bf53dfa515 Don't use 'mixed' directly (PHP 8+). 2021-11-10 21:53:28 +00:00
wn_ 4cc3374f9f Initial go at PHPStan rule level 6. 2021-11-10 21:38:25 +00:00
Andrew Dolgov 5eb0f3d640 bring back web dbupdate using new migrations system 2021-03-04 09:22:24 +03:00
Andrew Dolgov d6629ed188 move dbupdater to db/updater; move base SCHEMA_VERSION constant inside db/updater class 2021-03-02 15:03:01 +03:00
Andrew Dolgov 7ef72fe0dc move startup checks to Config, set a bunch of @deprecated annotations 2021-03-01 10:20:21 +03:00
Andrew Dolgov a1ca62af50 cache schema version better 2021-02-25 21:42:05 +03:00
Andrew Dolgov 29ada58b4a move db-prefs shortcut functions to functions.php 2021-02-22 23:25:14 +03:00
Andrew Dolgov 12bcf826e4 don't include config.php everywhere 2021-02-22 22:39:20 +03:00
Andrew Dolgov 211f699aa0 migrate the rest into Config:: 2021-02-22 22:35:27 +03:00
Andrew Dolgov e4107ac952 wip: initial for config object 2021-02-22 21:47:48 +03:00
Andrew Dolgov 42173386b3 dirname(__FILE__) -> __DIR__ 2021-02-22 17:38:46 +03:00
Andrew Dolgov add6242e51 do not use define_default() because it screws with static analyzers 2021-02-22 17:35:52 +03:00
Andrew Dolgov 9f55454f63 remove the rest of db.php; rename some leftover methods in feeds 2021-02-15 16:51:35 +03:00
Andrew Dolgov 2abc434e26 daemon: clarify some task-related messages 2020-12-31 10:11:41 +03:00
Andrew Dolgov 72d0fac80c remove version.php and VERSION global constant, do version-related things in a slightly less ridiculous way 2019-12-18 14:27:40 +03:00
Jordan Galby 487d06a20d fix 'logging to...' output line not respecting quiet setting (update_daemon2.php) 2019-02-12 19:14:23 +01:00
Andrew Dolgov 8d190d539b CLI tools: fix --quiet not working if --log is unset 2018-12-01 10:05:26 +03:00
Andrew Dolgov c10a43069e debug logging system rework:
* support various logging levels per-message
 * remove hacks like debug_suppress, DAEMON_EXTENDED_DEBUG, etc
 * _debug() is kept as a compatibility shim for plugins
2018-11-30 08:34:29 +03:00
Andrew Dolgov 4fd0790804 fix DAEMON_SLEEP_INTERVAL not being defined when used
enforce minimum 60 sec spawn/sleep interval in update processes
2017-05-06 10:54:14 +03:00
Andrew Dolgov e6c886bf66 wrap rssfuncs into rssutils class 2017-05-05 18:10:07 +03:00
Andrew Dolgov e552bb0bf6 update_daemon: mask phpmd stuff 2017-04-26 15:44:56 +03:00
Andrew Dolgov 45ce1610d2 fix previous on daemon2 2014-02-06 23:04:27 +04:00
Andrew Dolgov 6f61ba46c4 detect php cgi binary because people keep trying to run service scripts using it 2014-02-06 23:03:05 +04:00
Andrew Dolgov bd8ae98bde daemon: include functions before config to enable define_default support 2013-12-18 14:00:44 +04:00
Andrew Dolgov a33558a61e pass logfile to child tasks if locking is possible, lock logfile before writing, add kludge to prevent update_rss_feed unneeded debugging go into master logfile 2013-09-02 12:33:59 +04:00
Andrew Dolgov 0f9067450a Revert "do not unlink lockfiles (closes #703)"
This reverts commit 9ffe8907dd.
2013-06-07 09:27:52 +04:00
Andrew Dolgov 9ffe8907dd do not unlink lockfiles (closes #703) 2013-06-01 10:06:59 +04:00
Andrew Dolgov 642432fc39 daemon: add sigterm handler for master 2013-05-29 15:11:46 +04:00
Andrew Dolgov e2cf81e214 unify houskeeping stuff, increase spawn interval 2013-04-24 14:54:59 +04:00
Andrew Dolgov 8cabc200d5 increase updstart locking interval to prevent concurrent updates; decrease batch size for the daemon 2013-04-24 14:23:38 +04:00
Andrew Dolgov 6c0d41c644 Merge branch 'master' of github.com:gothfox/Tiny-Tiny-RSS 2013-04-24 14:04:23 +04:00
Andrew Dolgov f90728cde2 increase MAX_CHILD_RUNTIME 2013-04-24 14:03:57 +04:00
Andrew Dolgov 867fb07c39 daemon: remove feed limit (unused) 2013-04-24 13:54:04 +04:00
Andrew Dolgov 0e6bdaeff0 daemon: use define_default 2013-04-24 13:52:09 +04:00
Andrew Dolgov 7440a7fe3c daemon2: use passthrough to daemon-loop 2013-04-17 18:19:28 +04:00
Andrew Dolgov eefaa2df38 remove db_connect, db_close; CLI fixes 2013-04-17 17:00:35 +04:00
Andrew Dolgov 6322ac79a0 remove $link 2013-04-17 16:48:41 +04:00
Andrew Dolgov 404e2e3603 more work on singleton-based DB 2013-04-17 15:36:48 +04:00
Andrew Dolgov ba68b6815a db updates, remove init_connection() 2013-04-17 14:23:35 +04:00
Andrew Dolgov 857efe49e6 add schema checking to feed updating and update script 2013-04-17 12:10:35 +04:00
Andrew Dolgov 2a649c447c enable logger in updater scripts 2013-04-17 09:09:59 +04:00
Andrew Dolgov a26f0c1759 fix divide by zero in feeds/minute reporting (closes #668) 2013-04-05 18:42:59 +04:00
Andrew Dolgov f0e015c428 daemon2: make wrong schema version error display if quiet 2013-04-01 19:51:59 +04:00
sash-kan ec25336d6a typos: "interval" has a value, option->options 2013-04-01 16:38:33 +04:00
Andrew Dolgov 4c2da34957 daemon2: check if schema version changed 2013-04-01 14:29:29 +04:00
Andrew Dolgov 32f3c02ba3 remove random waiting on task start, wait based on task id 2013-03-31 14:39:31 +04:00
Andrew Dolgov ee0542ce28 daemon: do not schedule user-disabled feeds (2) 2013-03-31 14:36:06 +04:00
Andrew Dolgov 842c2ab451 tweak daemon2 to run feedbrowser/etc tasks after update randomly, not instead of update 2013-03-30 17:44:22 +04:00