Commit graph

910 commits

Author SHA1 Message Date
Daku
0565568e5c source should log now when uploading 2012-01-26 09:56:29 +00:00
Shish
f38b45e2a9 there are some odd cases where anonymous is not user #1, so use the anon_id variable 2012-01-24 16:40:36 +00:00
NaGeL
ddd3f99835 deleting the user withouth images delete resulted in image deletion too: the DB entriy gets removed but the image stays on the Hard drive.
this is fixed.
also the Foreign key needs to be manually updated in images table.
named the foreign keys in install.php for easier altering in the future.
2012-01-22 20:14:35 +01:00
NaGeL
023384149f User deletion (Deletes the user with comments, favorites and private messages)
User deletion with uploaded images ( all above plus the images the user uploaded)
Also the Database fix that is all needed for this in DBupdate.php
2012-01-22 18:55:52 +01:00
NaGeL
1ccc26ebd4 Merge branch 'master' of git://github.com/shish/shimmie2 2012-01-22 16:30:12 +01:00
Shish
03204859c1 merge~ 2012-01-22 15:11:39 +00:00
Shish
ddf61714f6 argh sql syntaxes 2012-01-22 14:54:03 +00:00
Daku
3338ff0420 tags/source/rating/locked should only update/log if different than current 2012-01-21 00:17:07 +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
Shish
f5edb4fb4e the 24 hour limit can apply to the page count too, making that also 70x faster 2012-01-20 05:24:29 +00:00
Shish
4c2adce744 limiting by date at the database level is ~70x faster than limiting by page at the PHP level 2012-01-20 04:34:06 +00:00
Shish
f100e6a9d4 5 may have been a little extreme 2012-01-20 04:05:54 +00:00
Shish
49e7bfa1b2 tidy up some ancient base_href / data_href messes; base_href as a config variable is no longer used 2012-01-20 03:29:29 +00:00
Shish
36e443e07d the algorithm for listing old comments pages is *really* inefficient; the first few pages are quick, page 100 can take a few seconds to generate... rule34 has over 100,000 pages of comments. Limit to the first few pages for now, as I don't know anyone who even goes past the front page. 2012-01-20 03:12:48 +00:00
NaGeL
8eaaa6a7ca Added user deletion.
User is deleted from database
the Comments are deleted too, unknown reason for me
Noting else is deleted so far.
2012-01-19 18:23:43 +01:00
NaGeL
557a82e7be Fixed linking bug in admin_user/list page. 2012-01-19 16:43:20 +01:00
Shish
8ba22d8fbc same for user-agent 2012-01-19 15:28:55 +00:00
Shish
b8bdbd3533 after detecting an error, don't carry on processing the bad data... 2012-01-19 15:23:44 +00:00
Shish
7608107232 lib/askismet expects the referrer to either be set manually, or exist; if it doesn't exist we need to set it manually 2012-01-19 15:20:32 +00:00
Shish
a75d8744c9 Merge branch 'master' of github.com:shish/shimmie2 2012-01-18 18:00:10 +00:00
NaGeL
b52651c558 added [align=(left|center|right)] BBcode which aligns text naturally. 2012-01-18 17:49:29 +00:00
Shish
bdf274074c some people like heading to the image after an image that isn't there (mostly robots with old URLs) 2012-01-18 03:13:27 +00:00
NaGeL
3c6217fa4c added [align=(left|center|right)] BBcode which aligns text naturally. 2012-01-17 22:45:24 +01: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
Shish
6ca81cb636 Merge branch 'master' of github.com:shish/shimmie2 2012-01-16 20:59:00 +00:00
green-ponies (jgen)
d46244f926 Display message if no comments. 2012-01-16 20:54:34 +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)
8252534cff Small changes with quotes. 2012-01-15 23:03:27 -05:00
Shish
9d36a6a1bb sometimes when looking for next/prev the image doesn't exist 2012-01-14 14:38:45 +00:00
Thasan
aa452bf8eb Added $force to vars 2012-01-14 11:15:13 +02:00
green-ponies (jgen)
2c6b5128c6 More tweaks for minor speed gains. 2012-01-12 21:17:37 -05:00
green-ponies (jgen)
fc12bbbfe5 More small changes to help save a few microseconds. 2012-01-12 15:46:34 -05:00
Thasan
cd34879cf1 oops, forgot debug code 2012-01-12 03:59:58 +02:00
Thasan
9f8a49483f check if thumbnail already exists before regenerating it, way to force regen. 2012-01-12 03:54:27 +02: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)
f7fc253075 Display message if no comments. 2012-01-08 22:18:17 -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
Shish
5b717870d1 case sensitivity blargh 2012-01-01 17:13:50 +00:00
Shish
0c96603861 Merge branch 'master' of git@github.com:shish/shimmie2 2012-01-01 16:58:01 +00:00
Shish
beff330a37 Merge branch 'master' of github.com:shish/shimmie2 2012-01-01 16:54:58 +00:00
Shish
56a780bfd3 in per-letter mode, don't separate a and A 2012-01-01 16:54:44 +00:00
Shish
c39697a40f stub for comment time-ago 2011-12-31 14:21:02 +00:00
Daku
b9bd4db41e Tag list should now show under the search block, instead of under every other block 2011-12-31 14:18:53 +00:00
Daku
12d4fcf813 related block should now change title depending on what tag list is set to 2011-12-31 14:18:52 +00: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
ad2bb8b8b6 switch timeago to a javascript implementation 2011-12-31 14:12:34 +00:00
Shish
e8791d0759 Merge branch 'master' of git@github.com:shish/shimmie2 2011-12-31 13:57:56 +00:00
Shish
1857075bd9 show comments made by user 2011-12-31 13:54:32 +00:00
Shish
77b4bd8d46 Merge branch 'master' of git@github.com:shish/shimmie2 2011-12-27 19:27:05 +00:00
Shish
cfbeddde9f HTTP level caching, so we can stick varnish in front of the web pages 2011-12-27 19:23:37 +00:00
Shish
009b7ccbbb stick the tag list paging option in the right place, and PDO/PG compat 2011-12-25 23:14:13 +00:00
Shish
082730f29a get the tag initials from the database itself 2011-12-25 22:34:20 +00:00
Shish
8887ffe101 make paging optional 2011-12-25 18:23:00 +00:00
Shish
e05d4619db Also I hate PHP on a personal level. 2011-12-25 17:07:55 +00:00
Shish
e9fedb570a PHP is shit. MySQL is also shit. 2011-12-25 16:59:13 +00:00
Shish
b57a2d2121 paged tag lists backend, and speed hax 2011-12-25 16:42:05 +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
Shish Moom
d25ef4e6f6 Merge pull request #63 from DakuTree/master
Few new features + More fixes
2011-12-25 06:31:36 -08:00
Shish
ba02e589b0 IP isn't an int 2011-12-25 12:38:07 +00:00
Shish
070aeff199 search images by uploader IP 2011-12-25 12:31:28 +00:00
Daku
394f4518a3 More improvements to the uploader. 2011-12-24 23:28:33 +00:00
Shish
b5f5c861c4 quality in imagemagick mode 2011-12-24 21:30:54 +00:00
Daku
ee1fc7e3ae Admin can now lock image while transloading. 2011-12-24 20:18:00 +00:00
Shish
5121e99dbe speed hax and niceurl forcing from r34 2011-12-24 14:49:55 +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
c37569f3d4 Fixed reCaptcha. 2011-12-21 02:28:39 +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
0e4f93a42f Added a separate option for popular tags length. 2011-12-14 06:45:35 +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
Shish
8cb95ceb98 also allow https sources 2011-10-25 16:17:44 +01:00
green-ponies (jgen)
589f218d1f Small changes to disable the checkboxes by default. 2011-10-06 15:31:56 -04:00
green-ponies (jgen)
bba4301bfa Disabled option for Minifying CSS and JavaScript. (not currently supported) 2011-10-06 15:23:49 -04:00
green-ponies (jgen)
c1df2653a8 Cleaned up the comments a bit. 2011-09-25 14:16:20 -04:00
green-ponies (jgen)
944f3bdf3d Fixed caching from not outputing JS if only CSS is enabled. 2011-09-25 14:00:56 -04:00
green-ponies (jgen)
97d137f365 Working on Automatic Caching feature for CSS and JS files.
Added config options to main Shimmie config.
2011-09-25 13:40:34 -04:00
green-ponies (jgen)
808e477f34 Admins can configure the browser Image Expiration now.
Also renamed the config option for jQuery image delete.
2011-09-05 14:47:30 -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)
bd31bcd79a The page class now supports both HTML headers and HTTP headers.
From the comment:
FIXME: should be $page->blah
2011-09-04 14:06:44 -04:00
green-ponies (jgen)
fca286913e Working on moving header() inside of the global $page data structure. 2011-09-04 14:06:34 -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)
d05344d5e3 Image resize is working now! (uses the GD library only for now)
Moved resize into contrib folder.
2011-09-04 11:17:14 -04:00
green-ponies (jgen)
ad850ad0d6 Fixed a small typo. 2011-09-04 10:30:20 -04:00
green-ponies (jgen)
14bfa8b323 Working on Image Resize feature. 2011-09-03 23:13:41 -04:00
green-ponies (jgen)
100dd6438e Added more comments and changed others for better doxygen support. 2011-09-03 19:34:46 -04:00
green-ponies (jgen)
9c8da62ba0 This function needs the global $config. 2011-09-03 17:01:27 -04:00
green-ponies (jgen)
e6e9aced1c This function doesn't need the global $user now. 2011-09-03 16:48:33 -04:00
green-ponies (jgen)
3cfe182ad3 Typo, Renamed. 2011-09-03 16:45:56 -04:00
green-ponies (jgen)
7ee0407ba8 Oops, forgot to rename. 2011-09-03 16:42:12 -04:00
green-ponies (jgen)
8e68d650a1 Cleaned up how the Image Replace html is made. 2011-09-03 16:03:21 -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
Shish
2049754ef2 Merge branch 'master' of github.com:shish/shimmie2 2011-08-24 09:05:10 +01:00
green-ponies (jgen)
eb5ff191c6 Confirm image delete with jQuery UI modal dialog.
Added config option for jQuery delete as well.
2011-08-16 23:14:30 -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)
53c10ecddf Confirm image delete operation with javascript. 2011-08-12 22:02:41 -04:00
green-ponies (jgen)
3a4aea45d5 Small addition for giving forms unique IDs. Mainly so that javascript has
something to hook onto.
2011-08-12 21:56:48 -04:00
green-ponies (jgen)
6c3e91e01c changed script tags to include language 2011-08-12 21:40:51 -04:00
Shish
4f864c6a80 remove quotes from convert.exe in some cases 2011-08-08 13:01:35 +01:00
Justin Brewer
98e170cd86 Fixed Nice URL test for servers not running on port 80.
HTTP_HOST will contain the full host name used to access the site, including
the optional port number. However, on some misconfigured servers, HTTP_HOST
will not be defined, in which case the script will attempt to reconstruct the
host name from SERVER_NAME, and if necessary, SERVER_PORT.
2011-07-27 22:38:02 -05:00
Shish
ae17700a30 half support for caching giant tag maps 2011-03-23 13:21:14 +00:00
Shish
3d0cdfff56 mark users who have commented as interacting 2011-03-23 11:40:32 +00:00
Shish
b481db493c cache recent comments and comment page count 2011-03-23 11:37:46 +00:00
Shish
9db12f54f9 opengraph metadata on images 2011-03-07 23:57:56 +00:00
Shish
eda0d66bac make CommentList::get_hash static, for calling from other places 2011-03-06 12:44:38 +00:00
Diftraku
93e2110056 Because Windows... shitty OS is shitty. Added a Windows-only fix to the extension symlink and deltree.
Windows will nag about file info not found on relative paths with symlink (php bug?).
Also, when deleting a symlink on Windows, it needs to be rmdir'd, no unlink'd (kept throwing permission denied for unlink).
2011-03-03 11:40:34 +02:00
Shish
467eed75d1 'list of tags applied to this image' should not be limited like 'related tags' is 2011-03-02 11:53:38 +00:00
Josh Sutinen
c89eb46800 alias_editor: More PDO compatibility 2011-02-22 17:35:07 -05:00
Shish
66e6cdd0a1 hopefully fix search by ID range, and related bits 2011-02-22 15:03:16 +00:00
Shish
5aa380594f GetArray -> get_all 2011-02-21 12:24:51 +00:00
Shish
b1cb655adc hopefully fix signup for PDO 2011-02-21 11:57:50 +00:00
Shish
ce0d30e0db count() rather than RecordCount 2011-02-13 13:16:49 +00:00
Shish
8495a1ac89 typo fix 2011-02-13 13:10:55 +00:00
Shish
68585bb8c8 PDO compat for comments 2011-02-13 12:44:33 +00:00
zshall
cc6b9753bb Added email extension. 2011-02-11 17:43:18 -05:00
Shish
3cf72af8cd remove extra debug 2011-01-26 17:20:46 +00:00
Shish
46b01c4042 make sure thumbnails have a max ratio of 5:1 2011-01-26 17:09:45 +00:00
Shish
a008a9e34e PDO syntaxing 2011-01-26 14:56:26 +00:00
Shish
996183a2d3 cache popular tags 2011-01-22 17:38:41 +00:00
Shish
fc7eb0609e warn on login failure 2011-01-22 16:10:07 +00: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
ee3c24117b more pdo compat, database bits 2011-01-03 15:18:24 +00:00
seinoxygen
115d992ff0 merged image zoom 2011-01-01 19:19:18 +00:00
Shish
0d73aa7692 remove mysql-adodb specific function #2 2011-01-01 19:01:38 +00:00
Shish
d6baeab977 more pdo compat 2011-01-01 16:28:04 +00:00
Shish
8d978aa06a more pdo compat 2011-01-01 15:58:09 +00:00
Shish
9e00675900 pdo compat 2011-01-01 15:28:38 +00:00
Shish
ffb1762280 Insert_ID -> lastInsertId 2010-12-31 20:00:59 +00:00
Shish
7403fd7c87 Revert "checks for files without extensions, from AtomicDryad"
This seems to break something, such that uploading a jpeg results
in image size 0x0 (other bits seem to work though o_O)

