Add demo mode indicator to panes

This commit is contained in:
mattpass
2020-09-26 08:33:12 +01:00
parent 8770f6fe58
commit 74fcd33c97
6 changed files with 22 additions and 2 deletions

View File

@@ -148,6 +148,10 @@ let restoreVersion = function() {
}
</script>
<?php
echo $systemClass->getDemoModeIndicator(true);
?>
</body>
</html>

View File

@@ -283,6 +283,10 @@ if (true === isset($_GET['target']) && false !== strpos($_GET['target'], "filena
};
</script>
<?php
echo $systemClass->getDemoModeIndicator(true);
?>
</body>
</html>

View File

@@ -165,7 +165,7 @@ function deletePlugin($dir) {
<h1><?php echo $t['plugins'];?></h1>
<a href="javascript:parent.ICEcoder.showManual('<?php echo $ICEcoder["versionNo"];?>','plugins')" style="position: absolute; top: 26px; right: 20px"><div style="padding: 10px; background: #333; color: #fff; font-size: 18px"><?php echo $t['Guide to writing...'];?></div></a>
<a href="javascript:parent.ICEcoder.showManual('<?php echo $ICEcoder["versionNo"];?>','plugins')" style="position: absolute; top: 26px; right: 20px"><div style="position: relative; display: inline-block; padding: 10px; background: #333; color: #fff; font-size: 18px; z-index: 2"><?php echo $t['Guide to writing...'];?></div></a>
<div class="pluginsPane">
<?php
$plugins = $ICEcoder['plugins'];
@@ -257,6 +257,10 @@ function deletePlugin($dir) {
</div>
</div>
<?php
echo $systemClass->getDemoModeIndicator(true);
?>
</body>
</html>

View File

@@ -173,6 +173,10 @@ const validatePerms = function() {
}
</script>
<?php
echo $systemClass->getDemoModeIndicator(true);
?>
</body>
</html>

View File

@@ -516,6 +516,10 @@ function submitSettings() {
<input type="hidden" name="csrf" value="<?php echo $_SESSION["csrf"]; ?>">
</form>
<?php
echo $systemClass->getDemoModeIndicator(false);
?>
</body>
</html>

View File

@@ -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'] . "<br><br>Sorry, no command received"),