Commit graph

1842 commits

Author SHA1 Message Date
shish
d39a45b62d remove old functions (which will break things if used :S)
git-svn-id: file:///home/shish/svn/shimmie2/trunk@266 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-12 08:15:34 +00:00
shish
40eb4699b8 privatise this
git-svn-id: file:///home/shish/svn/shimmie2/trunk@264 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-12 07:50:08 +00:00
shish
c6b7c9bb83 remove ambiguous database->get_user(...)
git-svn-id: file:///home/shish/svn/shimmie2/trunk@263 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-12 07:37:32 +00:00
shish
3e0d983102 more marking as internal
git-svn-id: file:///home/shish/svn/shimmie2/trunk@262 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-12 07:33:53 +00:00
shish
34d95d594d make this look more like an internal function
git-svn-id: file:///home/shish/svn/shimmie2/trunk@261 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-12 07:26:50 +00:00
shish
e4657006d3 rename an argument
git-svn-id: file:///home/shish/svn/shimmie2/trunk@260 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-12 07:22:26 +00:00
shish
16448bf36c no longer any need for core extensions per se
git-svn-id: file:///home/shish/svn/shimmie2/trunk@253 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-10 19:43:36 +00:00
shish
e8d9523ba8 send page along with image
git-svn-id: file:///home/shish/svn/shimmie2/trunk@252 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-10 19:42:03 +00:00
shish
a37c0c7f9b add a reference for the bug
git-svn-id: file:///home/shish/svn/shimmie2/trunk@249 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-08 21:58:07 +00:00
shish
2204711880 PHP bug: using a global array in a foreach doesn't work recursively
git-svn-id: file:///home/shish/svn/shimmie2/trunk@247 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-08 21:39:44 +00:00
shish
ffcf86df17 and the event
git-svn-id: file:///home/shish/svn/shimmie2/trunk@242 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-08 19:40:14 +00:00
shish
8ad916c136 bbcode support moved to a generic text formatting extension
git-svn-id: file:///home/shish/svn/shimmie2/trunk@241 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-08 18:56:29 +00:00
shish
69ca13fa50 update tag counts on set_tags / delete_tags_from_image
git-svn-id: file:///home/shish/svn/shimmie2/trunk@239 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-07 02:52:33 +00:00
shish
660ca7f8aa debugging stuff
git-svn-id: file:///home/shish/svn/shimmie2/trunk@237 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-06 17:02:52 +00:00
shish
f0168d6160 wildcard searches. This may be faster, as the big query uses IDs rather than tags? needs testing~
git-svn-id: file:///home/shish/svn/shimmie2/trunk@235 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-06 07:28:42 +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
e0d279f347 utf8 support
git-svn-id: file:///home/shish/svn/shimmie2/trunk@233 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-06 05:57:24 +00:00
shish
cec93d8a4d actually, they are different -- array_add checks for uniqueness
git-svn-id: file:///home/shish/svn/shimmie2/trunk@232 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-06 04:47:01 +00:00
shish
4a755da2c0 it *was* in the core API :P
git-svn-id: file:///home/shish/svn/shimmie2/trunk@230 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-05 21:53:52 +00:00
shish
56d63355dd IM memory limit broken?
git-svn-id: file:///home/shish/svn/shimmie2/trunk@229 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-05 21:44:51 +00:00
shish
4364e5079f specify images.id rather than id (could be tags.id)
git-svn-id: file:///home/shish/svn/shimmie2/trunk@228 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-05 21:41:13 +00:00
shish
b6809c3b0a tags(image_id,tag) split into image_tags(image_id,tag_id) and tags(id,tag,count)
git-svn-id: file:///home/shish/svn/shimmie2/trunk@227 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-05 21:30:37 +00:00
shish
cedddcd1c5 make get_memory_limit use the global rather than the GD limit
git-svn-id: file:///home/shish/svn/shimmie2/trunk@223 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-05 20:16:10 +00:00
shish
1ecb6b688c limit next / prev to 1 row
git-svn-id: file:///home/shish/svn/shimmie2/trunk@221 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-05 18:05:54 +00:00
shish
431b6a653e memory limit for IM too
git-svn-id: file:///home/shish/svn/shimmie2/trunk@220 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-05 17:14:27 +00:00
shish
c8bc08f7da optimise the common case, but speak slowly and use simple words, so that mysql can understand
git-svn-id: file:///home/shish/svn/shimmie2/trunk@217 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-04 15:29:40 +00:00
shish
2fcb9e168e allow single tag wildcards
git-svn-id: file:///home/shish/svn/shimmie2/trunk@216 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-04 02:31:15 +00:00
shish
fe5264c3b1 turn off sql logging
git-svn-id: file:///home/shish/svn/shimmie2/trunk@214 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-04 01:21:32 +00:00
shish
14a8c16d04 fix single-tag + image metadata search
git-svn-id: file:///home/shish/svn/shimmie2/trunk@213 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-04 01:21:08 +00:00
shish
a92b2fdcab optimise a very common (99%) case
git-svn-id: file:///home/shish/svn/shimmie2/trunk@210 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-04 00:56:02 +00:00
shish
d3aa734e9d make thumbnails be single frame jpegs
git-svn-id: file:///home/shish/svn/shimmie2/trunk@207 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-01 18:12:19 +00:00
shish
fcfc7e5767 send a tag_set event when tags are set, and correct parentheses when creating a block
git-svn-id: file:///home/shish/svn/shimmie2/trunk@202 7f39781d-f577-437e-ae19-be835c7a54ca
2007-06-30 01:39:30 +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
3c1916f428 giving extensions numeric IDs in an array does not put them in numeric order; do an explicit sort...
git-svn-id: file:///home/shish/svn/shimmie2/trunk@164 7f39781d-f577-437e-ae19-be835c7a54ca
2007-06-26 11:58:47 +00:00
shish
927199430f if $tags is an empty array, $tag_array is never created...
git-svn-id: file:///home/shish/svn/shimmie2/trunk@163 7f39781d-f577-437e-ae19-be835c7a54ca
2007-06-26 11:47:30 +00:00
shish
f25ed214c6 search by hash, from artanis
git-svn-id: file:///home/shish/svn/shimmie2/trunk@162 7f39781d-f577-437e-ae19-be835c7a54ca
2007-06-25 16:40:47 +00:00
shish
14e300378c Show a sensible message for no search results
git-svn-id: file:///home/shish/svn/shimmie2/trunk@157 7f39781d-f577-437e-ae19-be835c7a54ca
2007-06-04 03:01:36 +00:00
shish
81ef3dc356 List user's IPs
git-svn-id: file:///home/shish/svn/shimmie2/trunk@152 7f39781d-f577-437e-ae19-be835c7a54ca
2007-06-03 10:40:00 +00:00
shish
1c81f2311e show uploader IP
git-svn-id: file:///home/shish/svn/shimmie2/trunk@151 7f39781d-f577-437e-ae19-be835c7a54ca
2007-06-03 10:27:15 +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
shish
ea393ca985 allow paginator to be styled separately
git-svn-id: file:///home/shish/svn/shimmie2/trunk@141 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-29 02:03:13 +00:00
shish
241a048b38 fix ImageIO -- it doesn't take , it takes .
git-svn-id: file:///home/shish/svn/shimmie2/trunk@138 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-28 21:40:26 +00:00
shish
28b0431922 reduce image's domain
git-svn-id: file:///home/shish/svn/shimmie2/trunk@136 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-25 07:40:26 +00:00
shish
f91d777045 execute should have default args arg
git-svn-id: file:///home/shish/svn/shimmie2/trunk@133 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-23 23:26:11 +00:00
shish
83ab72332e remove silly space
git-svn-id: file:///home/shish/svn/shimmie2/trunk@132 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-23 23:19:35 +00:00
shish
6c26fa0fc1 use wrapped database execute function
git-svn-id: file:///home/shish/svn/shimmie2/trunk@129 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-23 22:19:12 +00:00
shish
593f7d55de ordered tags (and use the wrapped execute function)
git-svn-id: file:///home/shish/svn/shimmie2/trunk@127 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-23 03:51:20 +00:00
shish
e6668f53d7 Sometimes URL escaping is more appropriate than HTML escaping
git-svn-id: file:///home/shish/svn/shimmie2/trunk@126 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-23 03:44:15 +00:00
shish
4f849016ba login memory changed to default to a year, and removed from visible options
git-svn-id: file:///home/shish/svn/shimmie2/trunk@123 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-18 18:10:32 +00:00
shish
7415578674 link to search by user from their page
git-svn-id: file:///home/shish/svn/shimmie2/trunk@119 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-18 01:33:47 +00:00
shish
c486fe279c search by poster name
git-svn-id: file:///home/shish/svn/shimmie2/trunk@118 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-18 01:12:50 +00:00
shish
0c30124dbd BBCode URL support
git-svn-id: file:///home/shish/svn/shimmie2/trunk@117 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-18 00:55:47 +00:00
shish
51d0ee5f0c minor assertion
git-svn-id: file:///home/shish/svn/shimmie2/trunk@111 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-17 03:59:48 +00:00
shish
98c93148b9 database uses it's own method
git-svn-id: file:///home/shish/svn/shimmie2/trunk@110 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-17 03:52:50 +00:00
shish
f372173431 support code tag, and checks in get_user
git-svn-id: file:///home/shish/svn/shimmie2/trunk@109 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-17 03:49:23 +00:00
shish
4feb6c7742 removed redundant defaults
git-svn-id: file:///home/shish/svn/shimmie2/trunk@108 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-17 03:48:58 +00:00
shish
8aa30d3ed2 error-handling execute function
git-svn-id: file:///home/shish/svn/shimmie2/trunk@107 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-17 03:48:34 +00:00
shish
16444c0891 mysql 4.0.X compatability
git-svn-id: file:///home/shish/svn/shimmie2/trunk@103 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-16 23:50:51 +00:00
shish
e2e7d29b66 scripts moved to an extension
git-svn-id: file:///home/shish/svn/shimmie2/trunk@81 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-08 21:18:31 +00:00
shish
c25427a5d1 'User Links' block is no longer hard coded
git-svn-id: file:///home/shish/svn/shimmie2/trunk@79 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-08 21:01:51 +00:00
shish
ea9da95c7b Setup items support labels nicely, as pioneered by Artanis
git-svn-id: file:///home/shish/svn/shimmie2/trunk@78 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-08 20:36:02 +00:00
shish
d32a64cb56 this is unnecessary
git-svn-id: file:///home/shish/svn/shimmie2/trunk@73 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-07 13:56:25 +00:00
shish
0f0b7f77b5 make parse_link_template public, and specific to the image it's called on
git-svn-id: file:///home/shish/svn/shimmie2/trunk@70 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-07 00:18:52 +00:00
shish
21635236f8 lack of whitespace caused problems~
git-svn-id: file:///home/shish/svn/shimmie2/trunk@63 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-05 20:55:08 +00:00
shish
22c9cdacf7 they have functions for that sort of thing...
git-svn-id: file:///home/shish/svn/shimmie2/trunk@59 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-04 22:17:56 +00:00
shish
d5ebcb89e8 a standard way of getting stuff from the images table
git-svn-id: file:///home/shish/svn/shimmie2/trunk@58 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-04 22:15:32 +00:00
shish
b9ec7c9f5b move tag editing into it's own namespace, and have an anonymous editing option
git-svn-id: file:///home/shish/svn/shimmie2/trunk@55 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-04 21:53:58 +00:00
shish
f6ea5118d9 valid rss date
git-svn-id: file:///home/shish/svn/shimmie2/trunk@54 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-03 15:27:10 +00:00
shish
9bb567aa60 front page option, and post links in bbcode
git-svn-id: file:///home/shish/svn/shimmie2/trunk@53 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-03 15:19:02 +00:00
shish
35bae4f71d RSS post date, broken
git-svn-id: file:///home/shish/svn/shimmie2/trunk@52 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-03 15:18:22 +00:00
shish
3d2ea2a842 make front page a variable, and add support for default values in config->get
git-svn-id: file:///home/shish/svn/shimmie2/trunk@51 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-01 13:40:48 +00:00
shish
ff0fcee777 refine search
git-svn-id: file:///home/shish/svn/shimmie2/trunk@49 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-01 13:30:05 +00:00
shish
ad37982680 fix assertion error on invalid page numbers
git-svn-id: file:///home/shish/svn/shimmie2/trunk@47 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-01 13:13:41 +00:00
shish
32e4af6a23 support for adding headers to a page
git-svn-id: file:///home/shish/svn/shimmie2/trunk@44 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-01 12:41:44 +00:00
shish
a9abf77ba9 thumb html shouldn't be the one adding <td>s
git-svn-id: file:///home/shish/svn/shimmie2/trunk@43 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-01 12:41:09 +00:00
shish
4d127b3a17 select image by hash, for dupe detection
git-svn-id: file:///home/shish/svn/shimmie2/trunk@42 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-01 12:40:39 +00:00
shish
fcb79e40c7 remove rss bits from index code
git-svn-id: file:///home/shish/svn/shimmie2/trunk@41 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-01 12:40:01 +00:00
shish
c4cbc5991d fix error when generating image_too_large, and show thumb on dupe upload
git-svn-id: file:///home/shish/svn/shimmie2/trunk@39 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-01 12:38:28 +00:00
shish
48f5df95ec update build thumb api
git-svn-id: file:///home/shish/svn/shimmie2/trunk@34 7f39781d-f577-437e-ae19-be835c7a54ca
2007-04-29 01:23:13 +00:00
shish
e6e65a9459 util.inc.php tidied up
git-svn-id: file:///home/shish/svn/shimmie2/trunk@31 7f39781d-f577-437e-ae19-be835c7a54ca
2007-04-28 19:28:29 +00:00
shish
8ae4d58fd1 sql_quote is silly...
git-svn-id: file:///home/shish/svn/shimmie2/trunk@30 7f39781d-f577-437e-ae19-be835c7a54ca
2007-04-28 19:02:54 +00:00
shish
f12e0b8f60 one step towards faster searching
git-svn-id: file:///home/shish/svn/shimmie2/trunk@29 7f39781d-f577-437e-ae19-be835c7a54ca
2007-04-28 18:58:23 +00:00
shish
d0b797247f search optimisation, and remove old search code
git-svn-id: file:///home/shish/svn/shimmie2/trunk@27 7f39781d-f577-437e-ae19-be835c7a54ca
2007-04-28 18:40:08 +00:00
shish
bed0e5260b use set_x_from_post
git-svn-id: file:///home/shish/svn/shimmie2/trunk@24 7f39781d-f577-437e-ae19-be835c7a54ca
2007-04-28 15:49:25 +00:00
shish
5bd3789b74 make the regex a little neater
git-svn-id: file:///home/shish/svn/shimmie2/trunk@23 7f39781d-f577-437e-ae19-be835c7a54ca
2007-04-28 15:46:53 +00:00
shish
71392a73a5 be more strict about allowed comparisons
git-svn-id: file:///home/shish/svn/shimmie2/trunk@19 7f39781d-f577-437e-ae19-be835c7a54ca
2007-04-27 18:14:38 +00:00
shish
f0802f2f1c search to SQL redone with regex, makes things more useful and less buggy
git-svn-id: file:///home/shish/svn/shimmie2/trunk@17 7f39781d-f577-437e-ae19-be835c7a54ca
2007-04-27 18:04:13 +00:00
shish
6e90eed812 build_thumb moved to common utils
git-svn-id: file:///home/shish/svn/shimmie2/trunk@16 7f39781d-f577-437e-ae19-be835c7a54ca
2007-04-26 22:27:17 +00:00
shish
c11a6484b8 thumbnail size in the index html
git-svn-id: file:///home/shish/svn/shimmie2/trunk@15 7f39781d-f577-437e-ae19-be835c7a54ca
2007-04-25 18:34:37 +00:00
shish
5614a7f7da less duplication again
git-svn-id: file:///home/shish/svn/shimmie2/trunk@14 7f39781d-f577-437e-ae19-be835c7a54ca
2007-04-25 18:33:59 +00:00
shish
b1b2edf021 only one copy of get_memory_limit...
git-svn-id: file:///home/shish/svn/shimmie2/trunk@9 7f39781d-f577-437e-ae19-be835c7a54ca
2007-04-24 19:12:05 +00:00
shish
7161656063 Initial import, 2.0rc1
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1 7f39781d-f577-437e-ae19-be835c7a54ca
2007-04-16 11:58:25 +00:00