Commit graph

466 commits

Author SHA1 Message Date
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
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
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