repaired D-Star-Linkto

This commit is contained in:
dg9vh 2016-05-22 07:37:22 +00:00
parent da4ca087f7
commit ef2ff369b2
2 changed files with 3 additions and 3 deletions

View file

@ -279,11 +279,11 @@ function getActualMode($metaLastHeard, $mmdvmconfigs) {
function getDSTARLinks() {
// returns link-states of all D-Star-modules
if (filesize(LINKLOGPATH) == 0) {
if (filesize(LINKLOGPATH."/Links.log") == 0) {
return "not linked";
}
$out = "<table>";
if ($linkLog = fopen(LINKLOGPATH,'r')) {
if ($linkLog = fopen(LINKLOGPATH."/Links.log",'r')) {
while ($linkLine = fgets($linkLog)) {
$linkDate = "&nbsp;";
$protocol = "&nbsp;";

View file

@ -22,7 +22,7 @@ include "include/tools.php";
if (!file_exists('./config')) {
mkdir('./config', 0777, true);
}
$configfile = fopen("config/config.php", w);
$configfile = fopen("config/config.php", 'w');
fwrite($configfile,"<?php\n");
fwrite($configfile,"# This is an auto-generated config-file!\n");
fwrite($configfile,"# Be careful, when manual editing this!\n\n");