diff options
author | ShevAbam <shevabam@gmail.com> | 2015-07-13 09:43:34 +0200 |
---|---|---|
committer | ShevAbam <shevabam@gmail.com> | 2015-07-13 09:43:34 +0200 |
commit | b330d193bbd0170b6caabd604d30fc64c7b1d2d3 (patch) | |
tree | ec4957900b62c93610457993960a22660a37c747 /index.php | |
parent | 9970343fe5c8226f25234addc6b80836c092fe1f (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.php | 20 |
1 files changed, 15 insertions, 5 deletions
@@ -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> |