Will take a look at what's up and re-commit later...

This reverts commit ead87d3934.
2010-12-24 20:44:38 +00:00
Shish
ead87d3934 checks for files without extensions, from AtomicDryad 2010-12-22 21:43:00 +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
18403a3fa6 csrf-proofing for extensions 2010-10-07 21:26:27 +01:00
Shish
41cc80df34 more url_escape 2010-07-26 23:10:43 +01:00
Shish
9bd19fe320 curl might not be installed 2010-07-26 22:48:15 +01:00
Shish
faf313d5ba repeat of GET forms breaking on sites without niceurls 2010-07-26 11:18:07 +01:00
Shish
59ba74d623 hide metadata on windows 2010-07-19 13:57:27 +01:00
Shish
f6486d332d hide disk_free_space errors 2010-06-27 17:32:08 +01:00
Shish
a71bf287dd blargh 2010-06-17 19:44:05 +01:00
Shish
da449245de Convert some Extensions to SimpleExtensions with priorities 2010-05-28 13:06:31 +01:00
Shish
1ddadc37ea selectFirst is still a whore 2010-05-16 15:27:34 +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
97db78d29e get rid of extra bits 2010-05-15 14:20:40 +01:00
Shish
0d7efd0256 class type hints for hiphop's benefit 2010-05-15 12:17:32 +01:00
Shish
46ce762949 A bunch of testing / fixes 2010-05-05 14:16:24 +01:00
Shish
c94e16f814 selectfirst is annoying 2010-04-28 11:21:02 +01:00
Shish
ba814aebaa mysql can go choke on a bucket of cocks 2010-04-27 11:36:07 +01:00
Shish
c8b7d639df a bunch of autocompletion 2010-04-26 06:00:41 +01:00
Shish
f3c9ca3e65 tag completion internal api 2010-04-26 05:49:11 +01:00
Shish
65962a591a Revert "search field autocomplete"
This reverts commit 29d9c7ae16.

