Commit graph

47 commits

Author SHA1 Message Date
Alex Cabal
3050ab7219 Use HTTP code enums instead of ints 2024-11-20 14:52:05 -06:00
Alex Cabal
8546039b97 Comment formatting 2024-11-15 21:40:56 -06:00
Alex Cabal
90b70b3235 Refactor feed functions out of Library and add some enums 2024-11-15 21:13:35 -06:00
Alex Cabal
b7b63a4be5 Refactor functions out of Library 2024-11-10 23:05:31 -06:00
Alex Cabal
1449148989 Switch logged in user to static typed variable instead of in $GLOBALS 2024-11-10 23:05:31 -06:00
Alex Cabal
c35c47b793 Add DateTimeFormat enum 2024-11-08 16:41:15 -06:00
Alex Cabal
be5574eaec Move enums into their own namespace 2024-11-08 16:34:21 -06:00
Alex Cabal
06b82cdaaa Fix broken updated timestamps in OPDS feeds, and fix and add some type hints. 2024-11-08 12:43:47 -06:00
Mike Colagrosso
6c8e819316 Implement OpenSearch feed search with FilterEbooks 2024-11-04 13:16:56 -06:00
Alex Cabal
eec79712fc Use a NOW constant instead of new DateTimeImmutable objects, and tweak how some donation drive dates work 2024-10-15 22:21:12 -05:00
Alex Cabal
44901cf3e2 Add Db::QueryBool() and some code style updates 2024-09-15 13:50:13 -05:00
Alex Cabal
a442f92e28 Use exists() for some SQL statements; send thank-you email to patron donors who donate again 2024-05-13 12:32:07 -05:00
Alex Cabal
70ae877dd8 Bump PHPStan check level to max and add final round of type hints 2024-05-13 10:48:05 -05:00
Alex Cabal
110c091a7b Define some constants to make HTTP input code less wordy 2024-05-12 12:29:30 -05:00
Alex Cabal
ee7c8343dd Convert some constants to enums 2024-05-11 21:51:06 -05:00
Alex Cabal
e55fecaaa2 Switch from DateTime to DateTimeImmutable across codebase 2024-04-13 14:05:14 -05:00
Alex Cabal
ca3fc6dbfd Refactor HttpInput::Str and rename some exceptions for consistency 2024-01-18 11:21:05 -06:00
Alex Cabal
f7ff76bf7d Rename some Formatter functions for clarity 2024-01-17 16:04:30 -06:00
Mike Colagrosso
6a5c05511a Add cover art database
Co-authored-by: Job Curtis <job.curtis@gmail.com>
Co-authored-by: Alex Cabal <alex@standardebooks.org>
2024-01-03 19:14:04 -06:00
Alex Cabal
042816cf45 Use auto_prepend_file INI directive to prepend Core.php to all web requests automatically 2023-07-15 15:17:20 -05:00
Alex Cabal
76cf0d296a Use content negotation to serve acceptable content types for web browsers viewing OPDS/RSS/Atom feeds 2023-06-20 15:26:28 -05:00
Alex Cabal
8127f0c7e2 Remove unused exception variables, now that this is possible with PHP8 2023-06-06 21:00:12 -05:00
Alex Cabal
26a24cdbe2 Pretty print SQL 2022-12-24 15:44:42 -06:00
Alex Cabal
733b52c581 Don't serve Safari XHTML because of a bug in <picture> elements causing multiple images to be downloaded 2022-09-26 20:18:04 -05:00
Alex Cabal
850ad44e83 Enable Patron login required for ebook feeds 2022-07-25 12:26:29 -05:00
Alex Cabal
fe247568bb Fix some PHPStan errors 2022-07-24 19:33:32 -05:00
Alex Cabal
4dea56407e Add RSS links to page headers for collections and authors 2022-07-19 15:27:01 -05:00
Alex Cabal
e857e4e9e6 Rebuild web caches immediately on ebook updates 2022-07-14 15:28:57 -05:00
Alex Cabal
7341304729 Temporarily disable feed authentication 2022-07-14 12:50:39 -05:00
Alex Cabal
30442c0c62 Move HTTP auth to PHP 2022-07-14 12:50:21 -05:00
Alex Cabal
dc0e873577 Add feed/download toolbar to author and collection indexes 2022-07-12 10:24:41 -05:00
Alex Cabal
05e0f77b45 Add collections and authors RSS/Atom/OPDS feeds 2022-07-11 18:49:11 -05:00
Alex Cabal
4d307c0a5d Change feeds hero image 2022-07-11 11:33:29 -05:00
Alex Cabal
282909ef6a Add captions to hero images 2022-07-11 10:42:25 -05:00
Alex Cabal
169a74a3cb fixup! work 2022-07-10 20:57:17 -05:00
Alex Cabal
139ae6e918 Tweak wording on feed pages 2022-07-09 20:19:47 -05:00
Alex Cabal
12b79b5dcd Split bulk downloads into file type and cache output 2022-07-09 20:09:40 -05:00
Alex Cabal
d659fb9649 Tweak authorization for feeds/downloads, add hero to feeds page 2022-07-09 20:09:39 -05:00
Alex Cabal
6c603016bd Move feeds behind Patrons Circle login 2022-07-09 20:09:39 -05:00
Alex Cabal
6c8414f844 Update PropertiesBase to new patterns and improve static analysis checks 2022-06-30 13:23:05 -05:00
Alex Cabal
1b237265c7 Add opensearch directives to Atom and RSS feeds 2022-06-24 13:26:15 -05:00
Alex Cabal
c109c565cb Move feeds under new /feeds root 2022-06-24 12:54:57 -05:00
Alex Cabal
ee545502af Add index pages for RSS/Atom roots 2022-06-24 11:00:42 -05:00
Alex Cabal
f9fd6c8a02 Further refinment to OPDS/RSS generation and also add Atom feeds 2022-06-23 21:27:25 -05:00
Alex Cabal
f6df03cfca Flesh out OPDS generation backend to be more robust and to support generic Atom feeds 2022-06-22 15:09:05 -05:00
Alex Cabal
305a9d298b Add XSLT stylesheet for OPDS feeds 2022-06-20 13:52:39 -05:00
Alex Cabal
93771ab1bc Create new 'feeds' page to merge OPDS/RSS pages 2022-06-20 11:45:10 -05:00