From 74fcd33c972244865335f18827d7a4fe6927ab7c Mon Sep 17 00:00:00 2001 From: mattpass Date: Sat, 26 Sep 2020 08:33:12 +0100 Subject: [PATCH] Add demo mode indicator to panes --- lib/backup-versions.php | 4 ++++ lib/multiple-results.php | 4 ++++ lib/plugins-manager.php | 6 +++++- lib/properties.php | 4 ++++ lib/settings-screen.php | 4 ++++ lib/terminal-xhr.php | 2 +- 6 files changed, 22 insertions(+), 2 deletions(-) diff --git a/lib/backup-versions.php b/lib/backup-versions.php index 64214e4..af00d46 100644 --- a/lib/backup-versions.php +++ b/lib/backup-versions.php @@ -148,6 +148,10 @@ let restoreVersion = function() { } +getDemoModeIndicator(true); +?> + diff --git a/lib/multiple-results.php b/lib/multiple-results.php index 43fdeb3..7e082bc 100644 --- a/lib/multiple-results.php +++ b/lib/multiple-results.php @@ -283,6 +283,10 @@ if (true === isset($_GET['target']) && false !== strpos($_GET['target'], "filena }; +getDemoModeIndicator(true); +?> + diff --git a/lib/plugins-manager.php b/lib/plugins-manager.php index ff26292..31270a3 100644 --- a/lib/plugins-manager.php +++ b/lib/plugins-manager.php @@ -165,7 +165,7 @@ function deletePlugin($dir) {

-','plugins')" style="position: absolute; top: 26px; right: 20px">
+','plugins')" style="position: absolute; top: 26px; right: 20px">
+getDemoModeIndicator(true); +?> + diff --git a/lib/properties.php b/lib/properties.php index ced0430..a4e9b20 100644 --- a/lib/properties.php +++ b/lib/properties.php @@ -173,6 +173,10 @@ const validatePerms = function() { } +getDemoModeIndicator(true); +?> + diff --git a/lib/settings-screen.php b/lib/settings-screen.php index 54ff47f..e43ee5c 100644 --- a/lib/settings-screen.php +++ b/lib/settings-screen.php @@ -516,6 +516,10 @@ function submitSettings() { "> +getDemoModeIndicator(false); +?> + diff --git a/lib/terminal-xhr.php b/lib/terminal-xhr.php index ee0b369..274f550 100644 --- a/lib/terminal-xhr.php +++ b/lib/terminal-xhr.php @@ -54,7 +54,7 @@ if (true === $demoMode) { exit; } -// If in demo mode, display message and go no further +// If no command, display message and go no further if (false === isset($_REQUEST['command'])) { echo json_encode([ "output" => returnHTMLPromptCommand($_REQUEST['command'] . "

Sorry, no command received"),