diff options
author | Andrew Dolgov <[email protected]> | 2020-09-18 15:48:22 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2020-09-18 15:48:22 +0300 |
commit | 03a337a660a40263db0f3b5b5123cfa04f5c7505 (patch) | |
tree | 18bc4241a2784217803f78f43fe7b87727c6c8bb /classes/pref | |
parent | 3588d5186ef7321fa573adbb62f42b05d7a138be (diff) |
add basic safe mode which doesn't load any user plugins
Diffstat (limited to 'classes/pref')
-rw-r--r-- | classes/pref/prefs.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index 25aac9964..ac2684683 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -858,6 +858,10 @@ class Pref_Prefs extends Handler_Protected { print_warning("Your PHP configuration has open_basedir restrictions enabled. Some plugins relying on CURL for functionality may not work correctly."); } + if ($_SESSION["safe_mode"]) { + print_error("You have logged in using safe mode, no user plugins will be actually enabled until you login again."); + } + $feed_handler_whitelist = [ "Af_Comics" ]; $feed_handlers = array_merge( |