From 5ce900bf0655f092c085cb8a75a0475cef33430e Mon Sep 17 00:00:00 2001 From: dg9vh Date: Sat, 17 Sep 2016 16:18:47 +0000 Subject: [PATCH] hunting for php-warnings, no functional updates --- include/init.php | 2 +- include/localtx.php | 2 +- include/sysinfo.php | 4 ++-- setup.php | 38 ++++++++++++++++++++------------------ version.php | 2 +- 5 files changed, 25 insertions(+), 23 deletions(-) diff --git a/include/init.php b/include/init.php index 06f8d44..9386210 100644 --- a/include/init.php +++ b/include/init.php @@ -4,7 +4,7 @@ $mmdvmconfigs = getMMDVMConfig(); $logLinesMMDVM = getMMDVMLog(); $reverseLogLinesMMDVM = $logLinesMMDVM; array_multisort($reverseLogLinesMMDVM,SORT_DESC); -$lastHeard = getLastHeard($reverseLogLinesMMDVM); +$lastHeard = getLastHeard($reverseLogLinesMMDVM, FALSE); if (defined("ENABLEYSFGATEWAY")) { $YSFGatewayconfigs = getYSFGatewayConfig(); $logLinesYSFGateway = getYSFGatewayLog(); diff --git a/include/localtx.php b/include/localtx.php index 368ad4e..6cd6e97 100644 --- a/include/localtx.php +++ b/include/localtx.php @@ -1,6 +1,6 @@ diff --git a/include/sysinfo.php b/include/sysinfo.php index 8463cfe..2d791d8 100644 --- a/include/sysinfo.php +++ b/include/sysinfo.php @@ -106,7 +106,7 @@ Power \n"); - fclose($configfile); + } + } + $configfile = fopen("config/config.php", 'w'); + fwrite($configfile,"\n"); + fclose($configfile); ?>
Enable extended lookup (show names) -
>
+
>
Path to DMR-ID-Database-File @@ -123,11 +125,11 @@ include "include/tools.php";
Show progressbars -
>
+
>
Enable CPU-temperature-warning -
>
+
>
Warning temperature @@ -151,7 +153,7 @@ include "include/tools.php";
Show Powerstate (online or battery, wiringpi needed) -
>
+
>
GPIO pin to monitor: @@ -163,7 +165,7 @@ include "include/tools.php";
Show link to QRZ.com on Callsigns -
>
+
>
diff --git a/version.php b/version.php index 2ab3535..d7cb857 100644 --- a/version.php +++ b/version.php @@ -1,3 +1,3 @@