repaired D-Star-Linkto
This commit is contained in:
parent
da4ca087f7
commit
ef2ff369b2
2 changed files with 3 additions and 3 deletions
|
@ -279,11 +279,11 @@ function getActualMode($metaLastHeard, $mmdvmconfigs) {
|
||||||
|
|
||||||
function getDSTARLinks() {
|
function getDSTARLinks() {
|
||||||
// returns link-states of all D-Star-modules
|
// returns link-states of all D-Star-modules
|
||||||
if (filesize(LINKLOGPATH) == 0) {
|
if (filesize(LINKLOGPATH."/Links.log") == 0) {
|
||||||
return "not linked";
|
return "not linked";
|
||||||
}
|
}
|
||||||
$out = "<table>";
|
$out = "<table>";
|
||||||
if ($linkLog = fopen(LINKLOGPATH,'r')) {
|
if ($linkLog = fopen(LINKLOGPATH."/Links.log",'r')) {
|
||||||
while ($linkLine = fgets($linkLog)) {
|
while ($linkLine = fgets($linkLog)) {
|
||||||
$linkDate = " ";
|
$linkDate = " ";
|
||||||
$protocol = " ";
|
$protocol = " ";
|
||||||
|
|
|
@ -22,7 +22,7 @@ include "include/tools.php";
|
||||||
if (!file_exists('./config')) {
|
if (!file_exists('./config')) {
|
||||||
mkdir('./config', 0777, true);
|
mkdir('./config', 0777, true);
|
||||||
}
|
}
|
||||||
$configfile = fopen("config/config.php", w);
|
$configfile = fopen("config/config.php", 'w');
|
||||||
fwrite($configfile,"<?php\n");
|
fwrite($configfile,"<?php\n");
|
||||||
fwrite($configfile,"# This is an auto-generated config-file!\n");
|
fwrite($configfile,"# This is an auto-generated config-file!\n");
|
||||||
fwrite($configfile,"# Be careful, when manual editing this!\n\n");
|
fwrite($configfile,"# Be careful, when manual editing this!\n\n");
|
||||||
|
|
Loading…
Reference in a new issue