diff --git a/classes/dlg.php b/classes/dlg.php index fa154d7a4..64f9aca9d 100644 --- a/classes/dlg.php +++ b/classes/dlg.php @@ -202,6 +202,6 @@ class Dlg extends Handler_Protected { print ""; - print ""; + print ""; } } diff --git a/classes/rpc.php b/classes/rpc.php index d4fdd1cd0..a6ddf7004 100755 --- a/classes/rpc.php +++ b/classes/rpc.php @@ -454,6 +454,7 @@ class RPC extends Handler_Protected { $params[strtolower($param)] = (int) get_pref($param); } + $params["safe_mode"] = !empty($_SESSION["safe_mode"]); $params["check_for_updates"] = CHECK_FOR_UPDATES; $params["icons_url"] = ICONS_URL; $params["cookie_lifetime"] = SESSION_COOKIE_LIFETIME; diff --git a/include/login_form.php b/include/login_form.php index 0e8f8389e..f3f5d448e 100755 --- a/include/login_form.php +++ b/include/login_form.php @@ -153,11 +153,14 @@
- +
+
+ +
0) { ?>
diff --git a/index.php b/index.php index ead02f2c4..93b3da71e 100644 --- a/index.php +++ b/index.php @@ -39,7 +39,7 @@ Tiny Tiny RSS - + ${__('Tiny Tiny RSS is running in safe mode. All themes and plugins are disabled. You will need to log out and back in to disable it.')} + + + `, + id: 'safeModeDlg', + style: "width: 600px", + onCancel: function () { + return true; + }, + onExecute: function () { + return true; + }, + onClose: function () { + return true; + } + }); + + dialog.show(); + } + // bw_limit disables timeout() so we request initial counters separately if (App.getInitParam("bw_limit")) { this.requestCounters(true); diff --git a/prefs.php b/prefs.php index 07e636a0a..671a81473 100644 --- a/prefs.php +++ b/prefs.php @@ -31,7 +31,7 @@ Tiny Tiny RSS : <?php echo __("Preferences") ?> -