Commit Graph

107 Commits

Author SHA1 Message Date
fd1bb21f9d bumps 2023-11-11 22:05:28 +00:00
aef5bc9e2e SHM_ functions in its own file 2023-08-16 15:40:08 +01:00
a5e585d991 SHM_A 2023-08-16 15:40:08 +01:00
0978ef99e3 MicroHTML on pools ext 2023-08-16 15:40:08 +01:00
8202367eaa build_selector and make_form_microhtml as SHM_ functions 2023-08-16 15:40:08 +01:00
34b608c4b7 ratings ext fully MicroHTML 2023-07-03 16:35:43 +01:00
304a86b554 types 2023-06-27 16:11:14 +01:00
05da99c428 fix error in error handler 2023-04-03 22:14:41 +00:00
9b435f6fc3 Allow auth via Bearer token 2023-02-07 13:24:56 +00:00
689b2b13af send_event(T) -> T 2023-02-04 20:50:26 +00:00
ab874cffd3 Let's not implement our own cache abstraction layer 2023-02-02 16:49:41 +00:00
215b30dfca get_debug_info_arr 2023-01-28 19:03:15 +00:00
d663c7892a fix stringing 2023-01-28 19:02:41 +00:00
c81911893f tests 2023-01-11 14:04:35 +00:00
2a18322dd5 god damn it php 2023-01-11 13:27:57 +00:00
5a64e8729b nits 2023-01-11 11:15:26 +00:00
bce2d55744 Namespaces are one honking great idea—let's do more of those! 2023-01-10 22:44:09 +00:00
4ff93c63c3 new php-cs-fixer, new opinions about what is today's preferred format... 2022-10-27 17:21:46 +01:00
a828c3e0e5 more thorough testing for path_to_tags, and handle more edge cases 2022-10-27 17:09:39 +01:00
e97198aa10 format 2022-07-09 23:37:43 +01:00
f15407bc75 X-Real-IP support and Varnish PURGE config options
X-Real-IP for core functionality

Global config define REVERSE_PROXY_X_HEADERS

Config host and port for varnish PURGE

config option to specify PURGE protocol

exception in curl purge now shows error code

ipv6 x-real-ip addresses are now validated properly

X-Forwarded-Proto enabled by define
2022-01-20 22:25:22 +00:00
3061a9d7d5 avoid warning when HTTP_X_FORWARDED_PROTO isn't set 2022-01-01 10:29:32 +00:00
7b7596167a add support for x-forwarded-proto header 2021-12-26 00:16:07 +00:00
3d9e32e919 new php-cs-fixer 2021-12-14 18:32:47 +00:00
68a128c0ea don't log user errors into the server error log 2021-11-16 14:52:26 +00:00
58db685b29 more error handling 2021-11-10 19:33:51 +00:00
4c4b26f098 write internal errors to error log 2021-11-06 16:46:05 +00:00
77f7121e26 drop php7.3 support, make use of 7.4 features 2021-03-14 23:43:50 +00:00
3f5930b4cb simplify and add tests for upload (and replace) path 2020-10-28 20:51:34 +00:00
8ad783ff4c be more snake_case 2020-10-26 00:27:06 +00:00
19a6b39c70 make use of str_starts_with / str_ends_with / str_contains 2020-10-25 19:31:58 +00:00
c783ff0e8d polyfills for php8's str_starts_with and str_ends_with 2020-10-25 19:15:13 +00:00
688fb8b04b Added ability to upload multiple files through a single upload input 2020-06-25 00:42:43 +01:00
2197b15012 Add core/sanitize_php.php
A small number of PHP-sanity things (eg don't silently ignore errors) to
be included right at the very start of index.php and tests/bootstrap.php
2020-06-24 14:54:46 +01:00
eecd35d175 turn 'Use of undefined constant' into an error 2020-06-24 13:00:46 +01:00
919a3039c4 Added user API key system 2020-06-23 15:14:04 +01:00
bccb206369 formatting pass 2020-06-03 19:58:13 +01:00
007e07e507 Various changes to cron uploader:
Removed count limit, the cron job now checks the max PH execution time and auto-stops itself at 80% of that value.

Now skips os-specific image cache files like thumbs.db and the __macosx folder.

Changed failed folder re-deployment to allow re-deploying to populated queue, making it easier to re-process lots of failed batches all at once.

Changed page to output as a stream, allowing a long-running process to provide output as it runs rather than just at the very end.

Changed import loop to use the yield convention, allowing faster consumption of found files and lower memory use overall.
2020-06-03 19:57:27 +01:00
f47e35e4e5 make make_link more sane 2020-03-28 14:11:14 +00:00
7b9c9dc208 Make SHM_FORM generate the correct targets 2020-03-27 14:46:55 +00:00
03806d0420 https a bunch of things 2020-03-25 11:47:00 +00:00
1597eff082 lint fixing 2020-03-13 09:23:54 +00:00
cff72263dc Added text to transcode message to indicate file size change 2020-03-02 15:41:43 +00:00
3c78b5685e remove runtime-coverage -- when we want coverage, we enable it at the PHP runtime level 2020-02-09 16:08:35 +00:00
d749784e95 remove redundant escaping and split load_balance_url into a separate function with testing 2020-02-09 16:02:37 +00:00
cdaecb3380 format 2020-02-06 03:10:30 +00:00
81880f7458 Make installer nice again 2020-02-06 02:19:51 +00:00
f0f3cc7aa0 merge layout stuff into Page class 2020-02-01 18:11:11 +00:00
da42b19d6b make it more explicit that caret/decaret are for encoding tags into URL paths 2020-01-30 21:50:30 +00:00
fb80509be9 also escape ? and & in tags 2020-01-30 21:24:16 +00:00