From 03a337a660a40263db0f3b5b5123cfa04f5c7505 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 18 Sep 2020 15:48:22 +0300 Subject: add basic safe mode which doesn't load any user plugins --- classes/pref/prefs.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'classes/pref/prefs.php') 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( -- cgit v1.2.3-54-g00ecf