Notes in README.md concerning sqlite-requirements and fixing lh-list

This commit is contained in:
Kim Huebel 2017-09-22 12:45:53 +00:00
parent e373dc0810
commit 1fd308694c
2 changed files with 4 additions and 4 deletions

View file

@ -17,7 +17,7 @@ Required are
============
* Webserver like lighttpd or similar
* php5
* if using sqlite3-database name resolving sqlite3 and php5-sqlite also needed
Installation
============

View file

@ -1,6 +1,6 @@
<?php
$totalLH = count($lastHeard);
if (defined("ENABLEXTDLOOKUP")) {
if (defined("ENABLEXTDLOOKUP") && !defined("USESQLITE")) {
$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);
@ -10,8 +10,8 @@ exec("wc -l ".DMRIDDATPATH." | cut -f1 -d' '", $output2);
<!-- Standard-Panel-Inhalt -->
<div class="panel-heading"><?php
echo _("Last Heard List of today's")." ".$totalLH." "._("callsigns.")." ";
if (defined("ENABLEXTDLOOKUP")) {
echo _("Cached")." (".$output[0]."/".$output2[0].")";
if (defined("ENABLEXTDLOOKUP") && !defined("USESQLITE")) {
echo _("Cached")." (".$output[0]."/".$output2[0].")";
}
?><span class="pull-right clickable"><i class="glyphicon glyphicon-chevron-up"></i></span></div>
<div class="panel-body">