Commit graph

224 commits

Author SHA1 Message Date
shish
dee164edf1 All the upload handlers use this function, put it somewhere common
git-svn-id: file:///home/shish/svn/shimmie2/trunk@791 7f39781d-f577-437e-ae19-be835c7a54ca
2008-04-08 21:56:37 +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
d866d0fd46 Various extension manager improvements from Christian Walde, and a recursive copy if symlink() isn't defined (ie, windows)
git-svn-id: file:///home/shish/svn/shimmie2/trunk@761 7f39781d-f577-437e-ae19-be835c7a54ca
2008-04-06 17:43:03 +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
df8efa475e start of requestcontext work
git-svn-id: file:///home/shish/svn/shimmie2/trunk@753 7f39781d-f577-437e-ae19-be835c7a54ca
2008-04-04 12:07:38 +00:00
shish
0b59c40865 remove user enable / disable, as the feature was ass, and better handled elsewhere :|
git-svn-id: file:///home/shish/svn/shimmie2/trunk@749 7f39781d-f577-437e-ae19-be835c7a54ca
2008-04-02 20:07:52 +00:00
shish
89df1557f0 IP range ban
git-svn-id: file:///home/shish/svn/shimmie2/trunk@746 7f39781d-f577-437e-ae19-be835c7a54ca
2008-04-01 10:57:18 +00:00
shish
6ced0304dd and add a compatability function, because php only contains the one I need as of 5.2.1 -_-
git-svn-id: file:///home/shish/svn/shimmie2/trunk@743 7f39781d-f577-437e-ae19-be835c7a54ca
2008-04-01 10:12:27 +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
979ab9a013 don't load custom themes without base themes
git-svn-id: file:///home/shish/svn/shimmie2/trunk@722 7f39781d-f577-437e-ae19-be835c7a54ca
2008-02-17 09:25:49 +00:00
shish
7f752180bf various minor bugs showed up in debug mode
git-svn-id: file:///home/shish/svn/shimmie2/trunk@715 7f39781d-f577-437e-ae19-be835c7a54ca
2008-02-06 17:33:08 +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
0e4e5f02c8 filter html before anything else
git-svn-id: file:///home/shish/svn/shimmie2/trunk@694 7f39781d-f577-437e-ae19-be835c7a54ca
2008-01-12 07:44:08 +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
19d80a244f several SQLite compatability improvements, as suggested by naikoto on the forums
git-svn-id: file:///home/shish/svn/shimmie2/trunk@680 7f39781d-f577-437e-ae19-be835c7a54ca
2008-01-02 21:49:12 +00:00
shish
bcca76969e make get_base_href work better on windows
git-svn-id: file:///home/shish/svn/shimmie2/trunk@678 7f39781d-f577-437e-ae19-be835c7a54ca
2008-01-02 21:46:14 +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
eef425f7bd make sure TagSetEvent is always referring to an array of tags, no matter the input
git-svn-id: file:///home/shish/svn/shimmie2/trunk@641 7f39781d-f577-437e-ae19-be835c7a54ca
2007-12-08 05:33:15 +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
60e89ef893 remove redundant code
git-svn-id: file:///home/shish/svn/shimmie2/trunk@628 7f39781d-f577-437e-ae19-be835c7a54ca
2007-12-06 10:47:09 +00:00
shish
87c31f432b move all events into event.class.php for neatness and more controlled load order
git-svn-id: file:///home/shish/svn/shimmie2/trunk@627 7f39781d-f577-437e-ae19-be835c7a54ca
2007-12-06 10:21:23 +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
0d126084ce move subclass to below main class, for consistency with later work
git-svn-id: file:///home/shish/svn/shimmie2/trunk@622 7f39781d-f577-437e-ae19-be835c7a54ca
2007-12-04 22:24:58 +00:00
shish
ac2af2d1c0 ParseLinkTemplateEvent, and handlers for text_score, numeric_score and rating
git-svn-id: file:///home/shish/svn/shimmie2/trunk@611 7f39781d-f577-437e-ae19-be835c7a54ca
2007-11-04 08:16:41 +00:00
shish
d880c8cac0 massive user management cleanup, part 1
git-svn-id: file:///home/shish/svn/shimmie2/trunk@610 7f39781d-f577-437e-ae19-be835c7a54ca
2007-11-04 03:51:41 +00:00
shish
7af10fe562 new print_obj function from artanis
git-svn-id: file:///home/shish/svn/shimmie2/trunk@607 7f39781d-f577-437e-ae19-be835c7a54ca
2007-11-03 05:26:59 +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
e6891f7da9 event counter
git-svn-id: file:///home/shish/svn/shimmie2/trunk@588 7f39781d-f577-437e-ae19-be835c7a54ca
2007-10-28 01:48:11 +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
1cacc2d247 make build_thumb_html be part of the themelet class
git-svn-id: file:///home/shish/svn/shimmie2/trunk@570 7f39781d-f577-437e-ae19-be835c7a54ca
2007-10-26 01:35:53 +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
1e44f93c1f allow people to add columns to the images table, then use them
git-svn-id: file:///home/shish/svn/shimmie2/trunk@511 7f39781d-f577-437e-ae19-be835c7a54ca
2007-10-02 22:23:29 +00:00
shish
5c73eca9ed this fixes things :3
git-svn-id: file:///home/shish/svn/shimmie2/trunk@487 7f39781d-f577-437e-ae19-be835c7a54ca
2007-08-27 23:52:33 +00:00
shish
24f94fe84d whitspace fix
git-svn-id: file:///home/shish/svn/shimmie2/trunk@481 7f39781d-f577-437e-ae19-be835c7a54ca
2007-08-27 22:59:58 +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
8009aa3fa8 make multi tag search not break on space
git-svn-id: file:///home/shish/svn/shimmie2/trunk@454 7f39781d-f577-437e-ae19-be835c7a54ca
2007-08-08 06:24:25 +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
0e25e00d92 argh. 20 ways of finding the install folder, and none of them work -_-
git-svn-id: file:///home/shish/svn/shimmie2/trunk@424 7f39781d-f577-437e-ae19-be835c7a54ca
2007-08-05 22:03:43 +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
1c8619d9e9 Image and comment counts not shown for user #0
git-svn-id: file:///home/shish/svn/shimmie2/trunk@416 7f39781d-f577-437e-ae19-be835c7a54ca
2007-08-02 15:10:09 +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
6a38e7f6f2 One True Debug Switch
git-svn-id: file:///home/shish/svn/shimmie2/trunk@410 7f39781d-f577-437e-ae19-be835c7a54ca
2007-08-01 16:24:34 +00:00
shish
0c1ccb73ca default links moved to initextevent
git-svn-id: file:///home/shish/svn/shimmie2/trunk@408 7f39781d-f577-437e-ae19-be835c7a54ca
2007-08-01 16:19:25 +00:00
shish
c6d99464aa default base_href set in initext
git-svn-id: file:///home/shish/svn/shimmie2/trunk@406 7f39781d-f577-437e-ae19-be835c7a54ca
2007-08-01 16:12:34 +00:00
shish
c742614828 these are set in ext/setup's initextevent handler
git-svn-id: file:///home/shish/svn/shimmie2/trunk@393 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-28 19:59:17 +00:00
shish
d6f5b3fb79 split front_page into front_page and main_page
git-svn-id: file:///home/shish/svn/shimmie2/trunk@391 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-28 19:33:16 +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
86561be3ec one less global
git-svn-id: file:///home/shish/svn/shimmie2/trunk@389 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-28 13:53:31 +00:00
shish
e2264e60b4 allow default page to have a slash
git-svn-id: file:///home/shish/svn/shimmie2/trunk@379 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-27 00:20:12 +00:00
shish
785e1dcd59 / = post/list unless set otherwise
git-svn-id: file:///home/shish/svn/shimmie2/trunk@375 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-26 13:23:38 +00:00
shish
2e8e839f5c make_link with no args links to default page
git-svn-id: file:///home/shish/svn/shimmie2/trunk@373 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-26 13:19:39 +00:00
shish
ccf45ef91f escape / as //
git-svn-id: file:///home/shish/svn/shimmie2/trunk@372 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-26 13:11:25 +00:00
shish
5feb68f23a minor tidy while doing other things that eventually got removed again
git-svn-id: file:///home/shish/svn/shimmie2/trunk@369 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-26 12:14:55 +00:00
shish
031dc61ba2 integer thumbnail dimentions
git-svn-id: file:///home/shish/svn/shimmie2/trunk@365 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-25 17:29:09 +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
0f8654db93 themable paginator
git-svn-id: file:///home/shish/svn/shimmie2/trunk@350 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-21 15:02:14 +00:00
shish
21c500027f and the rest..
git-svn-id: file:///home/shish/svn/shimmie2/trunk@346 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-20 23:24:32 +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
c908131da8 get_base_href fixed to work in root web folder
git-svn-id: file:///home/shish/svn/shimmie2/trunk@310 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-17 02:02:57 +00:00
shish
f5ec3f861e removal of data_href config variable -- it should be auto detected
git-svn-id: file:///home/shish/svn/shimmie2/trunk@304 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-16 21:30:28 +00:00
shish
ccb01e60cb oh dear :(
git-svn-id: file:///home/shish/svn/shimmie2/trunk@299 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-16 16:48:35 +00:00
shish
2a85e6b17c actually theme'd, and image source
git-svn-id: file:///home/shish/svn/shimmie2/trunk@296 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-16 14:36:29 +00:00
shish
3084446c2e goodbye, global config defaults~
git-svn-id: file:///home/shish/svn/shimmie2/trunk@294 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-16 14:09:12 +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
b4e93df363 set_default
git-svn-id: file:///home/shish/svn/shimmie2/trunk@292 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-16 12:40:44 +00:00
shish
dc23b3bdb4 remove tags_min and tags_default from config class
git-svn-id: file:///home/shish/svn/shimmie2/trunk@291 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-16 12:17:43 +00:00
shish
2b31199c6a url escape parts of link templates
git-svn-id: file:///home/shish/svn/shimmie2/trunk@285 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-16 06:50:36 +00:00
shish
061ed4a3fe wait, no
git-svn-id: file:///home/shish/svn/shimmie2/trunk@282 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-15 19:09:57 +00:00
shish
6dd48c2335 Image->get_x_link functions should return escaped urls
git-svn-id: file:///home/shish/svn/shimmie2/trunk@281 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-15 18:46:28 +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
c1dd2b6009 better variable names
git-svn-id: file:///home/shish/svn/shimmie2/trunk@270 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-12 08:50:32 +00:00
shish
b8b968ab56 ability to veto events
git-svn-id: file:///home/shish/svn/shimmie2/trunk@268 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-12 08:30:51 +00:00
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