Permalink
Browse files

NEMS Dashboard tab title will now show NEMS Alias

  • Loading branch information...
NEMS Linux
NEMS Linux committed Jan 12, 2019
1 parent 889fa5b commit 2009b9d167f5c30e8298d478af7851bdc17885ce
Showing with 10 additions and 2 deletions.
  1. +10 −2 inc/header.php
@@ -3,8 +3,16 @@
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!--> <html lang="en"> <!--<![endif]-->
<head>
<title>NEMS Linux</title>

<?php
$nemsalias = trim(shell_exec('/usr/local/bin/nems-info alias'));
echo ' <title>NEMS';
if (isset($nemsalias) && strtoupper($nemsalias) != 'NEMS') {
echo ': ' . $nemsalias;
} else {
echo ' Server';
}
echo '</title>';
?>
<!-- Meta -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

0 comments on commit 2009b9d

Please sign in to comment.