Tegaki
2882bffe35
implement MIME checks on upload
2023-03-22 21:46:15 +01:00
Shish
36951db563
use DataUploadEvent fields rather than required metadata
2023-02-24 22:42:03 +00:00
Shish
95b081e9a3
put constructor data in constructor
2023-02-24 21:12:00 +00:00
Shish
077a5e7727
fix php8.2 warnings
2023-02-19 11:24:33 +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
165eea11b1
all the strict_types
2023-01-10 21:21:26 +00:00
Shish
a04bc2e7e4
php8.1 gogogo
2022-10-28 01:45:35 +01:00
Shish
4ff93c63c3
new php-cs-fixer, new opinions about what is today's preferred format...
2022-10-27 17:21:46 +01:00
flatty
9c05622d6e
Fix uploader issue with SHM_FORM
2021-12-19 00:27:50 +00:00
Shish
217a36a8c5
upload microhtml
2021-12-14 19:10:21 +00:00
Shish
3d9e32e919
new php-cs-fixer
2021-12-14 18:32:47 +00:00
Shish
77f7121e26
drop php7.3 support, make use of 7.4 features
2021-03-14 23:43:50 +00:00
Shish
8d478b9c39
refer to user
2021-02-26 23:56:50 +00:00
Shish
e88ca1fb05
Nicer upload error messages
2021-02-26 23:54:53 +00:00
Matthew Barbour
72268d529d
Moved user options to separate page, modularized the settings page code so that it can be re-used to simplify and standardize user settings in the same manner as global settings
2021-01-16 14:26:17 -06:00
Shish
8a58ede5b3
remove some dead code
2020-10-29 01:28:46 +00:00
Shish
b9e1ce1b8d
use the right link
2020-10-28 20:53:20 +00:00
Shish
3f5930b4cb
simplify and add tests for upload (and replace) path
2020-10-28 20:51:34 +00:00
Shish
7cb18568e3
During uploads (including replacements), 'data' should be an array of files, fixes #735
2020-10-28 17:06:25 +00:00
Matthew Barbour
3aa1926f72
Image to Post - upload
2020-10-26 10:53:03 -05: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
a51cab58aa
make sure extension is not-null for transloads
2020-10-14 16:07:12 +00:00
Matthew Barbour
688fb8b04b
Added ability to upload multiple files through a single upload input
2020-06-25 00:42:43 +01:00
Matthew Barbour
984c9702ec
The great MIMEing
2020-06-25 00:42:34 +01:00
Matthew Barbour
95ef714447
Changed metadata truncation to reflect new filename column length
2020-06-24 17:21:57 +01:00
Matthew Barbour
bd9808081e
Added false is_content flags to several blocks so that the 404 extension can work properly
2020-06-24 17:01:09 +01:00
Matthew Barbour
18cd74f57d
Changed a bunch of core extensions to be hidden since there's nothing to interact with
2020-06-22 18:02:47 +01:00
Matthew Barbour
5446f29141
improved filetype error handling
2020-06-03 20:01:08 +01:00
Matthew Barbour
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
Shish
1e76fb239e
s/fullrandom/dailyshuffle/, and run formatter
2020-05-13 13:03:49 +01:00
Shish
72645af9a4
refactor a bunch of weirdness in image replacement
2020-04-25 21:38:11 +01:00
Shish
dede46374f
avoid double-escape for upload collision error
2020-03-13 09:39:00 +00:00
Shish
1597eff082
lint fixing
2020-03-13 09:23:54 +00:00
Shish
d97f492aaf
format
2020-02-25 12:18:47 +00:00
Shish
85731ebf65
file-accept
2020-02-25 12:04:37 +00:00
Shish
674d3fc6fa
dedupe create_image_from_data
2020-02-23 18:19:27 +00:00
Shish
4e57e04ddf
fix a lot of tests
2020-01-29 20:22:50 +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
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
1e4f08e9e9
updates for phpunit 8
2019-11-21 17:16:11 +00:00
Shish
f79eafc91e
format
2019-11-04 00:42:06 +00:00
Shish
d17e207984
Have get_arg never return null
...
90% of places assume it will never return null, and they will break in
weird ways if it does return null
2019-11-04 00:40:10 +00:00
Shish
ac5546c6ef
remove more old comments
2019-11-03 16:22:59 +00:00
Shish
b568933f45
remove extension metadata comments (we have metadata objects now)
2019-11-02 20:19:09 +00:00
Shish
55c6854003
formatting
2019-11-02 19:57:34 +00:00
Matthew Barbour
016fb6be65
Small fixes and corrections
2019-11-01 23:47:53 -05:00
Matthew Barbour
702f098ea6
Added create_image permission check to upload menu code
2019-10-18 16:32:46 +01:00
Shish
e08cdb1638
make Cache its own thing, separate from Database
2019-10-02 10:49:32 +01:00
Shish
ce61b7dc40
truncate filenames to 64 chars at upload time
2019-09-30 18:05:35 +01:00
Shish
a6bb15d859
formatting
2019-09-29 14:30:55 +01:00
Matthew Barbour
de98e86938
ExtensionInfo conversions what have I done
2019-08-07 15:40:01 -05:00
Matthew Barbour
00464d2579
Implemented a nav link generating system so that extension power what shows up in the menus rather than being hard-coded in the themes.
2019-08-05 09:01:20 -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
826c623538
PageMode constants
2019-06-18 21:04:31 -05:00
Matthew Barbour
8950d27d64
Changed upload to detect unrecognized files so that it doesn't just blankly refresh when the type isn't handled
2019-06-14 13:01:49 -05:00
Shish
064b24ffc1
formatting pass
2019-06-14 13:47:50 +01:00
Matthew Barbour
a1512975b6
This should have been checked in with the header bytes change, provides the actual type detection
2019-06-12 17:51:15 -05:00
Matthew Barbour
97abeb5254
Added option to detect file type based on header bytes
2019-06-12 17:35:11 -05:00
Matthew Barbour
eb4292316d
Added webp upload and thumbnailing support
...
Bug fixes and consolidation of various thumbnail and resize functionality
Changed resize/rotate extensions to use replace image event
Added content-disposition header to image responses to provide a human-friendly filename when saving
Added more bulk thumbnail regeneration tools
Tweaks to bulk actions to correct totals when batching items
2019-06-09 14:14:04 -05: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
b91f20875a
put upload block on every page
2019-05-26 16:15:43 +01:00
Shish
65dc3898c0
common tags / common source fields
2019-04-26 10:15:32 +01:00
Shish
eb24fa0b21
tweaks
2019-02-02 12:05:59 +00:00
Shish
ead3a5a588
php7 assertions, no strings
2019-01-06 10:40:39 +00:00
Shish
c9d7bd1ae3
delete cached thumb blocks after replacing images
2018-06-20 03:08:40 +01:00
Shish
977c3db1e3
PHP7 type annotations
2017-09-21 05:21:42 +01:00
im-mi
08f1475007
Fixed bookmarklets on imageboards running gelbooru
2017-08-06 20:30:38 -04:00
im-mi
495776cac1
Fixed bookmarklet when logged in on imageboards running gelbooru
2017-03-23 20:46:30 -04:00
jgen
ebab9eddeb
Merge branch 'master' into merge-from-master
...
Conflicts:
ext/tag_list/theme.php
2017-03-11 00:52:16 -08:00
im-mi
d39b084537
Properly end attribute list of tag on upload form
2016-09-03 14:26:24 -04:00
im-mi
8fe9212882
Fixed assertion failure upon upload due to incorrect type check
2016-08-19 15:55:18 -04:00
im-mi
85a3cc0a7e
Fall back to file extension from path
2016-08-16 11:34:01 -04:00
im-mi
3323a50ea5
Made a few parts less site-specific
2016-08-16 11:32:34 -04:00
im-mi
adf723ad23
Fixed bookmarklet on Danbooru2
2016-08-16 11:30:34 -04:00
im-mi
91d609a4c6
Make back button go to page bookmarklet was executed on
2016-08-16 11:29:26 -04:00
im-mi
b10144492a
Added supported video file extensions to bookmarklet
2016-08-16 11:28:16 -04:00
im-mi
9ba6e3f7db
Remove trailing variables from image address
2016-08-16 11:27:22 -04:00
im-mi
8f974fba73
Fixed uploading scaled images from Gelbooru when logged in
2016-08-16 11:26:32 -04:00
im-mi
b24977e110
Fixed tag corruption bug
...
If there was no newline at the end of the input, then the last tag would get corrupted.
2016-08-16 11:25:04 -04:00
Shish
26b2cd5c16
derp
2016-07-30 23:06:42 +01:00
Shish
bed04a1230
assert that metadata['tags'] is an array
2016-07-30 23:02:14 +01:00
Shish
ffce1a4683
more hinting
2016-07-30 22:54:42 +01:00
Shish
b81e8a2db8
also explode tags on transload input
2016-07-30 22:45:44 +01:00
Daku
b9893cbbda
$_POST["tags"] isn't always set
2016-06-18 06:27:41 +01:00
Shish
1ac88e8923
more comments
2015-09-27 12:38:48 +01:00
Shish
8c1e3bc92a
mark tests as public
2015-09-26 11:17:13 +01:00
Shish
c54e336695
mark tests as incomplete rather than commenting them out
2015-09-24 23:16:38 +01:00
Shish
7bfc959547
upload tests
2015-09-20 20:28:27 +01:00
Shish
90cd823ece
fix liveness testing, and comments tests
2015-09-20 20:05:06 +01:00
Shish
9af5995dcc
PHPUnit proof of concept
2015-09-20 20:03:29 +01:00
Shish
ffc636515f
remove dead code
2015-09-20 20:02:34 +01:00
Shish
35a4f385b3
phpstorm tidying
2015-09-12 11:43:28 +01:00
Shish
e5e7f891e2
scrutinizer suggestions
2015-07-21 01:20:53 +01:00