Commit graph

514 commits

Author SHA1 Message Date
green-ponies (jgen)
ea15574226 Changes and tweaks for speed.
Because every microsecond counts! :P
These changes are based on information from:
http://phpbench.com/
http://stackoverflow.com/questions/482202/is-there-a-performance-benefit-single-quote-vs-double-quote-in-php
2012-01-11 15:08:27 -05:00
Shish
5b717870d1 case sensitivity blargh 2012-01-01 17:13:50 +00:00
Shish
beff330a37 Merge branch 'master' of github.com:shish/shimmie2 2012-01-01 16:54:58 +00:00
Shish
56a780bfd3 in per-letter mode, don't separate a and A 2012-01-01 16:54:44 +00:00
Daku
dff1eef51a make_form now has a onsubmit option 2011-12-31 14:18:55 +00:00
Shish
ad2bb8b8b6 switch timeago to a javascript implementation 2011-12-31 14:12:34 +00:00
Shish
cfbeddde9f HTTP level caching, so we can stick varnish in front of the web pages 2011-12-27 19:23:37 +00:00
Shish
b7bd74055d PHP is officially the worst web API ever 2011-12-25 17:57:15 +00:00
Shish
67e0c87b20 create a generic bool_escape function, use that 2011-12-25 15:11:26 +00:00
Shish
3e6d5cec6f rating event rather than database access 2011-12-25 14:35:55 +00:00
Shish Moom
d25ef4e6f6 Merge pull request #63 from DakuTree/master
Few new features + More fixes
2011-12-25 06:31:36 -08:00
Shish
cd609141f4 optional warehouse split levels 2011-12-25 11:24:20 +00:00
Shish
6d3cdb208c those functions aren't /called/ unless coverage is set ._.;; 2011-12-24 21:55:33 +00:00
Shish
883c73c9ff even if xdebug is installed, only run coverage when told to 2011-12-24 21:51:48 +00:00
Daku
ee1fc7e3ae Admin can now lock image while transloading. 2011-12-24 20:18:00 +00:00
Shish
5121e99dbe speed hax and niceurl forcing from r34 2011-12-24 14:49:55 +00:00
Daku
cd11e75e40 Can now set rating/external source while uploading via the bookmarklets. 2011-12-23 21:27:38 +00:00
Daku
c37569f3d4 Fixed reCaptcha. 2011-12-21 02:28:39 +00:00
Shish
a89c5943d8 error details when the file copy fails 2011-11-08 11:02:04 +00:00
green-ponies (jgen)
ef61a4cb4a Small patch for Blotter extension, and also added Version to debug output. 2011-10-23 21:54:04 -04:00
Shish
ac3bf33402 tag_n wasn't used by accurate search, but was by ugly 2011-10-18 22:32:04 +01:00
Shish
5a6501f2be log event handlers as well as events 2011-10-09 17:08:13 +01:00
Shish
eb7927b3b1 Merge branch 'master' of github.com:shish/shimmie2 2011-10-09 12:10:22 +01:00
Shish
4b86497816 support for Context profiling 2011-10-09 12:01:48 +01:00
green-ponies (jgen)
bba4301bfa Disabled option for Minifying CSS and JavaScript. (not currently supported) 2011-10-06 15:23:49 -04:00
Yaro
9e2522f86f fixed unpredictable working directory inside register_shutdown_function 2011-10-04 17:03:53 +04:00
green-ponies (jgen)
c1df2653a8 Cleaned up the comments a bit. 2011-09-25 14:16:20 -04:00
green-ponies (jgen)
944f3bdf3d Fixed caching from not outputing JS if only CSS is enabled. 2011-09-25 14:00:56 -04:00
green-ponies (jgen)
97d137f365 Working on Automatic Caching feature for CSS and JS files.
Added config options to main Shimmie config.
2011-09-25 13:40:34 -04:00
Shish
a1da59804e Merge branch 'master' of github.com:shish/shimmie2 2011-09-25 12:45:59 +01:00
Shish
5b09467310 fix for alisaing suggested by Diftraku 2011-09-25 12:45:08 +01:00
green-ponies (jgen)
2e276a095e Fix for Issue 22 from HungryFeline. 2011-09-11 21:41:46 -04:00
green-ponies (jgen)
864e823447 Small change to headers for efficiency.
These two headers are always sent and do not need
to be added to the header queue. (wastes time)
2011-09-11 21:26:23 -04:00
green-ponies (jgen)
6e7789c40b Added feature to try and cache the CSS and Javascript files by default.
This reduces the total number of HTTP requests (and hopefully
allows the site to load faster).
2011-09-11 21:24:18 -04:00
green-ponies (jgen)
1c8ba8dc26 Wrong brackets. 2011-09-04 14:24:14 -04:00
green-ponies (jgen)
c2ef8736b8 Fixed a typo. 2011-09-04 14:19:06 -04:00
green-ponies (jgen)
bd31bcd79a The page class now supports both HTML headers and HTTP headers.
From the comment:
FIXME: should be $page->blah
2011-09-04 14:06:44 -04:00
green-ponies (jgen)
19a3a5a6f9 Working on changed $page to support http headers as well as html headers. 2011-09-04 14:06:39 -04:00
green-ponies (jgen)
fca286913e Working on moving header() inside of the global $page data structure. 2011-09-04 14:06:34 -04:00
green-ponies (jgen)
d05344d5e3 Image resize is working now! (uses the GD library only for now)
Moved resize into contrib folder.
2011-09-04 11:17:14 -04:00
green-ponies (jgen)
17999cade8 Image Replace feature working, just needs more testing. 2011-08-25 21:35:59 -04:00
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