zshall has already done this, better >_<
2010-04-26 05:03:58 +01:00
Shish
29d9c7ae16 search field autocomplete 2010-04-26 04:56:45 +01:00
Shish
a92a91dedb index extension 2010-04-26 02:36:05 +01:00
Shish
8a08571325 'offset ? limit ?' is supported by more than 'limit ?, ?' 2010-04-23 16:10:46 +01:00
Shish
2c1fa2fd7f move warehouse directory creation into a single place 2010-04-23 05:46:07 +01:00
Shish
ee292c2a25 crudely hide explicit images from the comment list of anons 2010-04-23 04:08:22 +01:00
Shish
27f0f2c971 link to ext_doc rather than ext_manager, for non-admins 2010-04-21 18:03:54 +01:00
Shish
3eee6f313e avatar options 2010-04-21 17:56:01 +01:00
Shish
0816e6bb67 in theory, selectable avatar hosts 2010-04-21 17:32:32 +01:00
Shish
9caa3ca560 test mincount param 2010-04-21 17:09:58 +01:00
Shish
4e05d77484 link to all 2010-04-20 02:59:41 +01:00
Shish
92695ae495 note for later 2010-04-20 02:59:41 +01:00
Shish
e82ff7d3fb mincount paramater 2010-04-20 02:59:41 +01:00
Shish
77934a7733 Comment::get_owner() function, as an official way to access user data (eg User::get_avatar()) 2010-04-07 13:38:44 +01:00
Shish
ec5b08f659 timestamped comments 2010-04-07 13:25:46 +01:00
Shish
f0b9f8909d test another path 2010-04-06 14:44:19 +01:00
Shish
1ede4443fc test wildcards 2010-04-06 14:44:13 +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
9ab6fec30a remove carridge returns when parsing alias CSVs 2010-03-27 04:01:29 +00:00
Shish
69bfc1868e show user ID number 2010-03-25 10:51:30 +00:00
Shish
0ba232694d tidy up 2010-03-23 04:30:33 +00:00
Shish
991a66edf0 case sensitivity? 2010-03-22 04:30:07 +00:00
Shish
e3c0b3fbc2 two comments should exist now 2010-03-22 04:00:26 +00:00
Shish
7a56a9c819 only show extension docs if the extension exists 2010-03-22 03:58:14 +00:00