mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 08:25:55 +00:00
add basic safe mode which doesn't load any user plugins
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -146,6 +146,14 @@
|
||||
<?php echo __("Does not display images in articles, reduces automatic refreshes."); ?>
|
||||
</div>
|
||||
|
||||
<fieldset class="narrow">
|
||||
<label> </label>
|
||||
|
||||
<label ><input dojoType="dijit.form.CheckBox" name="safe_mode" id="safe_mode"
|
||||
type="checkbox">
|
||||
<?php echo __("Safe mode (no plugins)") ?></label>
|
||||
</fieldset>
|
||||
|
||||
<?php if (SESSION_COOKIE_LIFETIME > 0) { ?>
|
||||
|
||||
<fieldset class="narrow">
|
||||
|
||||
Reference in New Issue
Block a user