Commit graph

347 commits

Author SHA1 Message Date
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
Shish
67e0c87b20 create a generic bool_escape function, use that 2011-12-25 15:11:26 +00:00
Shish
d167849ffc huge if block is correct, but unnecessary - we can just take the first letter and the even system will validate it 2011-12-25 14:47:54 +00:00
Daku
394f4518a3 More improvements to the uploader. 2011-12-24 23:28:33 +00:00
Daku
ee1fc7e3ae Admin can now lock image while transloading. 2011-12-24 20:18:00 +00:00
Daku
42b902ecb5 Bookmarklet should now grab the rating, aswell as the image page link for source. 2011-12-23 21:28:47 +00:00
Daku
cd11e75e40 Can now set rating/external source while uploading via the bookmarklets. 2011-12-23 21:27:38 +00:00
Daku
9a2d694b6a Made the replace form look similar to the new upload form. 2011-12-21 02:40:30 +00:00
Daku
c125c4ba92 Making the upload form look a bit nicer. 2011-12-19 01:43:46 +00:00
Daku
583de3fe6a Small update to include the code by green-ponies in issue #51. 2011-12-14 07:53:48 +00:00
Daku
2b717063eb Updated the bookmarklet to give you an option to use either the your own or the current tags. 2011-12-14 07:36:01 +00:00
Daku
ac9e1c73cf Adding a simple Danbooru>Shimmie bookmarklet. 2011-12-11 06:13:00 +00:00
green-ponies (jgen)
7bfe30e0c5 Patch for displaying error message when disk full. 2011-11-04 01:00:45 -04:00
green-ponies (jgen)
12a480ed8b Fixed small bug with transloading images. (If clean_urls were not enabled) 2011-11-03 16:55:04 -04:00
green-ponies (jgen)
c30c898c4e Changing files to use the $page->add_http_header() method instead. 2011-09-04 14:06:50 -04:00
green-ponies (jgen)
bf035c247d Slight changes to how the Replace & Resize forms are displayed. 2011-09-04 13:46:12 -04:00
green-ponies (jgen)
8422e0050a Another small change to reduce PHP notices. 2011-09-04 11:52:34 -04:00
green-ponies (jgen)
be6e6e2933 Small change to reduce PHP notice. 2011-09-04 11:41:25 -04:00
green-ponies (jgen)
100dd6438e Added more comments and changed others for better doxygen support. 2011-09-03 19:34:46 -04:00
Shish
309a2f497f only admins should replace images (possibly people should be allowed to replace their own too? I'm erring on the side of caution for now though) 2011-09-01 00:36:38 +01:00
green-ponies (jgen)
c44ed439f8 Extra checking for the user being an admin before allowing image replacement.
Also removed some duplicated code for efficiency.
2011-08-30 13:57:14 -04:00
green-ponies (jgen)
17999cade8 Image Replace feature working, just needs more testing. 2011-08-25 21:35:59 -04:00
green-ponies (jgen)
b02c747ac1 Working on image replace.
Getting unknown 404 errors.
2011-08-24 23:55:44 -04:00
green-ponies (jgen)
62cc7e0e5e Working on Replace Image feature.
Added link to page, fixed foreach loop.
2011-08-24 21:23:18 -04:00
green-ponies (jgen)
f3b6fde7a5 Working on adding a "Replace Image" feature. 2011-08-24 20:53:53 -04:00
green-ponies (jgen)
e9b862b560 Better error checking when uploading files.
Also, displays PHPs limit on the setup page.
2011-08-16 16:31:23 -04:00
green-ponies (jgen)
6c3e91e01c changed script tags to include language 2011-08-12 21:40:51 -04:00
Shish
141e8fa106 remove the list of acceptable filetypes, as we accept more than just image/* now 2011-01-10 16:39:46 +00:00
Shish
1c68d34c22 what the fuck, php? this should not be necessary :/ 2010-10-11 12:21:04 +01:00
Shish
dfef932463 use config.php as CSRF salt 2010-10-07 21:26:28 +01:00
Shish
1e04df7765 <form> -> make_form(), or add auth token manually 2010-10-07 21:26:27 +01:00
Shish
9bd19fe320 curl might not be installed 2010-07-26 22:48:15 +01:00
Shish
f6486d332d hide disk_free_space errors 2010-06-27 17:32:08 +01:00
Shish
e731b59676 final one? 2010-05-15 14:24:02 +01:00
Shish
26727dde64 these are redundant too 2010-05-15 14:22:44 +01:00
Shish
c94e16f814 selectfirst is annoying 2010-04-28 11:21:02 +01:00
Shish
c8b7d639df a bunch of autocompletion 2010-04-26 06:00:41 +01:00
Josh Sutinen
a8e7389afe Fix bookmarklet using relative url into absolute url with make_http magic 2010-03-29 03:58:32 +01:00
Shish
4df08e9477 more sanity checks 2010-02-01 23:30:37 +00:00
Shish
7a60e6fae5 lots of extension docs 2010-01-05 10:11:53 +00:00
Shish
7db5a2808a noscript link to a larger upload form 2009-10-26 12:08:54 +00:00
Shish
9a3efd592a more testes 2009-09-20 04:10:34 +01:00
Shish
1946e3c943 consistent naming for test functions 2009-08-19 01:28:48 +01:00
Shish
4abf2ac7dd more tests 2009-07-16 20:21:28 +01:00
Shish
028ee4b462 more tests 2009-07-15 17:10:19 +01:00
Shish
c88ecebb7b A ton of tests, figured out how to test uploads \o/ 2009-07-15 02:43:14 +01:00
Shish Moom
e0d72d5795 get rid of shimmie's JS lib, use jquery 2009-07-07 07:40:59 -07:00
Shish
bb84a735a2 requestcontext stuff is messy, go back to globals :( 2009-05-11 07:04:33 -07:00
Shish
bb752d6fd1 tag_explode -> Tag::explode 2009-01-24 11:05:29 -08:00
Shish
0db255d76d welcome to the future 2009-01-22 02:36:12 -08:00
Shish
8a1c51e46f specify exact column widths, for the benefit of crap browsers (ie, IE) 2009-01-13 22:07:12 -08:00
Shish
eeda4d6ab3 very classy 2009-01-04 11:54:16 -08:00
Shish
11873e9601 remove EOL whitespace 2009-01-04 11:18:37 -08:00
Shish
1c8094cabf replace the veto system with exceptions 2009-01-04 06:01:59 -08:00
Shish
bca8221609 move extension-specific events into their extensions 2009-01-03 13:00:09 -08:00
Shish
fd9443cf84 human readable error when file too large 2008-12-15 14:55:56 -08:00
shish
721c720f19 denied.
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1097 7f39781d-f577-437e-ae19-be835c7a54ca
2008-10-18 10:49:16 +00:00
shish
f093eece2f how has this gone so long without being included o_O;;;
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1093 7f39781d-f577-437e-ae19-be835c7a54ca
2008-10-18 06:40:34 +00:00
shish
96a37605e4 port page_matches from score to trunk
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1028 7f39781d-f577-437e-ae19-be835c7a54ca
2008-09-06 17:48:03 +00:00
shish
f8f7470e61 much friendlier get_theme_object
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1019 7f39781d-f577-437e-ae19-be835c7a54ca
2008-09-06 16:59:02 +00:00
shish
af3cbba180 realpath() should make things work better on windows
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1009 7f39781d-f577-437e-ae19-be835c7a54ca
2008-09-01 12:54:58 +00:00
shish
434fab2dc5 and make the extensions match
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1003 7f39781d-f577-437e-ae19-be835c7a54ca
2008-08-23 12:08:19 +00:00
shish
09b2be6830 PHP4 is dead \o/ \o/ \o/ (Part 1, make use of instanceof)
git-svn-id: file:///home/shish/svn/shimmie2/trunk@994 7f39781d-f577-437e-ae19-be835c7a54ca
2008-08-22 09:41:30 +00:00
shish
14dc15c7bd disk full warnings
git-svn-id: file:///home/shish/svn/shimmie2/trunk@921 7f39781d-f577-437e-ae19-be835c7a54ca
2008-07-24 07:50:31 +00:00
shish
3a2538ad96 fix error messages for failed trasload
git-svn-id: file:///home/shish/svn/shimmie2/trunk@789 7f39781d-f577-437e-ae19-be835c7a54ca
2008-04-08 21:55:07 +00:00
shish
c5349db306 check file size properly
git-svn-id: file:///home/shish/svn/shimmie2/trunk@725 7f39781d-f577-437e-ae19-be835c7a54ca
2008-03-02 16:31:35 +00:00
shish
c2d9f39e7e bookmarklet for direct transload
git-svn-id: file:///home/shish/svn/shimmie2/trunk@686 7f39781d-f577-437e-ae19-be835c7a54ca
2008-01-03 00:05:53 +00:00
shish
8ceac6ee19 fix transload in 2.2
git-svn-id: file:///home/shish/svn/shimmie2/trunk@685 7f39781d-f577-437e-ae19-be835c7a54ca
2008-01-03 00:05:11 +00:00
shish
7ae38e9ef6 check for javascript returning null
git-svn-id: file:///home/shish/svn/shimmie2/trunk@684 7f39781d-f577-437e-ae19-be835c7a54ca
2008-01-02 23:45:00 +00:00
shish
cecbfea5aa direct transload
git-svn-id: file:///home/shish/svn/shimmie2/trunk@683 7f39781d-f577-437e-ae19-be835c7a54ca
2008-01-02 23:20:20 +00:00
shish
b632c92d25 wget option for transloading
git-svn-id: file:///home/shish/svn/shimmie2/trunk@682 7f39781d-f577-437e-ae19-be835c7a54ca
2008-01-02 23:12:39 +00:00
shish
a5a6f4781c generic file handler support :)
git-svn-id: file:///home/shish/svn/shimmie2/trunk@623 7f39781d-f577-437e-ae19-be835c7a54ca
2007-12-06 02:26:34 +00:00
shish
7a936d41cf set curl user agent and referrer
git-svn-id: file:///home/shish/svn/shimmie2/trunk@502 7f39781d-f577-437e-ae19-be835c7a54ca
2007-09-29 22:48:33 +00:00
shish
88336cc323 less global user, more event->user
git-svn-id: file:///home/shish/svn/shimmie2/trunk@478 7f39781d-f577-437e-ae19-be835c7a54ca
2007-08-24 22:29:34 +00:00
shish
862e647365 theme engine 2.1
git-svn-id: file:///home/shish/svn/shimmie2/trunk@466 7f39781d-f577-437e-ae19-be835c7a54ca
2007-08-23 11:14:03 +00:00
shish
4d626b59e5 shorthand ints for display~
git-svn-id: file:///home/shish/svn/shimmie2/trunk@431 7f39781d-f577-437e-ae19-be835c7a54ca
2007-08-06 18:37:12 +00:00
shish
15ee93bf9b make sure source is something sensible
git-svn-id: file:///home/shish/svn/shimmie2/trunk@421 7f39781d-f577-437e-ae19-be835c7a54ca
2007-08-02 20:38:46 +00:00
shish
19ef368480 hide 404 error, we'll deal with it elsewhere
git-svn-id: file:///home/shish/svn/shimmie2/trunk@411 7f39781d-f577-437e-ae19-be835c7a54ca
2007-08-01 16:26:56 +00:00
shish
8552727d52 message
git-svn-id: file:///home/shish/svn/shimmie2/trunk@378 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-26 15:44:27 +00:00
shish
eddfaeb59b hide the PHP error, we'll deal with it ourselves
git-svn-id: file:///home/shish/svn/shimmie2/trunk@377 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-26 15:42:40 +00:00
shish
25a355a51a upload should go to post/list
git-svn-id: file:///home/shish/svn/shimmie2/trunk@366 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-26 11:45:23 +00:00
shish
101bbeecee check for no data during transload
git-svn-id: file:///home/shish/svn/shimmie2/trunk@363 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-24 13:04:47 +00:00
shish
f948ae8720 if source is empty, set it to null in the database
git-svn-id: file:///home/shish/svn/shimmie2/trunk@353 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-23 00:30:44 +00:00
shish
bfc76da943 and another
git-svn-id: file:///home/shish/svn/shimmie2/trunk@344 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-20 12:19:01 +00:00
shish
f75af6a908 fixes
git-svn-id: file:///home/shish/svn/shimmie2/trunk@342 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-20 09:34:31 +00:00
shish
16df65cf35 assign the file pointer to something
git-svn-id: file:///home/shish/svn/shimmie2/trunk@341 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-19 22:18:50 +00:00
shish
0fe7ee9f07 \o/ Transload \o/
git-svn-id: file:///home/shish/svn/shimmie2/trunk@337 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-19 17:47:07 +00:00
shish
43ff2c2569 use to_shorthand_int
git-svn-id: file:///home/shish/svn/shimmie2/trunk@331 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-19 12:54:49 +00:00
shish
73c437758a news, upload, comment, and tag_list now respond to PostListBuildingEvents rather than PageRequestEvent(index)
git-svn-id: file:///home/shish/svn/shimmie2/trunk@318 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-17 18:07:18 +00:00
shish
0c5f7244db consistency
git-svn-id: file:///home/shish/svn/shimmie2/trunk@312 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-17 07:45:35 +00:00
shish
da30c88776 more set_default
git-svn-id: file:///home/shish/svn/shimmie2/trunk@293 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-16 13:15:56 +00:00
shish
cbb09958c4 more $page-ry
git-svn-id: file:///home/shish/svn/shimmie2/trunk@271 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-12 08:57:29 +00:00
shish
a9908508d0 veto API
git-svn-id: file:///home/shish/svn/shimmie2/trunk@269 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-12 08:39:13 +00:00
shish
5a4d6f7277 remove ConfigSaveEvent handlers
git-svn-id: file:///home/shish/svn/shimmie2/trunk@265 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-12 08:14:37 +00:00
shish
a46fcb8463 allow parts of the upload process to say 'no, not ok!'
git-svn-id: file:///home/shish/svn/shimmie2/trunk@234 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-06 06:41:13 +00:00
shish
a625fcd787 the bulk of theme engine 2.0; it's still rough, but it works
git-svn-id: file:///home/shish/svn/shimmie2/trunk@201 7f39781d-f577-437e-ae19-be835c7a54ca
2007-06-30 01:19:11 +00:00
shish
2c0264095b upload is better now
git-svn-id: file:///home/shish/svn/shimmie2/trunk@150 7f39781d-f577-437e-ae19-be835c7a54ca
2007-06-01 22:11:53 +00:00
shish
a23966c90c upload doesn't need to be in core
git-svn-id: file:///home/shish/svn/shimmie2/trunk@149 7f39781d-f577-437e-ae19-be835c7a54ca
2007-06-01 21:51:07 +00:00