Commit graph

147 commits

Author SHA1 Message Date
thoughever
f15407bc75 X-Real-IP support and Varnish PURGE config options
X-Real-IP for core functionality

Global config define REVERSE_PROXY_X_HEADERS

Config host and port for varnish PURGE

config option to specify PURGE protocol

exception in curl purge now shows error code

ipv6 x-real-ip addresses are now validated properly

X-Forwarded-Proto enabled by define
2022-01-20 22:25:22 +00:00
Shish
81fe37de50 transactions 2020-10-27 22:03:56 +00:00
Shish
0dd7f62b54 allow use of polyfills in installer 2020-10-25 19:40:24 +00:00
Shish
723f316512 avoid repeatedly fetching the same user when viewing PM list 2020-10-25 17:05:36 +00:00
Shish
2197b15012 Add core/sanitize_php.php
A small number of PHP-sanity things (eg don't silently ignore errors) to
be included right at the very start of index.php and tests/bootstrap.php
2020-06-24 14:54:46 +01:00
Shish
a3a129df5f more niceurlness 2020-03-27 20:53:21 +00:00
Shish
ea0e83abc9 clearer missing-vendor screen 2020-03-23 19:50:28 +00:00
Shish
040bffa4f6 even the installer requires composer now, so check for that first 2020-03-23 18:47:18 +00:00
Shish
9147b64625 more dev docs 2020-03-23 18:21:27 +00:00
Shish
3206110cf4 InitExt / DatabaseUpgrade as part of the try/catch 2020-03-18 20:27:52 +00:00
Shish
1597eff082 lint fixing 2020-03-13 09:23:54 +00:00
Shish
e1e161759e rename handle_static to static_files - stop confusing it with file handlers 2020-02-23 18:48:25 +00:00
Shish
45fc6758f0 didn't mean to commit the granular bootstrap tracing... 2020-02-07 22:10:26 +00:00
Shish
cdaecb3380 format 2020-02-06 03:10:30 +00:00
Shish
2b994d5c29 Merge branch 'master' of https://github.com/shish/shimmie2 2020-02-06 03:03:27 +00:00
Shish
81880f7458 Make installer nice again 2020-02-06 02:19:51 +00:00
Shish
353f536698 UA in trace 2020-02-05 17:23:31 +00:00
Shish
adcd1b6b5e IP in slow log 2020-02-05 17:20:59 +00:00
Shish
188d809ee7 trace all CLI commands 2020-02-05 00:16:30 +00:00
Shish
d880dc7997 don't fail to trace CLI 2020-02-02 17:00:55 +00:00
Shish
81cd320928 don't trigger traces for slow uploads 2020-02-02 02:09:34 +00:00
Shish
22c7cab0cd Merge AUTO_DB_UPGRADE into SPEED_HAX 2020-01-27 19:52:54 +00:00
Shish
7e43e2e304 split www stuff to index.php and test things to tests/bootstrap.php 2020-01-27 19:28:58 +00:00
Shish
b0237ddd97 more stuff to util.php 2020-01-27 19:05:43 +00:00
Shish
903679dc53 more stuff into regular functions 2020-01-27 18:24:11 +00:00
Shish
54067f02a4 fix merge 2019-09-29 15:44:59 +01:00
Shish
e6a402cd4e Merge branch 'custom_ratings' into develop 2019-09-29 14:41:14 +01:00
Shish
f5119b20a3 formatting 2019-09-29 14:32:51 +01:00
Shish
a6bb15d859 formatting 2019-09-29 14:30:55 +01:00
matthew
cf8ed3b134 Added UserLoginEvent 2019-09-29 14:21:23 +01:00
Matthew Barbour
73b784266e Moved user config stuff into an extension 2019-09-29 14:20:40 +01:00
matthew
120cdb49a6 Added $user_config global based on existing config object for storing user-specific settings.
Added event to the user page so that extensions can hook into it, providing user-specific setting controls
2019-09-29 14:19:52 +01:00
Matthew Barbour
91b46d6598 Moved user config stuff into an extension 2019-08-07 15:49:56 -05:00
Matthew Barbour
8f0aa8a4ca Added $user_config global based on existing config object for storing user-specific settings.
Added event to the user page so that extensions can hook into it, providing user-specific setting controls
2019-08-07 15:48:18 -05:00
Shish
4cadce1de0 merge slow-page-log into tracer, fixes #673 2019-07-07 13:51:19 +01:00
Shish
ccb9c493d5 s/Context/EventTracer/g 2019-07-05 20:49:47 +01:00
Matthew Barbour
cb436cc182 Added transaction check before main rollback 2019-07-05 16:25:03 +01:00
Matthew Barbour
ae24b5c2e8 Moved transaction commit to above fastcgi_finish_request to prevent the page refreshing before the transaction actually commits. 2019-07-05 16:25:03 +01:00
Shish
bf473f6d51 more lint fixes 2019-05-29 18:23:29 +01:00
Shish
34b05cca7c PSR-2. I'm not a huge fan, but ugly consistency beats no consistency... 2019-05-28 17:59:38 +01:00
Shish
f4c18930ce option to log slow pages 2019-05-26 10:42:58 +01:00
Shish
c9ccb22951 make handle_static its own extension 2018-11-11 17:38:32 +00:00
Shish
65d2172ede move images and thumbs to data/ 2018-11-07 16:06:10 +00:00
Shish
cefe1c0325 a bunch of installer tweaks 2018-11-07 00:25:43 +00:00
Shish
b2f10ea5ab split up files in core/ for saner management 2018-11-05 22:30:18 +00:00
Shish
8b2c580930 treat phpdbg the same as php-cli 2018-07-15 19:40:53 +01:00
Shish
c7ca2f4154 un-bundle context.php 2017-09-21 05:00:59 +01:00
Daku
7f4e96240b throw error if vendor/ doesn't exist 2016-06-18 06:42:52 +01:00
Shish
7762b2c703 do InitExtEvent in bootstrap, before user exists 2015-08-03 15:49:38 +01:00
Shish
0b385d05af wibble init into a separate bootstrap file, for more unit-testability 2015-08-02 19:40:57 +01:00