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 --- include/functions.php | 2 +- include/login_form.php | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/functions.php b/include/functions.php index 4031afa6e..0a02ff0d5 100644 --- a/include/functions.php +++ b/include/functions.php @@ -714,7 +714,7 @@ if (!$pluginhost) $pluginhost = PluginHost::getInstance(); - if ($owner_uid && SCHEMA_VERSION >= 100) { + if ($owner_uid && SCHEMA_VERSION >= 100 && !$_SESSION["safe_mode"]) { $plugins = get_pref("_ENABLED_PLUGINS", $owner_uid); $pluginhost->load($plugins, PluginHost::KIND_USER, $owner_uid); diff --git a/include/login_form.php b/include/login_form.php index 29fbe3aba..d2688d0ec 100755 --- a/include/login_form.php +++ b/include/login_form.php @@ -146,6 +146,14 @@ +
+ + + +
+ 0) { ?>
-- cgit v1.2.3-54-g00ecf