green-ponies (jgen)
f3b6fde7a5
Working on adding a "Replace Image" feature.
2011-08-24 20:53:53 -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
a5f3a36fa4
fix for mySQL>5.1 - should remain compatible with versions prior to 5.1
2011-05-12 12:32:34 -07:00
Shish
1abb96159b
PDO returns 'false' for no rows, but various parts of the code expect it to return 'null'; for now, emulate the old behaviour
2011-03-24 14:27:11 +00:00
Shish
cd86859f08
cache anon, it gets looked up a lot
2011-03-23 11:26:11 +00:00
Shish
811f9e0f66
cd variable for sites who want /ab/cb/abcd
2011-03-23 11:19:34 +00: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
Diftraku
fb65286863
Critical change to deltree, it seems Windows version of PHP does not consider symlinks to be links when checked with is_link().
2011-03-06 03:17:40 +02:00
Diftraku
3d66c7ce41
"Fix'd" the execute query to pass args array without binding, assuming the first value is at index 0 and the query uses questionmarks.
2011-03-05 03:11:29 +02: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
20cc4cc165
don't have super-thin / super-short thumbs
2011-02-13 11:18:23 +00:00
zshall
cc6b9753bb
Added email extension.
2011-02-11 17:43:18 -05:00
Shish
4b5795cc5b
fucking php, this took an hour to debug because it just dies with no error message -_-
2011-01-26 12:19:18 +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
seinoxygen
115d992ff0
merged image zoom
2011-01-01 19:19:18 +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
2532091ae8
PDO DSN handling (PS. PHP is retarded)
2011-01-01 16:59:41 +00:00
Shish
d6baeab977
more pdo compat
2011-01-01 16:28:04 +00:00
Shish
7684def0f8
add get_pairs
2011-01-01 16:27:56 +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
8b2e3262fe
clean up database API for completeness and sensibleness
2011-01-01 15:27:24 +00:00
Shish
6b557983c4
more PDO compat
2010-12-31 20:25:03 +00:00
Shish
8e63827c0f
PDO exceptions for error handling
2010-12-31 19:56:28 +00:00
Shish
1d7b929871
convert parts of core/database to pdo
2010-12-31 19:29:15 +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
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
6cd53fed8a
csrf functions
2010-10-07 21:26:15 +01:00
Christian Walde
52f5a265fa
changed the windows coverage fix from closure to parameter passing, since older phps can't do that
2010-09-09 20:10:37 +02:00
Christian Walde
e5b3afb31c
this makes coverage dumping work on windows; on windows the cwd is changed to the apache executable's path by the time the coverage end is reached, changing the coverage end function to a closure that gives back a function with the actual shimmie cwd stored fixes this
2010-09-09 20:10:24 +02:00
Christian Walde
cd6015203e
replaced deprecated split with explode
2010-09-09 20:09:37 +02:00
Shish
c6f358a8fc
split is deprecated in php5.3, use explode instead
2010-07-30 15:36:33 +01:00
Shish
10dbe650e2
external CSS comes before external JS
2010-07-30 13:39:11 +01:00
Shish
7abb4742a5
hack
2010-07-19 13:35:10 +01:00
Shish
d80ccbe497
SimpleExtension priority framework
2010-05-28 13:06:18 +01:00
Shish
c6e61b096b
timeline function for profiling
2010-05-27 11:48:29 +01:00
Shish
23216d7549
for compiling under hiphop
2010-05-15 14:53:37 +01:00
Shish
e1f9d77271
turns out that this was necessary o_O
2010-04-26 06:07:34 +01:00
Shish
062f30abe7
Merge branch 'pagevent'
2010-04-26 04:53:31 +01:00
Shish
0bd1108933
new jquery
2010-04-26 04:52:28 +01:00
Shish
e211207ac5
event -> this
2010-04-26 03:39:02 +01:00
Shish
5a83a18df3
add the functions
2010-04-26 02:35:53 +01:00
Shish
2c1fa2fd7f
move warehouse directory creation into a single place
2010-04-23 05:46:07 +01:00
Shish
dbf529825c
double-escape backslashes as well as forward
2010-04-23 03:31:10 +01:00
Shish
3eee6f313e
avatar options
2010-04-21 17:56:01 +01:00
Shish
9cb7946d69
make memcachecache pay attention to the URI
2010-03-25 10:53:02 +00: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
f4cbd8b24f
AHA! This bug took ages to track down, as the trigger was in a completely different system to the error message... Many, many thanks to zshall for managing to reproduce the error, then narrowing it down to a single line \o/
2010-03-21 02:20:09 +00:00
Shish
7a5be72cbd
build warehouse directories on demand
2010-03-15 04:31:28 +00:00
Shish
2c710bb654
make captchas optional and off by default, some people are having problems
2010-03-14 02:14: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
a214856481
post/view?search -> post/view#search for better caching
2010-02-09 10:06:21 +00:00
Shish
320877f80b
URI based hash, for nginx compatability
2010-02-09 07:42:21 +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
74693f9d9f
make apc not warn
2010-02-02 18:14:31 +00:00
Shish
387e13f9f0
activate caches if cache_dsn is set
2010-02-02 17:34:45 +00:00
Shish
892214a0c7
APC cache mechanism, faster than memcache?
2010-02-02 17:12:40 +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
b34dc57f9e
this uses the warehouse too
2010-02-02 01:55:18 +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
f7f3057278
some only have concat, some only have pipes...
2010-02-02 00:43:10 +00:00
Shish
05150706cc
wtf git
2010-02-02 00:34:44 +00:00
Shish
9ca5fcd51a
MemCache is already used...
2010-02-01 16:17:12 +00:00
Shish
69001a375c
no concat in postgres, use pipes
2010-02-01 16:15:53 +00:00
Shish
ad83c7634c
'PRAGMA foreign_keys' is SQLite-specific
2010-02-01 16:13:24 +00:00
Shish
9d40eda409
make memcaching work for pages, and log if DEBUG is set
2010-02-01 16:11:26 +00:00
Shish
d715c38341
disable captchas when debugging from localhost
2010-01-23 12:48:43 +00:00
Shish
ccaeca19eb
make make_http not break with '' as an argument
2010-01-18 08:29:35 +00:00
Shish
13fb551fb3
SQLite now supports foreign keys (3.6.19 onwards)
2010-01-17 09:42:35 +00:00
Shish
af36f37902
documentation updates
2010-01-12 15:01:34 +00:00
Shish
f4a74c4d4c
better logging
2010-01-05 10:52:23 +00:00
Shish
3bb3ee2e86
securimage support as an alternative captcha
2010-01-03 08:15:52 +00:00
Shish
830635c5a9
preliminary image locking
2009-12-30 08:54:04 +00:00
Shish
694200d9f8
proper logging
2009-12-30 07:59:40 +00:00
Shish
d65adf1dab
Content-Length header for data pages
2009-12-26 01:00:38 +00:00
Shish
1c7ce5a3ac
get the THUMB link... *headdesk*
2009-12-24 07:34:29 +00:00
Shish
a14b2a8a63
how did nobody spot this? x_x
2009-11-20 11:51:51 +00:00
Shish
6818e598e5
forgot to replace this
2009-11-15 12:09:09 +00:00
Shish
7f47c594c8
handle the case of the SQL log failing to open
2009-11-15 10:26:17 +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
7a46a9a962
html tooltip for autodates
2009-11-10 03:49:56 +00:00
Shish
ab4f69eb88
months and years for autodate
2009-11-10 03:36:39 +00:00
Shish
1d46dbbe18
this setting is used before the database is connected to...
2009-10-26 11:39:53 +00:00
Shish
dd65b63be9
avatar css
2009-10-10 01:52:39 +01:00
Shish
6baf616692
truthomatic
2009-10-08 17:44:25 +01:00
Shish
71999a3065
find truth
2009-10-08 17:43:18 +01:00
Shish
a7caf1e060
prefixed cookies
2009-10-08 13:59:12 +01:00
Shish
159a862c02
configurability for avatars
2009-10-08 12:40:52 +01:00
Shish
6ed28c8a43
User::get_avatar_html()
2009-10-08 02:58:58 +01:00
Shish
304c479dba
make debugging and coverage separate settings
2009-09-27 14:04:27 +01:00
Shish
bb4085972b
code coverage stuff
2009-09-19 20:13:37 +01:00
Shish
f71a0e4390
configurable autodate format
2009-09-15 18:29:22 +01:00
Shish
ea215fbff2
split() is deprecated in php5.3
2009-09-14 21:19:13 +01:00
Shish
39f7688888
allow themes to override this function
2009-08-24 03:00:42 +01:00
Shish
d5dea776c5
ignore duplicate tag history entries
2009-08-24 03:33:51 +01:00
Shish
685d079da8
use_autodate option
2009-08-18 23:06:15 +01:00
Shish
76a9090ded
settable email field
2009-08-11 17:07:03 +01:00
Shish
fe9dd98387
slightly less strict filename sanitising, for the unicode users
2009-08-11 15:12:48 +01:00
Shish
51dab939ea
if hit on disk, reload into memcache
2009-08-10 13:33:08 +01:00
Shish
b1df14ca4a
only cache gets
2009-08-10 11:46:47 +01:00
Shish
a9a9318c41
better caching code
2009-08-09 13:11:54 +01:00
Shish
1e8e5adbbf
load config.php sooner
2009-08-09 13:10:59 +01:00
Shish
7c790414b5
update this too
2009-08-02 09:10:28 +01:00
Shish
1614248c35
compressed cached pages
2009-08-01 08:57:28 +01:00
Shish
bdcca24f8d
static file caching
2009-08-01 02:31:49 +01:00
Shish
a3f57c8fd6
make autodate work, and use it a bit
2009-07-28 23:56:46 +01:00
Shish
d850a562db
updateses
2009-07-28 01:09:00 +01:00
Shish
a16b3db48c
somewhat updated danbooru comment theme
2009-07-28 00:54:47 +01:00
Shish
ecef1edb14
make_http function
2009-07-24 08:08:29 +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
fd5242d1ad
more tests, and make link to image work better
2009-07-19 19:36:11 +01:00
Shish
8875422bed
someone else is defining these...
2009-07-19 17:22:01 +01:00
Shish
627ecdbf4c
lots of docs
2009-07-19 08:38:27 +01:00
Shish
d8e027b776
a load more tests
2009-07-19 04:49:14 +01:00
Shish
bc3c2d5a5b
sqlite returns column names as table.name, not just name
2009-07-17 13:10:42 +01:00
Shish
be5ed6272c
merge both log functions into one; simply saying that they take different numbers of arguments isn't enough...
2009-07-17 01:56:40 +01:00
Shish
4abf2ac7dd
more tests
2009-07-16 20:21:28 +01:00
Shish
96e69c4f20
aaaaaaaargh dates and times in sql
2009-07-16 00:05:25 +01:00
Shish Moom
8dac266af4
minor fix
2009-07-14 12:52:55 -07:00
Shish Moom
d9b97996ca
store arrays in config, edit in setup with add_multichoice_option
2009-07-11 04:43:18 -07:00
Shish Moom
f070bbe69e
auto-include library scripts
2009-07-07 06:48:59 -07:00
Shish Moom
57b2a13a62
no need for hostname
2009-07-01 05:17:09 -07:00
Shish
0b83a9d786
don't break when base_href=''
2009-06-29 19:02:25 -07:00
Erik Youngren
4bbb3569eb
You know that feeling you've done something the hard way? Yeah. Replacing theme_redirect with a three line function in core/utils.inc.php
2009-06-06 06:08:26 -07:00
Shish Moom
f77c6e64cd
array_contains -> in_array
2009-06-05 12:53:00 -07:00
Shish Moom
c5e9788358
fetch a block of users
2009-05-30 06:47:35 -07:00
Shish
4765e51e7c
explanation and credit
2009-05-15 01:52:55 -07:00
JJS
412750dec2
Bugfix: $c->get_string to $config->get_string
2009-05-12 03:11:01 -07:00
Shish
8dd3f8cbc0
SimpleExtension, like Extension but with more Magic
2009-05-11 14:08:32 -07:00
Shish
6a5b8bd46d
allow this to be turned on via config
2009-05-11 12:53:55 -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
f592167c6a
comment out example thingy
2009-05-08 04:45:23 -07:00
Shish
561c9fdbb7
punctuations
2009-05-08 04:43:45 -07:00
Shish
5609976164
no need for formatting
2009-05-08 04:41:03 -07:00
Shish
7648d3db67
newline
2009-05-08 04:07:46 -07:00
Shish
415f6901da
logging things
2009-05-08 03:52:29 -07:00
Shish
4e551cf9c5
move shimmie-specific sqlite things out of adodb and into shimmie's database engine
2009-01-25 09:18:58 -08:00
Shish
2d46a5c269
more functions that sqlite needs
2009-01-25 09:18:48 -08: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
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
35cc1aad48
more sqlite fixes
2009-01-22 09:08:33 -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
d98962a30e
a bunch of fixes
2009-01-22 05:42:44 -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
6667ac553d
niceurl magic
2009-01-22 02:49:22 -08:00
Shish
0ff11d71ed
make use of this
2009-01-21 23:21:03 -08:00
Shish
fcca11f20c
make cache engines work <_<
2009-01-20 03:54:43 -08:00
Shish
03bee56193
move extension specific parts out of user and into extensions
2009-01-20 03:24:35 -08:00
Shish
6e6a6bdd16
scoreyness
2009-01-20 03:17:49 -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
f9dffb96cb
brain fart
2009-01-20 02:33:34 -08:00
Shish
be696e46de
cache the config table (this is the most common sql query)
2009-01-19 10:47:33 -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
Shish
bb20f927eb
hackery to deal with escaping slashes
2009-01-18 06:58:32 -08:00
Shish
94c0ab0255
make tag setting work
2009-01-17 17:07:06 -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
df594aee6d
tag functions in a tag class
2009-01-04 10:39:11 -08:00
Shish
0c628f2c10
score-style index
2009-01-04 08:24:06 -08:00
Shish
7f90fdbf97
pass config to get_session_ip, so it knows what mask to use
2009-01-04 08:17:41 -08:00
Shish
93b7467fdd
a bunch of image functions moved to the image class
2009-01-04 08:15:00 -08:00
Shish
b6480f076e
days_old should be calculated
2009-01-04 08:01:01 -08:00
Shish
0770b19b04
more scoreyness
2009-01-04 07:57:54 -08:00
Shish
8acb6ae01e
classy
2009-01-04 06:40:35 -08:00
Shish
842be2696c
multiple types of config
2009-01-04 06:38:48 -08:00
Shish
b693e5f772
whitespace matching
2009-01-04 06:37:11 -08:00
Shish
2ef6491ecf
we can use exceptions \o/
2009-01-04 06:34:27 -08:00
Shish
1c8094cabf
replace the veto system with exceptions
2009-01-04 06:01:59 -08:00
Shish
76f79668b5
move imageboard specific bits to their own file
2009-01-04 05:53:14 -08:00
Shish
672390a289
share the error message, shimmie is based on score now after all...
2009-01-03 15:16:18 -08:00
Shish
cc0bd18c4f
tidying, moving to score
2009-01-03 13:06:36 -08:00
Shish
bca8221609
move extension-specific events into their extensions
2009-01-03 13:00:09 -08:00
Shish
2f8cf7c08e
die, globals
2009-01-03 12:32:57 -08:00
Shish
1d7578f052
semi-automagic niceurls?
2008-12-27 02:17:53 -08:00