Commit graph

347 commits

Author SHA1 Message Date
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
jgen
4bf56364eb Missed one use of $headers. Was used in only one other place. Also, change the function so that if anyone else uses it in the future it doesn't throw warnings. 2015-06-01 17:57:34 -07:00
jgen
56b9117a20 Merge branch 'master' into develop 2015-05-31 22:43:49 -07:00
jgen
edc9e07919 Only examine the headers if we actually have them. 2015-05-31 21:39:22 -07:00
Daku
8c2d8df81d use html5 input types
we would use type='url' for source but non-urls can be used as source too
2015-04-18 10:39:34 +01:00
Daku
7166259cc5 autocomplete='off' for tag input
this disables autocomplete/captilize on "most" mobile keyboards
autocompletejs still works with this off
2015-04-18 10:39:22 +01:00
Shish
40734ef711 turn MIN_FREE_SPACE into a userspace config option 2014-12-07 13:54:47 +00:00
Daku
36713803e3 Merge pull request #418 from jgen/develop
Even more linting and cleaning!
2014-05-23 23:24:32 +01:00
Daku
64e2565236 check for lowercase header if camelcase header doesn't exist
fixes #423
2014-05-19 07:32:16 +01:00
jgen
b3f9925839 PHPDoc all the things! 2014-04-28 18:22:57 -04:00
jgen
e37c5cb9d0 More linting! 2014-04-28 02:23:45 -04:00
jgen
022c162f40 More linting and fixing of comments and PHP Doc, types, etc. 2014-04-28 01:26:22 -04:00
jgen
8a2eb4b121 Fixing more PHP Doc related issues. 2014-04-27 19:29:36 -04:00
jgen
4f51e942be Updating/Fixing/Adding more comments with the PHP Doc style. 2014-04-27 15:33:57 -04:00
jgen
6e4ae229ef Explicitly declare this class variable 2014-04-24 19:13:41 -04:00
jgen
4cc31df737 Update the comments to PHPDoc style guidelines. 2014-04-24 19:02:43 -04:00
jgen
ab3f9850e4 Removing the closing PHP "?>" tag as per style guidelines. 2014-04-24 19:01:47 -04:00
jgen
51c145d5c9 Some more linting on the bookmarklet.js file. 2014-04-24 01:08:47 -04:00
jgen
887f963e17 Add the jshint comment to alter how scrutinzer-ci deals with the js. 2014-04-23 23:38:53 -04:00
Shish
75c3d8e453 Merge pull request #409 from jgen/linting
Linting
2014-04-20 00:29:53 +01:00
jgen
bdf49b33cb Some more linting thanks to scrutinizer-ci 2014-04-19 01:18:49 -04:00
Shish
7a95325a5f Merge pull request #388 from DakuTree/patch
Fixes issues 233 & 234.
2014-03-26 10:41:31 +00:00
Daku
7837362711 make sure source is still used if provided 2014-03-26 08:26:21 +00:00
Shish
7b68d8ebfd use new-style constructors everywhere 2014-03-22 09:00:59 +00:00
Daku
76526f371c Add option to use transloaded URL as source
fixes #234
2014-03-14 16:54:14 +00:00
Daku
9cae856df7 use the Content-Disposition header for filename & Content-Type for
extension
if either doesn't exist, it will fallback to using pathinfo
2014-01-13 08:19:01 +00:00
Daku
453d9a453b bookmarklet now supports danbooru2 + fixed issues with other sites 2013-12-08 15:05:27 +00:00
jgen
9d8bcbce37 Fixed bookmarklet.js to allow uploading from Gelbooru. (was broken before) 2013-11-24 14:54:10 -05:00
HungryFeline
17efb92b4e Update main.php 2013-07-07 09:13:14 +02:00
HungryFeline
71117cf8fa Look for the source in _GET and not in _POST when uploading via _GET 2013-07-02 04:35:18 +02:00
Shish
c8b12a0459 update comment 2013-06-15 19:57:15 +01:00
Shish
e7ddd2960b use upload_tmp_dir as temp place for transloading, see #297 2013-06-15 19:54:00 +01:00
Shish
0ae4ef4110 get source from POST[source], if set 2012-10-15 20:21:09 +01:00
Shish
7dd929e5a8 remove a whole load of event->user variables that weren't used -- things should be using global user 2012-08-18 19:45:39 +01:00
Shish
0a73424679 Merge branch 'master' of github.com:shish/shimmie2 2012-07-28 11:12:40 +01:00
Shish
ee52d582c4 image replacing simplicity 2012-07-28 11:12:05 +01:00
Shish
a9bfd1bcdc break 2012-07-24 20:38:10 +01:00
Shish
8b83b90b53 make tags required in the HTML form 2012-06-27 11:13:36 +01:00
Shish
a3d77c6f42 firefox ignores file upload width attribute :| 2012-06-26 19:38:22 +01:00
Shish
bfd4ddea17 check for classes being loaded, not files existing 2012-05-23 10:39:21 +01:00
Shish
2d451224dd only one of tags/image-specific-tags needs filling 2012-05-22 12:14:46 +01:00
Shish
bca3dd919d upload_anon bool -> create_image perm 2012-03-19 12:59:02 +00:00
Shish
1a34557da7 if image replacement is unwanted, don't allow users to replace images 2012-03-19 11:07:13 +00:00
Shish
6632521218 permission name tweaks 2012-03-14 19:24:10 +00:00
Shish
028457ec32 parsing 2012-03-13 07:34:39 +00:00
Shish
1f07a273f6 move copy & pasted transload code into a shared function 2012-03-09 21:07:21 +00:00
Shish
285b78c185 image specific tags on mass upload form 2012-03-08 03:34:57 +00:00
Shish
232991979c upload page wibbling 2012-03-06 15:38:53 +00:00
Shish
24c64b50b4 make bookmarlet code more readable 2012-03-06 12:22:08 +00:00
Shish
b17fe7e7bd make bookmarklet.js easier to read 2012-03-05 09:52:48 +00:00
Daku
e5e27a7804 bookmarklet should now play nice with tags that contain + 2012-03-04 22:18:03 +00:00
Shish
af7704825b use HTTP status codes with error messages 2012-02-16 15:37:05 +00:00
Shish
c2bf42ef5a less passing of $page 2012-02-15 08:59:24 +00:00
Shish
519e46578d more notation for which strings are HTML safe and which aren't 2012-02-13 20:51:34 +00:00
Shish
7ab867cc79 remove the extra </div> 2012-02-12 12:40:07 +00:00
Shish
2da52689cf upload box style 2012-02-12 12:00:19 +00:00
Shish
1dcda150f7 nicer whitespace for upload settings 2012-02-12 07:30:29 +00:00
green-ponies (jgen)
a95766c410 More type hints. 2012-02-10 00:08:03 -05:00
Shish
339f2b0497 more jquery magic, less inline scripting 2012-02-09 14:45:18 +00:00
Shish
3584f40551 Merge branch 'master' of github.com:shish/shimmie2 2012-02-09 01:07:21 +00:00
Shish
0698b780f9 remove regular Extension, have SimpleExtension take its place, optimise the event system based on SimpleExtension methods 2012-02-08 12:07:01 +00:00
Shish Moom
3b99605521 Merge pull request #116 from green-ponies/speed_tweaks
More Speed tweaks
2012-02-07 21:53:00 -08:00
Shish Moom
1b5f1dcafb Merge pull request #107 from DakuTree/master
Reset Image ids & Download all images
2012-02-07 20:32:28 -08:00
green-ponies (jgen)
d69fa6ae9d Merge branch 'master' into speed_tweaks 2012-02-07 23:21:56 -05:00
green-ponies (jgen)
0cdc303397 Just more comments. 2012-02-07 20:25:05 -05:00
Shish
0589f9d72e fine grained permission bits 2012-02-07 15:15:18 +00:00
Daku
e92d4f6809 fixes gelbooru with bookmarklet 2012-02-07 00:02:53 +00:00
Daku
94d2f99df2 this should fix bookmarklet not working with nice urls 2012-02-07 00:02:51 +00:00
Daku
9efce5378c small fix for bookmarklet image url 2012-02-07 00:02:50 +00:00
Daku
6e602aa430 forgot to remove this... 2012-02-07 00:02:50 +00:00
Daku
1f871a69e1 fixing flash again :x 2012-02-07 00:02:49 +00:00
Daku
a25f405470 bookmarklet now supports sankaku and konachan 2012-02-07 00:02:49 +00:00
Daku
26b688fe9b bookmarklet now supports oreno.imouto 2012-02-07 00:02:48 +00:00
green-ponies (jgen)
3b028696a0 Rewind arrays before foreach loops over all the elements.
(fixed a small typo as well)
2012-02-04 15:35:21 -05:00
green-ponies (jgen)
68e9bd694e Storing copies of config variables outside of for loops. 2012-02-04 14:17:52 -05:00
green-ponies (jgen)
0a1e8f2af4 Store config values that are used inside a loop. 2012-02-04 12:20:49 -05:00
Shish
dab85e5f26 merge type hints 2012-02-02 14:16:14 +00:00
Shish
cc8f1f35a5 more type hints 2012-02-02 14:14:33 +00:00
Shish
dc6c173efd type hints for hiphop 2012-02-02 08:07:57 +00:00
Shish
aed5e1a30e hand merge of speed tweaks 2012-01-31 13:20:43 +00:00
Shish
21904794ea Upload to simpleext 2012-01-27 17:12:08 +00:00
Shish
cb1b45e4ad code formatting consistency 2012-01-27 17:05:02 +00:00
Daku
eeaa27133a fixed rating with bookmarklet 2012-01-20 12:45:43 +00:00
Daku
471e3d057a fixed bookmarklet on danbooru flash pages again.. 2012-01-20 12:45:42 +00:00
Daku
9a35401666 image replace form now uses jquery 2012-01-20 12:45:40 +00:00
Daku
79b4adf1d1 renamed style.css for the upload ext to avoid autoloading 2012-01-20 12:45:38 +00:00
Daku
a336944b11 uploader fixes 2012-01-17 10:56:52 +00:00
Daku
a45c09b2b6 Bookmarklet now checks if ext is supported/filesize is lower than limit before attempting to upload. 2012-01-17 07:57:58 +00:00
Daku
433197e187 Bookmarklet seems to work fine with Gelbooru now... 2012-01-17 04:57:14 +00:00
Daku
9f5465c0e5 Bookmarklet now asks if you want to use current/new tags again. 2012-01-17 04:28:45 +00:00
Daku
fcb8307f58 Booru bookmarklet now works with shimmie sites + is now loaded via .js script on the site. 2012-01-17 04:03:32 +00:00
Daku
7759700160 fixes tag_edit__locked/locked errors 2012-01-17 03:58:28 +00:00
Shish
7045b21b44 uploader javascript fixes from jgen (copy & paste is easier than fixing merge conflicts >.>;;) 2012-01-16 21:10:51 +00:00
green-ponies (jgen)
fdca5e4662 Patch for displaying error message when disk full. 2012-01-16 20:52:26 +00:00
green-ponies (jgen)
cd7de93a0a Changing for-loops to use pre-calculated values.
Rather than calculating the value each time.
2012-01-16 00:07:04 -05:00
green-ponies (jgen)
0b03f91f1c Fixed the new upload form.
Changed it over to use jQuery since shimmie has that already.
Works with FF, Chrome, and IE 7 now.
2012-01-09 20:45:30 -05:00
green-ponies (jgen)
dcf96456f1 Fixed issue with Cancelling Transloads.
Also added some features to the Bookmarklet.
2012-01-08 16:50:35 -05:00
green-ponies (jgen)
57da47c93a using the new uploader 2012-01-08 13:36:39 -05:00
green-ponies (jgen)
f93b86261e Small feature for uploading using a bookmark. 2012-01-08 13:23:39 -05:00
Daku
d9e1b935b0 +/- buttons should now work in FF, instead of directing you to blank page 2011-12-31 14:18:51 +00:00
Daku
c2ad8322ef fixed downloading flash with bookmarklet + added comments 2011-12-31 14:18:50 +00:00