Commit graph

156 commits

Author SHA1 Message Date
green-ponies (jgen)
0c37be79a0 Actually get the proper mime type for a given file.
(FIXME: now we handle more than just images)
2012-04-15 19:55:06 -04:00
green-ponies (jgen)
a0a0ba5bbc A better version of bool_escape() that uses filter_var if possible.
Also removed undb_bool() as it was basically a copy of the old bool_escape function.
2012-04-15 19:28:27 -04:00
Shish
678215e4bd width / height were never used individually, now just have images 2012-04-01 17:47:39 +01:00
Shish
7cbb62c8cc move data to data folder 2012-03-30 18:21:35 +01:00
Shish
d54580e453 PLT is used by tooltips too... 2012-03-13 07:01:15 +00:00
Shish
dde5d4c9b5 html5 validation 2012-03-13 06:33:21 +00:00
Shish
efd05179f3 better log for owner change 2012-03-13 04:55:49 +00:00
Shish
3eb1f1c2ab move move common code into base classes 2012-03-12 05:08:40 +00:00
Shish
652984adc1 trim comma from tags as well as whitespace 2012-03-11 14:54:14 +00:00
Shish
a6dbe3b7f2 Image::locked should always be a boolean 2012-03-10 18:53:42 +00:00
Shish
0ce9aa02a2 'false' == true. Convert the first param from DB value to real bool, and also use triple equals 2012-03-08 01:27:59 +00:00
Shish
edbb8943d2 count pages by the aliased-to tag, not what the user typed 2012-02-12 07:30:16 +00:00
Shish
fbbdc898b0 Move image uploader info into the image info editor, make it editable 2012-02-09 17:03:39 +00:00
green-ponies (jgen)
d69fa6ae9d Merge branch 'master' into speed_tweaks 2012-02-07 23:21:56 -05:00
green-ponies (jgen)
5af54bb9e0 Added some more comments and type hints. 2012-02-07 20:05:38 -05:00
Shish
0589f9d72e fine grained permission bits 2012-02-07 15:15:18 +00:00
Shish
4e1300631b Merge branch 'master' of github.com:shish/shimmie2 2012-02-05 04:25:58 +00:00
Shish
a55eca4462 so many bots crawling the infinite search space... 2012-02-05 04:21:03 +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
Shish
dab85e5f26 merge type hints 2012-02-02 14:16:14 +00:00
Shish
52ff412b38 hiphop type hint placeholders 2012-02-02 13:58:48 +00:00
Shish
16745aadc6 only require flexihash once 2012-02-02 04:35:26 +00:00
Shish
2a375e7129 standard syntax 2012-02-01 17:01:41 +00:00
Shish
04ed07a0df some image links are absolute for good reason (eg they point to a CDN with a different hostname) 2012-01-31 15:11:06 +00:00
Daku
a1cc88cade this should fix custom image links 2012-01-31 14:58:55 +00:00
Shish
aed5e1a30e hand merge of speed tweaks 2012-01-31 13:20:43 +00:00
Shish
7a5f87572c an image already knows what its own details are, it doesn't need to be passed them... 2012-01-27 16:27:02 +00:00
Shish
96b8253b38 term can be empty to start with >_< 2012-01-26 17:56:48 +00:00
Shish
4530efc1e0 minus on its own was being turned into 'negative null-tag', which confused things 2012-01-26 17:16:06 +00:00
Shish
a208d5c6bc lock logging fix 2012-01-26 02:15:06 +00:00
Shish
03204859c1 merge~ 2012-01-22 15:11:39 +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
7049b3bf4d rating/source/locked now log info when set 2012-01-20 23:04:28 +00:00
Shish
9b96b44d64 tag cache is glitchy, too many things might update it 2012-01-20 05:16:40 +00:00
Shish
e46c22a228 weighted CDN targets 2012-01-17 15:47:58 +00:00
Shish
8f56b9ae2c argh php, syntax that used to be required is now deprecated... 2012-01-16 19:58:03 +00:00
Shish
9bde42d452 consistent hashing for multiple data mirrors 2012-01-16 02:53:38 +00:00
green-ponies (jgen)
7195d3d1f3 Changes using empty instead of strlen. 2012-01-12 23:07:14 -05:00
green-ponies (jgen)
2c6b5128c6 More tweaks for minor speed gains. 2012-01-12 21:17:37 -05:00
green-ponies (jgen)
2e0e8475a1 A few more small changes for speed. 2012-01-12 14:46:58 -05:00
green-ponies (jgen)
26d383198a More small changes for speed. 2012-01-11 15:57:00 -05:00
green-ponies (jgen)
ea15574226 Changes and tweaks for speed.
Because every microsecond counts! :P
These changes are based on information from:
http://phpbench.com/
http://stackoverflow.com/questions/482202/is-there-a-performance-benefit-single-quote-vs-double-quote-in-php
2012-01-11 15:08:27 -05:00
Shish
5121e99dbe speed hax and niceurl forcing from r34 2011-12-24 14:49:55 +00:00
Shish
a89c5943d8 error details when the file copy fails 2011-11-08 11:02:04 +00:00
Shish
ac3bf33402 tag_n wasn't used by accurate search, but was by ugly 2011-10-18 22:32:04 +01:00
Shish
a1da59804e Merge branch 'master' of github.com:shish/shimmie2 2011-09-25 12:45:59 +01:00
Shish
5b09467310 fix for alisaing suggested by Diftraku 2011-09-25 12:45:08 +01:00
green-ponies (jgen)
2e276a095e Fix for Issue 22 from HungryFeline. 2011-09-11 21:41:46 -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)
f3b6fde7a5 Working on adding a "Replace Image" feature. 2011-08-24 20:53:53 -04:00
Shish
e279e69f96 fix single-tag searches 2011-03-14 14:20:30 +00:00
Shish
c554a12be0 hacky fix for searching, make sure query variables are unique 2011-03-14 12:44:58 +00:00
Shish
20cc4cc165 don't have super-thin / super-short thumbs 2011-02-13 11:18:23 +00:00
Shish
3896c71a9a strnorm bits 2011-01-22 15:51:55 +00:00
Shish
ee3c24117b more pdo compat, database bits 2011-01-03 15:18:24 +00:00
Shish
06a3be4941 Merge branch 'pdo' 2011-01-01 18:47:55 +00:00
Shish
27056f369f sort tags when imploding / exploding 2011-01-01 18:40:21 +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
175ceac490 PDO compat 2011-01-01 15:28:30 +00:00
Shish
7abb4742a5 hack 2010-07-19 13:35:10 +01:00
Shish
7efc4a0dfe if necessary 2010-03-25 10:37:52 +00:00
Shish
20edd68093 avoid double escapes 2010-03-24 18:24:47 +00:00
Shish
7a5be72cbd build warehouse directories on demand 2010-03-15 04:31:28 +00:00
Shish
161a2d1757 postgres is true too 2010-02-17 15:09:00 +00:00
Shish
9c26f9efb4 image locking 2010-02-17 14:16:20 +00:00
Shish
b33aa49f00 a technical explanation of build_accurate_search_querylet 2010-02-09 02:07:19 +00:00
Shish
937a430a50 only optimise this case for regular tags 2010-02-03 22:03:46 +00:00
Shish
3b2941a5bc if the search is for one tag, then 'count(tag)' (expensive function) = 'tag.count' (index lookup) 2010-02-02 18:19:55 +00:00
Shish
a28a3ffcb9 case-insensitive search 2010-02-02 11:52:24 +00:00
Shish
efac91598c SCORE_STRNORM = lowercase-if-necessary-for-comparison 2010-02-02 02:13:45 +00:00
Shish
898f1e1f73 typo 2010-02-02 00:56:28 +00:00
Shish
155f3cf9e8 lowercase match for pgsql 2010-02-02 00:45:15 +00:00
Shish
05150706cc wtf git 2010-02-02 00:34:44 +00:00
Shish
1c7ce5a3ac get the THUMB link... *headdesk* 2009-12-24 07:34:29 +00:00
Shish
14b48d5599 fixed? 2009-11-12 09:30:41 +00:00
Shish
b428a56e5f fail 2009-11-12 09:27:09 +00:00
Shish
0c7c90f2cd hash_ab and hash_cd templates for image URLs 2009-11-12 09:23:47 +00:00
Shish
d5dea776c5 ignore duplicate tag history entries 2009-08-24 03:33:51 +01:00
Shish
fe9dd98387 slightly less strict filename sanitising, for the unicode users 2009-08-11 15:12:48 +01:00
Shish
572f84511a lots of docs, and some internal changes 2009-07-21 07:38:53 +01:00
Shish
2471a8e2eb docs 2009-07-21 07:38:46 +01:00
Shish
627ecdbf4c lots of docs 2009-07-19 08:38:27 +01:00
Shish
bc3c2d5a5b sqlite returns column names as table.name, not just name 2009-07-17 13:10:42 +01:00
Shish Moom
8dac266af4 minor fix 2009-07-14 12:52:55 -07:00
JJS
412750dec2 Bugfix: $c->get_string to $config->get_string 2009-05-12 03:11:01 -07:00
Shish
9ae557c250 a couple of fixes 2009-05-11 07:48:18 -07:00
Shish
bb84a735a2 requestcontext stuff is messy, go back to globals :( 2009-05-11 07:04:33 -07:00
Shish
47fd679354 ugly mysql thing from 2.3 2009-05-11 03:52:48 -07:00
Shish
561c9fdbb7 punctuations 2009-05-08 04:43:45 -07:00
Shish
415f6901da logging things 2009-05-08 03:52:29 -07:00
Shish
5600e00de9 fixes 2009-01-24 10:59:00 -08:00
Shish
394cff1909 move tag functions into the tag class 2009-01-24 03:32:48 -08:00
Shish
35cc1aad48 more sqlite fixes 2009-01-22 09:08:33 -08:00
Shish
d98962a30e a bunch of fixes 2009-01-22 05:42:44 -08:00
Shish
6667ac553d niceurl magic 2009-01-22 02:49:22 -08:00
Shish
fcca11f20c make cache engines work <_< 2009-01-20 03:54:43 -08:00
Shish
776a42d519 cache objects 2009-01-20 02:47:20 -08:00
Shish
6e44111e0e clean up tags when deleting an image 2009-01-19 10:28:03 -08:00
Shish
066474c5c5 use caching for image tags 2009-01-19 10:27:53 -08:00