Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2021-11-05 22:12:43 +0300
committernachoparker <nacho@ownyourbits.com>2021-11-05 22:12:56 +0300
commitc56a4db369a1c6238bc52a23287e590e5590d7a5 (patch)
tree2d40e65ac49664f88e924ca9b84c1e07b9995bdb
parent13f69cda0d4c4272ab96efff3590571e657b7de2 (diff)
ncp-web: hide power menu on dockerv1.43.6
Signed-off-by: nachoparker <nacho@ownyourbits.com>
-rw-r--r--ncp-web/index.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/ncp-web/index.php b/ncp-web/index.php
index fc909a68..e43addfb 100644
--- a/ncp-web/index.php
+++ b/ncp-web/index.php
@@ -214,11 +214,17 @@ HTML;
</div>
</div>
</a>
+ <?php
+ // Skip section in docker container
+ if ( !file_exists( '/.docker-image' ) )
+ echo <<<HTML
<div id="poweroff" title="<?php echo $l->__("Power Off"); ?>">
<div class="expand">
<div class="icon-power-white"></div>
</div>
</div>
+HTML
+?>
</div>
</header>