Shish
2a18322dd5
god damn it php
2023-01-11 13:27:57 +00:00
Shish
5a64e8729b
nits
2023-01-11 11:15:26 +00:00
Shish
bce2d55744
Namespaces are one honking great idea—let's do more of those!
2023-01-10 22:44:09 +00:00
Shish
4ff93c63c3
new php-cs-fixer, new opinions about what is today's preferred format...
2022-10-27 17:21:46 +01:00
Shish
a828c3e0e5
more thorough testing for path_to_tags, and handle more edge cases
2022-10-27 17:09:39 +01:00
Shish
e97198aa10
format
2022-07-09 23:37:43 +01:00
thoughever
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
Shish
3061a9d7d5
avoid warning when HTTP_X_FORWARDED_PROTO isn't set
2022-01-01 10:29:32 +00:00
jellykells
7b7596167a
add support for x-forwarded-proto header
2021-12-26 00:16:07 +00:00
Shish
3d9e32e919
new php-cs-fixer
2021-12-14 18:32:47 +00:00
Shish
68a128c0ea
don't log user errors into the server error log
2021-11-16 14:52:26 +00:00
Shish
58db685b29
more error handling
2021-11-10 19:33:51 +00:00
Shish
4c4b26f098
write internal errors to error log
2021-11-06 16:46:05 +00:00
Shish
77f7121e26
drop php7.3 support, make use of 7.4 features
2021-03-14 23:43:50 +00:00
Shish
3f5930b4cb
simplify and add tests for upload (and replace) path
2020-10-28 20:51:34 +00:00
Shish
8ad783ff4c
be more snake_case
2020-10-26 00:27:06 +00:00
Shish
19a6b39c70
make use of str_starts_with / str_ends_with / str_contains
2020-10-25 19:31:58 +00:00
Shish
c783ff0e8d
polyfills for php8's str_starts_with and str_ends_with
2020-10-25 19:15:13 +00:00
Matthew Barbour
688fb8b04b
Added ability to upload multiple files through a single upload input
2020-06-25 00:42:43 +01:00
Shish
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
Shish
eecd35d175
turn 'Use of undefined constant' into an error
2020-06-24 13:00:46 +01:00
Matthew Barbour
919a3039c4
Added user API key system
2020-06-23 15:14:04 +01:00
Matthew Barbour
bccb206369
formatting pass
2020-06-03 19:58:13 +01:00
Matthew Barbour
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
Shish
f47e35e4e5
make make_link more sane
2020-03-28 14:11:14 +00:00
Shish
7b9c9dc208
Make SHM_FORM generate the correct targets
2020-03-27 14:46:55 +00:00
Shish
03806d0420
https a bunch of things
2020-03-25 11:47:00 +00:00
Shish
1597eff082
lint fixing
2020-03-13 09:23:54 +00:00
Matthew Barbour
cff72263dc
Added text to transcode message to indicate file size change
2020-03-02 15:41:43 +00:00
Shish
3c78b5685e
remove runtime-coverage -- when we want coverage, we enable it at the PHP runtime level
2020-02-09 16:08:35 +00:00
Shish
d749784e95
remove redundant escaping and split load_balance_url into a separate function with testing
2020-02-09 16:02:37 +00:00
Shish
cdaecb3380
format
2020-02-06 03:10:30 +00:00
Shish
81880f7458
Make installer nice again
2020-02-06 02:19:51 +00:00
Shish
f0f3cc7aa0
merge layout stuff into Page class
2020-02-01 18:11:11 +00:00
Shish
da42b19d6b
make it more explicit that caret/decaret are for encoding tags into URL paths
2020-01-30 21:50:30 +00:00
Shish
fb80509be9
also escape ? and & in tags
2020-01-30 21:24:16 +00:00
Shish
c2231432f3
no make_link for forms
2020-01-30 10:31:11 +00:00
Shish
831906681e
fixes for mysql
2020-01-30 09:01:19 +00:00
Shish
6d3ca01424
format
2020-01-29 00:49:26 +00:00
Shish
615da9e9d2
fix all the tests (for sqlite, php7.4, osx, at least)
2020-01-28 21:19:59 +00:00
Shish
af48aa504b
stop ENABLED_MODS
2020-01-27 20:00:23 +00:00
Shish
59c89ee135
Stop failing to have a separate SCORE_VERSION
2020-01-27 19:57:07 +00:00
Shish
15d1e4ef17
Remove MIN_PHP_VERSION - that's not a thing that end users can change
2020-01-27 19:54:51 +00:00
Shish
b0237ddd97
more stuff to util.php
2020-01-27 19:05:43 +00:00
Shish
dba89e9d13
make all themes have a Page class, to simplify loading
2020-01-27 18:35:36 +00:00
Shish
903679dc53
more stuff into regular functions
2020-01-27 18:24:11 +00:00
Shish
9b50e98927
move some installer bits to util.php
2020-01-27 17:47:28 +00:00
Shish
4bd1d8b6ee
forms
2020-01-26 23:23:15 +00:00
Shish
50f3d04f0c
transload error log-ish
2020-01-26 23:23:01 +00:00
Shish
cddf6e9d5f
more types
2020-01-26 19:44:36 +00:00
Shish
3631084afd
format
2020-01-26 16:38:26 +00:00
Shish
9eb5acf2dc
use strict types
2020-01-26 16:27:56 +00:00
Shish
f5ccffdaf4
shm_simple_form
2020-01-26 13:29:04 +00:00
Shish
73c63e3477
microhtml for user page
2020-01-16 19:13:12 +00:00
Shish
70db0ce5bd
flash_message -> page->flash, with no cookies
2019-12-15 19:47:18 +00:00
Shish
d705578f79
formatting
2019-12-15 15:31:44 +00:00
Shish
562a2c8fea
use microhtml for ext_manager
2019-12-09 14:20:56 +00:00
Shish
7f041a9f93
have fatal_error print out a bunch more info when run from CLI
2019-12-07 22:53:59 +00:00
Shish
a9993b47a8
working microcrud for ipbans
2019-11-27 21:06:14 +00:00
Shish
c94f289291
html_escape all exception messages - pass query out-of-band if we want it formatted
2019-11-11 16:43:42 +00:00
Shish
247cfcbd77
Avoid shadowing global variable
...
When we aren't referencing the current `global $user`, we should give it
a different name to avoid confusion
2019-11-11 16:43:42 +00:00
Shish
55c6854003
formatting
2019-11-02 19:57:34 +00:00
Matthew Barbour
92a0afc15e
Supporting function for cron uploader changes
2019-10-10 10:41:17 -05:00
Shish
e08cdb1638
make Cache its own thing, separate from Database
2019-10-02 10:49:32 +01:00
Shish
a6bb15d859
formatting
2019-09-29 14:30:55 +01:00
Matthew Barbour
f4b647b6b8
Updated util for new extension methods
2019-08-07 15:59:06 -05:00
Matthew Barbour
972b68bdd3
Setup constants
2019-08-05 09:00:23 -05:00
Matthew Barbour
cb1e9c0075
Permissions to constants
2019-08-01 08:07:05 -05:00
Matthew Barbour
a41e99d1af
Renamed graphics extension to media extension
2019-07-08 08:07:08 -05:00
Matthew Barbour
3859e27839
New Graphics extension
...
Added constants to several extensions
2019-07-08 08:07:02 -05:00
Shish
4cadce1de0
merge slow-page-log into tracer, fixes #673
2019-07-07 13:51:19 +01:00
matthew
c906df6956
Added iterator_map and iterator_map_to_array
...
Moved the path join/sanitize to pollyfills
2019-07-07 11:11:57 +01:00
Shish
ccb9c493d5
s/Context/EventTracer/g
2019-07-05 20:49:47 +01:00
matthew
639c896a16
Added join_path to cleanly join paths.
...
Added sanitize_path to normalize and deduplicate directory separators.
Changed warehouse_path to be able to scale up the number of octect pairs as much as desired.
2019-07-05 16:43:06 +01:00
Shish
c24a6e9b97
formatting pass
2019-06-21 09:12:44 +01:00
Shish
42a502953b
Merge pull request #663 from sanmadjack/bugfixes
...
Bugfixes and small changes
2019-06-21 09:11:52 +01:00
Matthew Barbour
a2ac9776ff
path tag corrections
2019-06-19 23:28:34 -05:00
Matthew Barbour
c951f7d13e
Adjusted path-to-dir regex to prevent an error
2019-06-19 20:22:41 -05:00
Matthew Barbour
37fe743f65
Changed "images" and "thumbs" usages to constants
2019-06-15 11:20:11 -05:00
Matthew Barbour
85b6bba689
Changed path_to_tags to interpret ; as : and to allow inheriting categories from parent folders
2019-06-14 09:50:23 -05:00
Shish
f078b283bd
pull a bunch of small fixes from #659
2019-06-14 13:16:58 +01:00
Shish
1d1536b1ee
assert_options is deprecated for php7
2019-06-13 16:57:58 +01:00
matthew
e651da03cc
Changed path tag handling to merge path tags with filename tags
...
Added 0-9 to the filename tag regexp so that extensions like mp4 will be picked up as well.
2019-06-02 13:27:24 -05:00
Shish
bf473f6d51
more lint fixes
2019-05-29 18:23:29 +01:00
Shish
2396ae2ef9
fix a bunch of lints
2019-05-28 20:27:23 +01:00
Shish
34b05cca7c
PSR-2. I'm not a huge fan, but ugly consistency beats no consistency...
2019-05-28 17:59:38 +01:00
Shish
5ec3e89884
php7.1 all the things
2019-05-28 17:31:20 +01:00
Shish
f4c18930ce
option to log slow pages
2019-05-26 10:42:58 +01:00
Shish
52dfa12df7
zend.assertions can't be set at runtime
2019-04-26 10:13:17 +01:00
Shish
ead3a5a588
php7 assertions, no strings
2019-01-06 10:40:39 +00:00
Shish
65d2172ede
move images and thumbs to data/
2018-11-07 16:06:10 +00:00
Shish
cefe1c0325
a bunch of installer tweaks
2018-11-07 00:25:43 +00:00
Shish
b2f10ea5ab
split up files in core/ for saner management
2018-11-05 22:30:18 +00:00