Merge pull request #97 from pjao/master
Making an easy way to enable/disable info-sections
This commit is contained in:
commit
0abd1f24a7
2 changed files with 55 additions and 19 deletions
36
index.php
36
index.php
|
@ -99,18 +99,30 @@ 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/txinfo.php";
|
include "include/txinfo.php";
|
||||||
showLapTime("txinfo");
|
showLapTime("txinfo");
|
||||||
include "include/sysinfo_ajax.php";
|
if (defined("SHOWCPU")) {
|
||||||
showLapTime("sysinfo");
|
include "include/sysinfo_ajax.php";
|
||||||
include "include/disk.php";
|
showLapTime("sysinfo");
|
||||||
showLapTime("disk");
|
}
|
||||||
include "include/repeaterinfo.php";
|
if (defined("SHOWDISK")) {
|
||||||
showLapTime("repeaterinfo");
|
include "include/disk.php";
|
||||||
include "include/modes.php";
|
showLapTime("disk");
|
||||||
showLapTime("modes");
|
}
|
||||||
include "include/lh_ajax.php";
|
if (defined("SHOWRPTINFO")) {
|
||||||
showLapTime("lh_ajax");
|
include "include/repeaterinfo.php";
|
||||||
include "include/localtx_ajax.php";
|
showLapTime("repeaterinfo");
|
||||||
showLapTime("localtx_ajax");
|
}
|
||||||
|
if (defined("SHOWMODES")) {
|
||||||
|
include "include/modes.php";
|
||||||
|
showLapTime("modes");
|
||||||
|
}
|
||||||
|
if (defined("SHOWLH")) {
|
||||||
|
include "include/lh_ajax.php";
|
||||||
|
showLapTime("lh_ajax");
|
||||||
|
}
|
||||||
|
if (defined("SHOWLOCALTX")) {
|
||||||
|
include "include/localtx_ajax.php";
|
||||||
|
showLapTime("localtx_ajax");
|
||||||
|
}
|
||||||
if (defined("ENABLEYSFGATEWAY")) {
|
if (defined("ENABLEYSFGATEWAY")) {
|
||||||
include "include/ysfgatewayinfo.php";
|
include "include/ysfgatewayinfo.php";
|
||||||
showLapTime("ysfgatewayinfo");
|
showLapTime("ysfgatewayinfo");
|
||||||
|
|
32
setup.php
32
setup.php
|
@ -74,6 +74,10 @@ include "include/tools.php";
|
||||||
<span class="input-group-addon" id="ENABLEXTDLOOKUP" style="width: 300px">Enable extended lookup (show names)</span>
|
<span class="input-group-addon" id="ENABLEXTDLOOKUP" style="width: 300px">Enable extended lookup (show names)</span>
|
||||||
<div class="panel-body"><input type="checkbox" name="ENABLEXTDLOOKUP" <?php if (defined("ENABLEXTDLOOKUP")) echo "checked" ?>></div>
|
<div class="panel-body"><input type="checkbox" name="ENABLEXTDLOOKUP" <?php if (defined("ENABLEXTDLOOKUP")) echo "checked" ?>></div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="input-group">
|
||||||
|
<span class="input-group-addon" id="TALKERALIAS" style="width: 300px">Show Talker Alias</span>
|
||||||
|
<div class="panel-body"><input type="checkbox" name="TALKERALIAS" <?php if (defined("TALKERALIAS")) echo "checked" ?>></div>
|
||||||
|
</div>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<span class="input-group-addon" id="DMRIDDATPATH" style="width: 300px">Path to DMR-ID-Database-File (including filename)</span>
|
<span class="input-group-addon" id="DMRIDDATPATH" style="width: 300px">Path to DMR-ID-Database-File (including filename)</span>
|
||||||
<input type="text" value="<?php echo constant("DMRIDDATPATH") ?>" name="DMRIDDATPATH" class="form-control" placeholder="/var/mmdvm/DMRIDs.dat" aria-describedby="DMRIDDATPATH">
|
<input type="text" value="<?php echo constant("DMRIDDATPATH") ?>" name="DMRIDDATPATH" class="form-control" placeholder="/var/mmdvm/DMRIDs.dat" aria-describedby="DMRIDDATPATH">
|
||||||
|
@ -197,6 +201,30 @@ get_tz_options(constant("TIMEZONE"), "Timezone", '');
|
||||||
<span class="input-group-addon" id="REFRESHAFTER" style="width: 300px">Refresh page after in seconds</span>
|
<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">
|
<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">
|
||||||
</div>
|
</div>
|
||||||
|
<div class="input-group">
|
||||||
|
<span class="input-group-addon" id="SHOWCPU" style="width: 300px">Show System Info</span>
|
||||||
|
<div class="panel-body"><input type="checkbox" name="SHOWCPU" <?php if (defined("SHOWCPU")) echo "checked" ?>></div>
|
||||||
|
</div>
|
||||||
|
<div class="input-group">
|
||||||
|
<span class="input-group-addon" id="SHOWDISK" style="width: 300px">Show Disk Use</span>
|
||||||
|
<div class="panel-body"><input type="checkbox" name="SHOWDISK" <?php if (defined("SHOWDISK")) echo "checked" ?>></div>
|
||||||
|
</div>
|
||||||
|
<div class="input-group">
|
||||||
|
<span class="input-group-addon" id="SHOWRPTINFO" style="width: 300px">Show Repeater Info</span>
|
||||||
|
<div class="panel-body"><input type="checkbox" name="SHOWRPTINFO" <?php if (defined("SHOWRPTINFO")) echo "checked" ?>></div>
|
||||||
|
</div>
|
||||||
|
<div class="input-group">
|
||||||
|
<span class="input-group-addon" id="SHOWMODES" style="width: 300px">Show Enabled Modes</span>
|
||||||
|
<div class="panel-body"><input type="checkbox" name="SHOWMODES" <?php if (defined("SHOWMODES")) echo "checked" ?>></div>
|
||||||
|
</div>
|
||||||
|
<div class="input-group">
|
||||||
|
<span class="input-group-addon" id="SHOWLH" style="width: 300px">Show Last Heard List of today's</span>
|
||||||
|
<div class="panel-body"><input type="checkbox" name="SHOWLH" <?php if (defined("SHOWLH")) echo "checked" ?>></div>
|
||||||
|
</div>
|
||||||
|
<div class="input-group">
|
||||||
|
<span class="input-group-addon" id="SHOWLOCALTX" style="width: 300px">Show Today's local transmissions</span>
|
||||||
|
<div class="panel-body"><input type="checkbox" name="SHOWLOCALTX" <?php if (defined("SHOWLOCALTX")) echo "checked" ?>></div>
|
||||||
|
</div>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<span class="input-group-addon" id="SHOWPROGRESSBARS" style="width: 300px">Show progressbars</span>
|
<span class="input-group-addon" id="SHOWPROGRESSBARS" style="width: 300px">Show progressbars</span>
|
||||||
<div class="panel-body"><input type="checkbox" name="SHOWPROGRESSBARS" <?php if (defined("SHOWPROGRESSBARS")) echo "checked" ?>></div>
|
<div class="panel-body"><input type="checkbox" name="SHOWPROGRESSBARS" <?php if (defined("SHOWPROGRESSBARS")) echo "checked" ?>></div>
|
||||||
|
@ -295,10 +323,6 @@ get_tz_options(constant("TIMEZONE"), "Timezone", '');
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="input-group">
|
|
||||||
<span class="input-group-addon" id="TALKERALIAS" style="width: 300px">Show Talker Alias</span>
|
|
||||||
<div class="panel-body"><input type="checkbox" name="TALKERALIAS" <?php if (defined("TALKERALIAS")) echo "checked" ?>></div>
|
|
||||||
</div>
|
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<span class="input-group-btn">
|
<span class="input-group-btn">
|
||||||
<button class="btn btn-default" type="submit" form="config">Save configuration</button>
|
<button class="btn btn-default" type="submit" form="config">Save configuration</button>
|
||||||
|
|
Loading…
Reference in a new issue