added possibility to add a logo into the top-right corner via setup.php

This commit is contained in:
dg9vh 2016-09-28 20:58:38 +00:00
parent 662fa9bb02
commit a1ef4c2299
3 changed files with 13 additions and 2 deletions

View file

@ -41,7 +41,7 @@ include "version.php";
<title><?php echo getCallsign($mmdvmconfigs) ?> - MMDVM-Dashboard by DG9VH</title>
</head>
<body>
<div class="page-header">
<div class="page-header" style="position:relative;">
<h1><small>MMDVM-Dashboard by DG9VH for <?php
if (getConfigItem("General", "Duplex", $mmdvmconfigs) == "1") {
echo "Repeater";
@ -50,6 +50,13 @@ include "version.php";
}
?>:</small> <?php echo getCallsign($mmdvmconfigs) ?></h1>
<h4>MMDVMHost by G4KLX Version: <?php echo getMMDVMHostVersion() ?></h4>
<?php
if (defined("LOGO")) {
?>
<div id="SEFlagge" style="position:absolute;top:-43px;right:10px;"><img src="<?php echo LOGO ?>" width="250px" style="width:250px; border-radius:10px;box-shadow:2px 2px 2px #808080; padding:1px;background:#FFFFFF;border:1px solid #808080;" border="0" hspace="10" vspace="10" align="absmiddle"></div>
<?php
}
?>
</div>
<?php
if (defined("ENABLEMANAGEMENT")) {

View file

@ -119,6 +119,10 @@ include "include/tools.php";
</div>
<div class="container">
<h2>Global Configuration</h2>
<div class="input-group">
<span class="input-group-addon" id="LOGO" style="width: 300px">URL to Logo</span>
<input type="text" value="<?php echo constant("LOGO") ?>" name="LOGO" class="form-control" placeholder="http://your-logo" aria-describedby="LOGO">
</div>
<div class="input-group">
<span class="input-group-addon" id="REFRESHAFTER" style="width: 300px">Refresh page after in seconds</span>
<input type="text" value="<?php echo constant("REFRESHAFTER") ?>" name="REFRESHAFTER" class="form-control" placeholder="60" aria-describedby="REFRESHAFTER" required data-fv-notempty-message="Value is required">

View file

@ -1,3 +1,3 @@
<?php
define("VERSION", "20160925-3");
define("VERSION", "20160928-1");
?>