Commit graph

189 commits

Author SHA1 Message Date
Shish
2d46a5c269 more functions that sqlite needs 2009-01-25 09:18:48 -08:00
Shish
abf448cdc8 old bits 2009-01-22 10:23:15 -08:00
Shish
33fa2f9b28 xmlschema was fail 2009-01-22 10:21:31 -08:00
Shish
4e4f0be4e5 more sqlite niceness 2009-01-22 07:51:50 -08:00
Shish
f3a3d50f95 sqlite love 2009-01-22 07:08:37 -08:00
Shish
8619be809e sqlite engine 2009-01-22 05:53:30 -08:00
Shish
fb7e14ad21 fixes 2009-01-22 04:14:38 -08:00
Shish
e37531f26a mysql too 2009-01-22 04:12:15 -08:00
Shish
f347384a50 php developers can go choke on a bucket of cocks 2009-01-22 04:11:43 -08:00
Shish
44ac62e1ae get rid of xmlschema 2009-01-22 04:05:55 -08:00
Shish
64fb261b87 simpler table creation function 2009-01-22 03:22:55 -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
5e75ad3cd4 start of cache engines 2009-01-20 02:34:17 -08:00
Shish
d8ce9d71c8 blank fold .-. 2009-01-04 12:26:12 -08:00
Shish
11873e9601 remove EOL whitespace 2009-01-04 11:18:37 -08:00
Shish
93b7467fdd a bunch of image functions moved to the image class 2009-01-04 08:15:00 -08:00
Shish
2ef6491ecf we can use exceptions \o/ 2009-01-04 06:34:27 -08:00
Shish
2f8cf7c08e die, globals 2009-01-03 12:32:57 -08:00
shish
40431f4c26 wildcard search, and remove the lower() stuff (it scares mysql)
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1066 7f39781d-f577-437e-ae19-be835c7a54ca
2008-10-09 05:56:48 +00:00
shish
028896650a some image functions which weren't in the 'image' section...
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1060 7f39781d-f577-437e-ae19-be835c7a54ca
2008-10-09 03:28:58 +00:00
shish
072b22ee8f Image code moved to image class
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1058 7f39781d-f577-437e-ae19-be835c7a54ca
2008-10-09 03:21:18 +00:00
shish
8eef694168 port the lovely search code from postgres; overall it's much better, though mysql chokes on it in extreme cases :S
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1057 7f39781d-f577-437e-ae19-be835c7a54ca
2008-10-09 02:54:17 +00:00
shish
c5f9918977 remove posted_timestamp
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1055 7f39781d-f577-437e-ae19-be835c7a54ca
2008-10-09 01:58:22 +00:00
shish
aee1af4e0e move user stuff into the user class
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1004 7f39781d-f577-437e-ae19-be835c7a54ca
2008-08-23 12:49:47 +00:00
shish
1e4d7d1938 merge some useful parts of SCore
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1002 7f39781d-f577-437e-ae19-be835c7a54ca
2008-08-23 12:05:24 +00:00
shish
12b02f155c db specific initialisation
git-svn-id: file:///home/shish/svn/shimmie2/trunk@976 7f39781d-f577-437e-ae19-be835c7a54ca
2008-08-11 20:27:24 +00:00
shish
19ea54ad21 numeric, php fails at int...
git-svn-id: file:///home/shish/svn/shimmie2/trunk@938 7f39781d-f577-437e-ae19-be835c7a54ca
2008-07-26 06:39:15 +00:00
shish
2b51c7bc14 be more assertive
git-svn-id: file:///home/shish/svn/shimmie2/trunk@936 7f39781d-f577-437e-ae19-be835c7a54ca
2008-07-25 17:42:24 +00:00
shish
3db3c53a6d Obvious bug is obvious, and a complete bastard to find -_-
git-svn-id: file:///home/shish/svn/shimmie2/trunk@870 7f39781d-f577-437e-ae19-be835c7a54ca
2008-05-20 03:06:44 +00:00
shish
a658019697 Slightly major rework of the search code internals, makes things more sane and fixes a couple of bugs
git-svn-id: file:///home/shish/svn/shimmie2/trunk@867 7f39781d-f577-437e-ae19-be835c7a54ca
2008-05-19 15:59:58 +00:00
shish
2c1c605f12 Coding at 4am isn't always a great idea <_< typo fixed
git-svn-id: file:///home/shish/svn/shimmie2/trunk@865 7f39781d-f577-437e-ae19-be835c7a54ca
2008-05-19 13:05:47 +00:00
shish
8cae5831a9 random image function, at last
git-svn-id: file:///home/shish/svn/shimmie2/trunk@863 7f39781d-f577-437e-ae19-be835c7a54ca
2008-05-19 03:17:31 +00:00
shish
e7b7fc0d24 db abstraction blargh
git-svn-id: file:///home/shish/svn/shimmie2/trunk@851 7f39781d-f577-437e-ae19-be835c7a54ca
2008-05-18 02:14:51 +00:00
shish
3c46aa5335 memcache api
git-svn-id: file:///home/shish/svn/shimmie2/trunk@833 7f39781d-f577-437e-ae19-be835c7a54ca
2008-04-30 11:26:12 +00:00
shish
4803c6f5d2 trunk also
git-svn-id: file:///home/shish/svn/shimmie2/trunk@796 7f39781d-f577-437e-ae19-be835c7a54ca
2008-04-09 01:10:56 +00:00
shish
c88a35b58c session IP mask, for users with varying IPs; mostly from a patch in #303
git-svn-id: file:///home/shish/svn/shimmie2/trunk@779 7f39781d-f577-437e-ae19-be835c7a54ca
2008-04-08 16:02:43 +00:00
shish
c3ab69d234 sys_get_temp_dir requires util.inc.php
git-svn-id: file:///home/shish/svn/shimmie2/trunk@756 7f39781d-f577-437e-ae19-be835c7a54ca
2008-04-06 16:37:49 +00:00
shish
797f515b16 temp data goes in a temp folder
git-svn-id: file:///home/shish/svn/shimmie2/trunk@742 7f39781d-f577-437e-ae19-be835c7a54ca
2008-04-01 10:11:36 +00:00
shish
2948a4435e extensible search v1
git-svn-id: file:///home/shish/svn/shimmie2/trunk@713 7f39781d-f577-437e-ae19-be835c7a54ca
2008-02-06 17:24:08 +00:00
shish
2608bafa41 adodb xml schema support
git-svn-id: file:///home/shish/svn/shimmie2/trunk@702 7f39781d-f577-437e-ae19-be835c7a54ca
2008-01-27 15:30:44 +00:00
shish
3e25a08db2 safety wrapper for db->GetAll
git-svn-id: file:///home/shish/svn/shimmie2/trunk@690 7f39781d-f577-437e-ae19-be835c7a54ca
2008-01-05 00:22:19 +00:00
shish
5b543e46ca comment
git-svn-id: file:///home/shish/svn/shimmie2/trunk@656 7f39781d-f577-437e-ae19-be835c7a54ca
2007-12-11 18:37:11 +00:00
shish
db582a2d46 more documentation for code in core
git-svn-id: file:///home/shish/svn/shimmie2/trunk@629 7f39781d-f577-437e-ae19-be835c7a54ca
2007-12-06 11:01:18 +00:00
shish
0245870868 allow dots at the start of tags, as long as they're followed by letters; (for .hack)
git-svn-id: file:///home/shish/svn/shimmie2/trunk@596 7f39781d-f577-437e-ae19-be835c7a54ca
2007-10-28 17:49:45 +00:00
shish
b48cd81da5 ignore wildcard-only searches
git-svn-id: file:///home/shish/svn/shimmie2/trunk@589 7f39781d-f577-437e-ae19-be835c7a54ca
2007-10-28 17:07:29 +00:00
shish
5199b9dc60 stricter tag sanitising
git-svn-id: file:///home/shish/svn/shimmie2/trunk@586 7f39781d-f577-437e-ae19-be835c7a54ca
2007-10-28 01:30:26 +00:00
shish
c47e15c01b filetype search from ATravelingGeek
git-svn-id: file:///home/shish/svn/shimmie2/trunk@564 7f39781d-f577-437e-ae19-be835c7a54ca
2007-10-24 18:09:41 +00:00
shish
24c2311cba md5: search for danbooru compatability
git-svn-id: file:///home/shish/svn/shimmie2/trunk@556 7f39781d-f577-437e-ae19-be835c7a54ca
2007-10-22 00:40:10 +00:00
shish
dc9181fc24 re-inline error_check, since it only works inline...
git-svn-id: file:///home/shish/svn/shimmie2/trunk@535 7f39781d-f577-437e-ae19-be835c7a54ca
2007-10-21 17:13:57 +00:00
shish
0b555d0926 error check for cache query
git-svn-id: file:///home/shish/svn/shimmie2/trunk@452 7f39781d-f577-437e-ae19-be835c7a54ca
2007-08-08 06:16:13 +00:00
shish
ea65ce6605 cacheyness
git-svn-id: file:///home/shish/svn/shimmie2/trunk@451 7f39781d-f577-437e-ae19-be835c7a54ca
2007-08-08 05:47:23 +00:00
shish
b64ac2128e enable adodb caching
git-svn-id: file:///home/shish/svn/shimmie2/trunk@448 7f39781d-f577-437e-ae19-be835c7a54ca
2007-08-08 04:53:55 +00:00
shish
ff6d0781d2 LIMIT ?,? -> LIMIT ? OFFSET ? -- more compatability
git-svn-id: file:///home/shish/svn/shimmie2/trunk@447 7f39781d-f577-437e-ae19-be835c7a54ca
2007-08-06 23:59:27 +00:00
shish
810fd0148a this should have been gone a while ago :S
git-svn-id: file:///home/shish/svn/shimmie2/trunk@442 7f39781d-f577-437e-ae19-be835c7a54ca
2007-08-06 21:27:55 +00:00
shish
25b1ebad8b search user rather than poster; everything else refers to 'user'
git-svn-id: file:///home/shish/svn/shimmie2/trunk@420 7f39781d-f577-437e-ae19-be835c7a54ca
2007-08-02 19:57:40 +00:00
shish
f36c783868 source url editor
git-svn-id: file:///home/shish/svn/shimmie2/trunk@412 7f39781d-f577-437e-ae19-be835c7a54ca
2007-08-01 16:58:50 +00:00
shish
619d18c8f3 a somewhat nicer error message for can't connect to DB
git-svn-id: file:///home/shish/svn/shimmie2/trunk@390 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-28 14:15:03 +00:00
shish
bcc9b612c1 if a tag has no matches, error
git-svn-id: file:///home/shish/svn/shimmie2/trunk@354 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-23 00:52:24 +00:00
shish
d66030f35f redundancy
git-svn-id: file:///home/shish/svn/shimmie2/trunk@276 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-15 17:29:05 +00:00
shish
9861e13f8e removed set_extension_version; everyone was using config anyway ;3
git-svn-id: file:///home/shish/svn/shimmie2/trunk@275 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-15 17:17:59 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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