only shows cached if name resolution is switched on

This commit is contained in:
dg9vh 2017-04-07 13:17:37 +00:00
parent ebd7206b82
commit 1731c8fb0e

View file

@ -1,12 +1,19 @@
<?php
$totalLH = count($lastHeard);
if (defined("ENABLEXTDLOOKUP")) {
$TMP_CALL_NAME = "/tmp/Callsign_Name.txt";
exec("wc -l ".$TMP_CALL_NAME." | cut -f1 -d' '", $output);
exec("wc -l ".DMRIDDATPATH." | cut -f1 -d' '", $output2);
}
?>
<div class="panel panel-default">
<!-- Standard-Panel-Inhalt -->
<div class="panel-heading"><?php echo _("Last Heard List of today's")." ".$totalLH." "._("callsigns.")." "._("Cached")." (".$output[0]."/".$output2[0].")"; ?><span class="pull-right clickable"><i class="glyphicon glyphicon-chevron-up"></i></span></div>
<div class="panel-heading"><?php
echo _("Last Heard List of today's")." ".$totalLH." "._("callsigns.")." ";
if (defined("ENABLEXTDLOOKUP")) {
echo _("Cached")." (".$output[0]."/".$output2[0].")";
}
?><span class="pull-right clickable"><i class="glyphicon glyphicon-chevron-up"></i></span></div>
<div class="panel-body">
<!-- Tabelle -->
<div class="table-responsive">