summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorShevAbam <shevabam@gmail.com>2015-07-13 09:43:34 +0200
committerShevAbam <shevabam@gmail.com>2015-07-13 09:43:34 +0200
commitb330d193bbd0170b6caabd604d30fc64c7b1d2d3 (patch)
treeec4957900b62c93610457993960a22660a37c747 /index.php
parent9970343fe5c8226f25234addc6b80836c092fe1f (diff)
Add option to add custom title in header (esm:custom_title)
Last login : add option to enable or not Disk : add filesystem Disk : values are centered
Diffstat (limited to 'index.php')
-rw-r--r--index.php20
1 files changed, 15 insertions, 5 deletions
diff --git a/index.php b/index.php
index 457f85c..1aa34af 100644
--- a/index.php
+++ b/index.php
@@ -48,7 +48,12 @@ $update = $Config->checkUpdate();
</div>
<div id="hostname">
- <?php echo Misc::getHostname(); ?> - <?php echo Misc::getLanIP(); ?>
+ <?php
+ if ($Config->get('esm:custom_title') != '')
+ echo $Config->get('esm:custom_title');
+ else
+ echo Misc::getHostname().' - '.Misc::getLanIP();
+ ?>
</div>
<?php if (!is_null($update)): ?>
@@ -221,8 +226,9 @@ $update = $Config->checkUpdate();
<table>
<thead>
<tr>
+ <th class="w10p">Filesystem</th>
<th class="w20p">Mount</th>
- <th class="w35p">Use</th>
+ <th>Use</th>
<th class="w15p">Free</th>
<th class="w15p">Used</th>
<th class="w15p">Total</th>
@@ -316,9 +322,13 @@ $update = $Config->checkUpdate();
</div>
<div class="box-content">
- <table>
- <tbody></tbody>
- </table>
+ <?php if ($Config->get('last_login:enable') == true): ?>
+ <table>
+ <tbody></tbody>
+ </table>
+ <?php else: ?>
+ <p>Disabled</p>
+ <?php endif; ?>
</div>
</div>