Shish
3d5172e235
stand-alone router mode
2015-08-01 16:23:33 +01:00
Shish
e3cb33efb9
remove single-use var
2015-08-01 16:22:42 +01:00
Shish
aed08d3c12
revert a little
2015-08-01 16:15:36 +01:00
Shish
ab4c558126
php cli server uses its own request thing
2015-08-01 15:24:58 +01:00
Shish
53f19120d2
check for set vars in get_base_href
2015-08-01 14:55:53 +01:00
Shish
35d762bc32
Also update programatic check
2015-08-01 13:42:40 +01:00
Shish
e5e7f891e2
scrutinizer suggestions
2015-07-21 01:20:53 +01:00
Shish
7064e9ffcd
merge
2015-07-20 23:49:33 +01:00
Shish
f3c9f57e62
Merge pull request #491 from shish/more_https
...
More https
2015-07-20 23:28:21 +01:00
Shish
2b6f3b7266
better asserting
2015-07-19 19:04:35 +01:00
Shish
90539a32bc
validate_input() function
2015-07-19 14:46:28 +01:00
jgen
f73e0e6884
argh
2015-06-01 18:00:46 -07:00
jgen
4bf56364eb
Missed one use of $headers. Was used in only one other place. Also, change the function so that if anyone else uses it in the future it doesn't throw warnings.
2015-06-01 17:57:34 -07:00
Shish
4fd3d1a024
argh php
2015-06-01 11:23:04 +01:00
Shish
8d2b97b72f
more https support, and dedupe get_image/thumb_link
2015-06-01 11:09:19 +01:00
jgen
56b9117a20
Merge branch 'master' into develop
2015-05-31 22:43:49 -07:00
jgen
718cfa0bcf
Scrutinizer-ci has fixed this now.
2015-05-31 21:28:11 -07:00
Shish
2aea79ac35
merge common parts of handle_archive and bulk_add
2015-05-24 16:08:46 +01:00
Daku
b81d457bf7
DEBUG_SQL isn't defined during install, use quotes to avoid errors
2015-04-18 10:38:39 +01:00
Shish
55c3fd8f38
show PHP version (particularly useful when debugging php vs hhvm)
2015-04-18 10:31:24 +01:00
jgen
8e3fc1da9f
Change generated links to be aware of HTTPS.
2015-02-02 00:13:05 -08:00
Shish
4721d666cd
log time spent waiting for database queries
2014-11-26 13:09:22 +00:00
Shish
f873d2304d
Check event handler exists before calling it, in case the cache is out of date. Fixes #442
2014-08-24 11:33:05 +01:00
Shish
e259b8cd5a
bcrypt had bugs before 5.3.7
2014-05-24 10:51:09 +01:00
Daku
36713803e3
Merge pull request #418 from jgen/develop
...
Even more linting and cleaning!
2014-05-23 23:24:32 +01:00
Daku
64e2565236
check for lowercase header if camelcase header doesn't exist
...
fixes #423
2014-05-19 07:32:16 +01:00
jgen
eb18790dc9
More comments.
2014-04-28 19:50:01 -04:00
jgen
86612bb1ff
Adding more PHP Doc comments.
2014-04-28 17:36:11 -04:00
jgen
24371d8c34
Fix the PHP Doc comments.
2014-04-25 23:19:18 -04:00
jgen
5f2be45f68
Fix the PHPDoc comments on these.
2014-04-25 21:42:52 -04:00
jgen
ab3f9850e4
Removing the closing PHP "?>" tag as per style guidelines.
2014-04-24 19:01:47 -04:00
jgen
993aacaea5
Update comment to reflect that a bug has been filed with PHP-analyzer.
2014-04-24 16:55:34 -04:00
jgen
afc01fda5f
Prevent scrutinizer-ci from complaining about these fall-thoughs.
2014-04-24 01:36:04 -04:00
jgen
28d83fda0d
Even more linting and cleaning.
2014-04-19 02:33:34 -04:00
jgen
2da8c19a07
More linting!
2014-04-19 01:36:18 -04:00
Shish
f72bfbb050
fix indentation
2014-04-06 20:47:01 +01:00
Shish
c8aa3327a1
A bunch of small changes from scrutinizer-ci; some tidying, some actual bug fixes
2014-03-30 13:26:48 +01:00
Shish
db5aa56300
remove a bunch of dead code
2014-03-29 11:44:34 +00:00
Shish
cf7f79194e
Merge branch 'master' into develop
2014-03-07 08:28:03 +00:00
Shish
fa5ad5b77d
bump the minimum PHP version, the README was updated but not the version check in the code. Fixes #383
2014-03-07 08:27:34 +00:00
Shish
faec25226a
'x ?: y' is a new PHP thing?
2014-03-06 09:14:03 +00:00
jgen
7eb2bd9112
Trimming trailing blank space.
2014-02-22 15:42:09 -05:00
jgen
e6057c656f
Re-order the events to ensure InitExtEvent() is fired off both with and without users.
2014-02-22 01:22:14 -05:00
jgen
74639cd6b2
Missing bracket.
2014-02-21 20:49:17 -05:00
jgen
43f59cc4c0
Fix un-necessary PHP Notices being generated in the error log files.
2014-02-21 20:36:19 -05:00
jgen
cb135d4763
Fix the Notice being generated.
2014-02-19 03:11:46 -05:00
Daku
ae4da2b410
add option for getMimeType to return list of extensions
2014-01-13 10:03:38 +00:00
Daku
7d49e21792
readability + moved stuff
2014-01-13 08:19:12 +00:00
Daku
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
jgen
0512858bd4
Some more small tweaks for speed.
2013-10-04 17:17:42 -04:00
Shish
67c026e8d8
unique request ID, for associating several log entries with one request
2013-09-12 16:29:38 +01:00
Shish
7c140680b7
log args
2013-08-30 00:19:46 +01:00
HungryFeline
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
HungryFeline
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
Shish
dbfd747dd3
remove more slashes
2013-02-06 08:36:30 +00:00
green-ponies
ef44d6ccf3
Fix for issue 263 - ReCAPTCHA private and public keys reversed.
2012-11-03 13:49:10 -04:00
Shish
d8c670eaa6
move yet more stuff out of index.php
2012-10-16 23:05:11 +01:00
Shish
38fea60056
handle CLI_LOG_LEVEL not being set
2012-10-16 22:58:24 +01:00
Shish
073b21aaa1
split up event listener loading, so parts can be called individually
2012-10-16 22:31:50 +01:00
velocity37
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
velocity37
0663bf54a0
Grr...
2012-10-16 18:55:43 +01:00
velocity37
1bd6f9f0ba
Update core/util.inc.php
2012-10-16 18:55:38 +01:00
velocity37
412dcd05af
Add video MIME types
2012-10-16 18:55:00 +01:00
Shish
e3d385aee5
Merge branch 'master' of github.com:shish/shimmie2
2012-09-24 22:36:28 +01:00
Shish
ac812b4a2a
danbooru api updates
2012-09-24 22:36:09 +01:00
Shish
65ce0ff4e4
check filename extension by lowercased version of itself
2012-09-22 23:24:19 +01:00
Shish
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
Shish
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
Shish
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
Shish
6181d59975
that slash needs to be there >_<
2012-06-22 20:02:53 +01:00
Shish
e7df4edbee
slashes are removed already
2012-06-21 09:07:52 +01:00
Shish
2a18da523c
the define wibbling for hiphop seems to work now
2012-06-18 01:23:31 +01:00
Shish
fd5b4c5910
more re-organisation for create_monolith / hiphop friendliness
2012-06-18 01:06:36 +01:00
Shish
78d701dd53
move stuff about to make create_monolith simpler
2012-06-18 00:45:32 +01:00
Shish
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
Shish
5519c3a320
lots of tidying and removal of duplicate code
2012-06-18 00:00:21 +01:00
Shish
082e6fa31b
nice, event-based command line support; try 'php index.php' for info
2012-06-17 20:06:02 +01:00
Shish
239e028662
flash messages everywhere~
2012-06-10 04:21:03 +01:00
Shish
61754b8dfe
add a type arg, even if it's not used yet
2012-06-10 01:05:03 +01:00
Shish
37b3dd60b6
flash_message(str) function and support in themes
2012-06-09 17:00:25 +01:00
Shish
2e76add61b
enhance zglob to allow really long patterns
2012-05-22 12:46:56 +01:00
Shish
f7e25daeb5
move getMimeType to utils
2012-05-14 06:43:23 +01:00
green-ponies (jgen)
3902036477
Avoid breaking things.
2012-04-18 02:20:42 -04:00
green-ponies (jgen)
2fcc271f3d
Small typo.
2012-04-18 01:17:44 -04:00
green-ponies (jgen)
1615f79be4
Examine integers separately. Also, don't break search. >_<
2012-04-18 00:56:11 -04:00
green-ponies (jgen)
a79875c1eb
The idn_to_ascii() function is only supported by PHP version 5.3 and up.
2012-04-16 16:42:32 -04:00
green-ponies (jgen)
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
green-ponies (jgen)
372f4fad7c
Use filter_var for function url_escape($input).
2012-04-15 18:59:23 -04:00
Shish
67f1c1c51d
store enabled exts in a config file, rather than moving directories around
2012-03-31 18:59:28 +01:00
Shish
15df989f72
nicer error reporting
2012-03-31 17:07:11 +01:00
Shish
62e13eda96
always create
2012-03-30 20:28:09 +01:00
Shish
7cbb62c8cc
move data to data folder
2012-03-30 18:21:35 +01:00
Shish
29cebb44f9
event_listeners is a bit of cached data
2012-03-30 18:07:40 +01:00
Shish
e210fe739b
more spaced out priorities
2012-03-30 16:41:25 +01:00
Shish
b156d4f380
no need for 'load files in a good way' to be optional, just do it
2012-03-21 15:04:17 +00:00
Shish
144c1afcbc
ffffff, PHP, doing something weird rather than having a userful error message
2012-03-14 20:35:15 +00:00
Shish
9a0228720a
truncate as a function, which works
2012-03-13 07:01:27 +00:00
Shish
a5ba9279c4
modification dates on CSS/JS links
2012-03-12 23:17:20 +00:00
Shish
cf907237c6
with 5.2.1, we have an accurate, peak memory use
2012-03-11 04:33:24 +00:00
Shish
1b30aea557
compressed coverage logs
2012-03-11 00:36:57 +00:00