mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-20 23:37:05 +01:00
Add demo mode indicator to panes
This commit is contained in:
@@ -148,6 +148,10 @@ let restoreVersion = function() {
|
||||
}
|
||||
</script>
|
||||
|
||||
<?php
|
||||
echo $systemClass->getDemoModeIndicator(true);
|
||||
?>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
@@ -283,6 +283,10 @@ if (true === isset($_GET['target']) && false !== strpos($_GET['target'], "filena
|
||||
};
|
||||
</script>
|
||||
|
||||
<?php
|
||||
echo $systemClass->getDemoModeIndicator(true);
|
||||
?>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -173,6 +173,10 @@ const validatePerms = function() {
|
||||
}
|
||||
</script>
|
||||
|
||||
<?php
|
||||
echo $systemClass->getDemoModeIndicator(true);
|
||||
?>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
@@ -516,6 +516,10 @@ function submitSettings() {
|
||||
<input type="hidden" name="csrf" value="<?php echo $_SESSION["csrf"]; ?>">
|
||||
</form>
|
||||
|
||||
<?php
|
||||
echo $systemClass->getDemoModeIndicator(false);
|
||||
?>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user