improved buttons of ea4gkq to be enabled via setup-switch
This commit is contained in:
parent
f5c7bed224
commit
e34e1fdd28
3 changed files with 9 additions and 2 deletions
|
@ -45,7 +45,7 @@ At the moment there are several information-sections shown:
|
||||||
|
|
||||||
New features by EA4GKQ
|
New features by EA4GKQ
|
||||||
======================
|
======================
|
||||||
* Buttons toolbar
|
* Buttons toolbar, security-hint: to make this function secure, please enable htpasswd-function for folder "scripts"!
|
||||||
* LastHeard table are sorted
|
* LastHeard table are sorted
|
||||||
* Some mods to improve mobile experience
|
* Some mods to improve mobile experience
|
||||||
|
|
||||||
|
|
|
@ -41,12 +41,15 @@ include "include/functions.php";
|
||||||
?>:</small> <?php echo getCallsign($mmdvmconfigs) ?></h1>
|
?>:</small> <?php echo getCallsign($mmdvmconfigs) ?></h1>
|
||||||
<h4>MMDVMHost by G4KLX Version: <?php echo getMMDVMHostVersion() ?></h4>
|
<h4>MMDVMHost by G4KLX Version: <?php echo getMMDVMHostVersion() ?></h4>
|
||||||
</div>
|
</div>
|
||||||
|
<?php
|
||||||
|
if (defined("ENABLEMANAGEMENT")) {
|
||||||
|
?>
|
||||||
<button onclick="window.location.href='./scripts/log.php'" type="button" class="btn btn-default navbar-btn"><span class="glyphicon glyphicon-folder-open" aria-hidden="true"></span> View Log</button>
|
<button onclick="window.location.href='./scripts/log.php'" type="button" class="btn btn-default navbar-btn"><span class="glyphicon glyphicon-folder-open" aria-hidden="true"></span> View Log</button>
|
||||||
<button onclick="window.location.href='./scripts/rebootmmdvm.php'" type="button" class="btn btn-default navbar-btn"><span class="glyphicon glyphicon-refresh" aria-hidden="true"></span> Reboot MMDVMHost</button>
|
<button onclick="window.location.href='./scripts/rebootmmdvm.php'" type="button" class="btn btn-default navbar-btn"><span class="glyphicon glyphicon-refresh" aria-hidden="true"></span> Reboot MMDVMHost</button>
|
||||||
<button onclick="window.location.href='./scripts/reboot.php'" type="button" class="btn btn-default navbar-btn"><span class="glyphicon glyphicon-repeat" aria-hidden="true"></span> Reboot System</button>
|
<button onclick="window.location.href='./scripts/reboot.php'" type="button" class="btn btn-default navbar-btn"><span class="glyphicon glyphicon-repeat" aria-hidden="true"></span> Reboot System</button>
|
||||||
<button onclick="window.location.href='./scripts/halt.php'" type="button" class="btn btn-default navbar-btn"><span class="glyphicon glyphicon-off" aria-hidden="true"></span> ShutDown System</button>
|
<button onclick="window.location.href='./scripts/halt.php'" type="button" class="btn btn-default navbar-btn"><span class="glyphicon glyphicon-off" aria-hidden="true"></span> ShutDown System</button>
|
||||||
<?php
|
<?php
|
||||||
|
}
|
||||||
checkSetup();
|
checkSetup();
|
||||||
// Here you can feel free to disable info-sections by commenting out with // before include
|
// Here you can feel free to disable info-sections by commenting out with // before include
|
||||||
include "include/sysinfo.php";
|
include "include/sysinfo.php";
|
||||||
|
|
|
@ -130,6 +130,10 @@ include "include/tools.php";
|
||||||
<span class="input-group-addon" id="LHLINES" style="width: 300px">Last heard list lines:</span>
|
<span class="input-group-addon" id="LHLINES" style="width: 300px">Last heard list lines:</span>
|
||||||
<input type="text" name="LHLINES" class="form-control" placeholder="20" aria-describedby="LHLINES" required data-fv-notempty-message="Value is required">
|
<input type="text" name="LHLINES" class="form-control" placeholder="20" aria-describedby="LHLINES" required data-fv-notempty-message="Value is required">
|
||||||
</div>
|
</div>
|
||||||
|
<div class="input-group">
|
||||||
|
<span class="input-group-addon" id="ENABLEMANAGEMENT" style="width: 300px">Enable Management-Functions below</span>
|
||||||
|
<div class="panel-body"><input type="checkbox" name="ENABLEMANAGEMENT"></div>
|
||||||
|
</div>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<span class="input-group-addon" id="REBOOTMMDVM" style="width: 300px">Reboot MMDVMHost command:</span>
|
<span class="input-group-addon" id="REBOOTMMDVM" style="width: 300px">Reboot MMDVMHost command:</span>
|
||||||
<input type="text" name="REBOOTMMDVM" class="form-control" placeholder="sudo systemctl restart mmdvmhost.service" aria-describedby="REBOOTMMDVM">
|
<input type="text" name="REBOOTMMDVM" class="form-control" placeholder="sudo systemctl restart mmdvmhost.service" aria-describedby="REBOOTMMDVM">
|
||||||
|
|
Loading…
Reference in a new issue