Permalink
Browse files

Don't show default alias on dashboard

  • Loading branch information...
NEMS Linux
NEMS Linux committed Jan 1, 2019
1 parent 403c812 commit 2360d158fbef7615c904155038cd9dccb4c61b7c
Showing with 2 additions and 2 deletions.
  1. +1 −1 inc/functions.php
  2. +1 −1 index.php
@@ -1,7 +1,7 @@
<?php
$functions_loaded=1;
$alias = shell_exec('/usr/local/bin/nems-info alias');
$alias = trim(shell_exec('/usr/local/bin/nems-info alias'));
function ver($product='nems') {
$platform = new stdClass();
@@ -27,7 +27,7 @@
<div class="parallax-counter-v4 parallaxBg1" id="facts">
<span style="padding:10px 20px;"><span class="color-green">N</span>EMS Linux Version <?= ver('nems') ?></span><br />
<span style="color: #aaa;font-size:0.6em;">For <?php $platform = ver('platform'); echo $platform->name; ?></span><br />
<span style="color: orange;font-size:0.8em;"><?= $alias ?></span>
<?php if (strtoupper($alias) != 'NEMS') echo '<span style="color: orange;font-size:0.8em;">' . $alias . '</span>'; ?>
<?php if (ver('nems-available') > ver('nems')) echo '<div class="alert alert-warning fade in"><strong>Note:</strong> NEMS ' . ver('nems-available') . ' is available.<br /><a class="btn btn-u rounded" href="http://docs.nemslinux.com/changelogs/nems_' . ver('nems-branch-avail') . '" target="_blank">Changelog</a></div>'; ?>
<?php if ($online == 0) echo '<div class="alert alert-danger fade in"><strong>Warning:</strong> NEMS can\'t connect to the update servers. Please make sure Internet is properly configured for your NEMS server.</div>'; ?>
<br /><br />

0 comments on commit 2360d15

Please sign in to comment.