ae4da2b410
add option for getMimeType to return list of extensions
2014-01-13 10:03:38 +00:00
7d49e21792
readability + moved stuff
2014-01-13 08:19:12 +00:00
9cae856df7
use the Content-Disposition header for filename & Content-Type for
...
extension
if either doesn't exist, it will fallback to using pathinfo
2014-01-13 08:19:01 +00:00
0512858bd4
Some more small tweaks for speed.
2013-10-04 17:17:42 -04:00
67c026e8d8
unique request ID, for associating several log entries with one request
2013-09-12 16:29:38 +01:00
7c140680b7
log args
2013-08-30 00:19:46 +01:00
65fcbcb9ba
Actually set the cookie prefix
...
When COOKIE_PREFIX was not shm (the default) the script tried to read cookies prefixed with the new prefix but the script was setting the old default prefix from before the constants were implemented.
2013-07-02 06:46:54 +02:00
616aa3300a
Don't check the certificate when transloading
...
This allows the download of images via https even if the cert is self-signed.
2013-07-02 04:44:27 +02:00
dbfd747dd3
remove more slashes
2013-02-06 08:36:30 +00:00
ef44d6ccf3
Fix for issue 263 - ReCAPTCHA private and public keys reversed.
2012-11-03 13:49:10 -04:00
d8c670eaa6
move yet more stuff out of index.php
2012-10-16 23:05:11 +01:00
38fea60056
handle CLI_LOG_LEVEL not being set
2012-10-16 22:58:24 +01:00
073b21aaa1
split up event listener loading, so parts can be called individually
2012-10-16 22:31:50 +01:00
52718b0590
util.inc: Default to static extension lookup
...
Magic can return invalid results for video files, breaking their playback. Default to the static extension lookup to avoid this problem but still return application/octet-stream if nothing works.
2012-10-16 18:56:39 +01:00
0663bf54a0
Grr...
2012-10-16 18:55:43 +01:00
1bd6f9f0ba
Update core/util.inc.php
2012-10-16 18:55:38 +01:00
412dcd05af
Add video MIME types
2012-10-16 18:55:00 +01:00
e3d385aee5
Merge branch 'master' of github.com:shish/shimmie2
2012-09-24 22:36:28 +01:00
ac812b4a2a
danbooru api updates
2012-09-24 22:36:09 +01:00
65ce0ff4e4
check filename extension by lowercased version of itself
2012-09-22 23:24:19 +01:00
06426bdfe6
when checking mime types, use the filename.ext from the DB, not the (non-existent) .ext on disk
2012-09-22 23:15:25 +01:00
d313cea8a7
create the DB connection on demand; some pages don't require one at all thanks to caching
2012-06-24 00:50:13 +01:00
1c5bf478d9
initialise global _execs, else we get 'page used queries' when we want 'page used 0 queries'
2012-06-23 23:37:41 +01:00
6181d59975
that slash needs to be there >_<
2012-06-22 20:02:53 +01:00
e7df4edbee
slashes are removed already
2012-06-21 09:07:52 +01:00
2a18da523c
the define wibbling for hiphop seems to work now
2012-06-18 01:23:31 +01:00
fd5b4c5910
more re-organisation for create_monolith / hiphop friendliness
2012-06-18 01:06:36 +01:00
78d701dd53
move stuff about to make create_monolith simpler
2012-06-18 00:45:32 +01:00
930de7fc8c
remove built-in full-page caching; it doesn't do much any more, and everything it does do can be done better by Varnish
2012-06-18 00:07:12 +01:00
5519c3a320
lots of tidying and removal of duplicate code
2012-06-18 00:00:21 +01:00
082e6fa31b
nice, event-based command line support; try 'php index.php' for info
2012-06-17 20:06:02 +01:00
239e028662
flash messages everywhere~
2012-06-10 04:21:03 +01:00
61754b8dfe
add a type arg, even if it's not used yet
2012-06-10 01:05:03 +01:00
37b3dd60b6
flash_message(str) function and support in themes
2012-06-09 17:00:25 +01:00
2e76add61b
enhance zglob to allow really long patterns
2012-05-22 12:46:56 +01:00
f7e25daeb5
move getMimeType to utils
2012-05-14 06:43:23 +01:00
3902036477
Avoid breaking things.
2012-04-18 02:20:42 -04:00
2fcc271f3d
Small typo.
2012-04-18 01:17:44 -04:00
1615f79be4
Examine integers separately. Also, don't break search. >_<
2012-04-18 00:56:11 -04:00
a79875c1eb
The idn_to_ascii() function is only supported by PHP version 5.3 and up.
2012-04-16 16:42:32 -04:00
a0a0ba5bbc
A better version of bool_escape() that uses filter_var if possible.
...
Also removed undb_bool() as it was basically a copy of the old bool_escape function.
2012-04-15 19:28:27 -04:00
372f4fad7c
Use filter_var for function url_escape($input).
2012-04-15 18:59:23 -04:00
67f1c1c51d
store enabled exts in a config file, rather than moving directories around
2012-03-31 18:59:28 +01:00
15df989f72
nicer error reporting
2012-03-31 17:07:11 +01:00
62e13eda96
always create
2012-03-30 20:28:09 +01:00
7cbb62c8cc
move data to data folder
2012-03-30 18:21:35 +01:00
29cebb44f9
event_listeners is a bit of cached data
2012-03-30 18:07:40 +01:00
e210fe739b
more spaced out priorities
2012-03-30 16:41:25 +01:00
b156d4f380
no need for 'load files in a good way' to be optional, just do it
2012-03-21 15:04:17 +00:00
144c1afcbc
ffffff, PHP, doing something weird rather than having a userful error message
2012-03-14 20:35:15 +00:00