Commit Graph

125 Commits

Author SHA1 Message Date
b859e1fc60 Merge pull request #869 from thoughever/reverse_proxy
X-Real-IP support and Varnish PURGE config options
2022-05-01 10:42:54 +01:00
6bc1ec4f81 Allow setting $image->posted values 2022-04-29 11:21:57 -07: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
3d9e32e919 new php-cs-fixer 2021-12-14 18:32:47 +00:00
58db685b29 more error handling 2021-11-10 19:33:51 +00:00
d932178670 don't crash when the user searches with no positive tags and multiple non-existent negative tags 2021-10-06 17:02:29 +00:00
3f0a8399d1 clarify some nullables 2021-09-25 13:40:41 +01:00
faf35cc884 video references image width / height 2021-03-16 01:49:48 +00:00
77f7121e26 drop php7.3 support, make use of 7.4 features 2021-03-14 23:43:50 +00:00
4f82dce662 Changed image->get_tag_array to sort the array before returning 2021-01-16 14:26:18 -06:00
ecafd4e131 Merge branch 'image2post' 2020-10-27 22:42:47 +00:00
338bbcdbcb more test passing 2020-10-27 22:19:26 +00:00
10f563ee37 boolinate locked 2020-10-27 01:05:12 +00:00
ee7a4f178c boolinate video/audio 2020-10-27 00:58:18 +00:00
ed735e17be boolinate image 2020-10-27 00:58:18 +00:00
aceb3e23f3 remove redundant casts 2020-10-26 23:18:14 +00:00
cc06df171a Argh, that doesn't work for OTHER versions of sqlite...
This reverts commit 55e3cb5d63.
2020-10-26 22:37:25 +00:00
55e3cb5d63 compatibility with out-of-date sqlite: use '(1=0)' instead of 'false' 2020-10-26 22:33:11 +00:00
e7b109a7f2 Image to Post - Some core files 2020-10-26 10:53:02 -05: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
c8bd5e8d49 clarity for not-emptiness 2020-10-25 13:09:51 +00:00
0dca09c230 make order querylets a first class citizen instead of a hack 2020-10-25 12:55:36 +00:00
19d5cfe8b9 make search term parse ID a standard thing 2020-10-25 12:55:36 +00:00
c11f0dafd0 format 2020-10-24 22:16:18 +01:00
58a0f060ce avoid numeric columns 2020-10-24 19:18:40 +01:00
bf2a34c106 Adjusted mime type update statement to include NULLs. Changed get_mime() so that it can return a null in the event of the mime type not being properly set. 2020-10-08 17:41:24 -05:00
a93c66515b Merge pull request #749 from sanmadjack/video_transcode
Video transcoding
2020-09-16 13:46:18 +01:00
4131bcbd64 Merge pull request #748 from sanmadjack/image_info
Added image info option to admin, changed the info template parser to…
2020-09-16 11:21:31 +01:00
ecd860ec6d Video transcoding extension, currently just supports changing the video container 2020-08-28 09:52:01 -05:00
65aca09203 Added understanding of video codecs, primarily to allow us to determine whether a file is a webm or not, but also to support my forthcoming video transcoding extension 2020-08-28 09:51:55 -05:00
4c5ef85906 Added image info option to admin, changed the info template parser to not use the url-escaped option 2020-08-28 09:50:36 -05:00
ab008e351d Added SPEED_HAX criteria to image count shortcuts. 2020-08-28 09:48:10 -05:00
de26b7f373 don't die if database is missing a MIME type 2020-07-07 16:07:19 +00:00
984c9702ec The great MIMEing 2020-06-25 00:42:34 +01:00
63b2601e67 Mime type handling overhaul
Changed mime type map to deal with the reality that certain file types have multiple extensions and/or multiple mime types, as well as constants supporting all of the data. Created new functions using the updated mime type map to resolve mime types and extensions. Updated various items around the project that determine mime/extension to take advantage of the new functions.
2020-06-03 19:47:40 +01:00
33731e8cb0 separate link formatting for URLs and for plain text 2020-02-25 12:26:56 +00:00
b44a4de42c one return 2020-02-25 12:18:18 +00:00
152e55b5db Changed Image::by_hash so that it isn't case-sensitive 2020-02-23 23:07:02 -06:00
43ab3088cf cache key 2020-02-13 20:54:59 +00:00
3a57817fc2 Spread ParseLinkTemplate work across relevant extensions 2020-02-09 19:22:25 +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
cc7a33b31f show lengths to 1/10th second 2020-02-09 00:32:20 +00:00
4b5becfb7f video length in thumb 2020-02-08 20:44:23 +00:00
03af4dd92f ??? 2020-02-05 09:01:22 +00:00
23943692ce formatting 2020-02-05 01:38:32 +00:00
ef82d5f1a1 account for missing tags 2020-02-05 01:26:18 +00:00
f7feb4075a order, order 2020-02-05 00:27:37 +00:00
1a07f84622 inline build_accurate_search_querylet 2020-02-05 00:16:47 +00:00
e971d10d41 we can also optimise one negative tag in the same way 2020-02-04 23:49:54 +00:00