Permalink
Browse files

Add alias to TV Dash tab title

  • Loading branch information...
NEMS Linux
NEMS Linux committed Jan 12, 2019
1 parent 2009b9d commit cd9af7ebb9679a45e51bdc510de2d16f27ffffbd
Showing with 7 additions and 0 deletions.
  1. +7 −0 tv/index.php
@@ -20,6 +20,13 @@
$refreshvalue = 30; //value in seconds to refresh data
$pagetitle = "NEMS TV Dashboard";
$nemsalias = trim(shell_exec('/usr/local/bin/nems-info alias'));
if (isset($nemsalias) && strtoupper($nemsalias) != 'NEMS') {
$pagetitle = 'NEMS TV: ' . $nemsalias;
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>

0 comments on commit cd9af7e

Please sign in to comment.