mirror of
https://github.com/ShaYmez/allmon2-last-heard.git
synced 2024-11-27 02:09:19 -05:00
Merge in changes from win-old
This commit is contained in:
parent
2ab4d36a56
commit
6e8dddd059
@ -3,10 +3,10 @@
|
|||||||
$streamFile = __DIR__.'/storage/stream.txt';
|
$streamFile = __DIR__.'/storage/stream.txt';
|
||||||
|
|
||||||
$cmd = $_GET['cmd'] ?? null;
|
$cmd = $_GET['cmd'] ?? null;
|
||||||
$node = intval($_GET['node'] ?? null);
|
$node = $_GET['node'] ?? null;
|
||||||
$type = intval($_GET['type'] ?? null);
|
$type = intval($_GET['type'] ?? null);
|
||||||
|
|
||||||
header("Cache-Control: max-age=0");
|
header("Cache-Control: no-cache, max-age=0");
|
||||||
|
|
||||||
if ($cmd === "log" || $cmd == "logText") {
|
if ($cmd === "log" || $cmd == "logText") {
|
||||||
// $irlpData = file_get_contents("http://www3.winsystem.org/monitor/ajax-logtail.php");
|
// $irlpData = file_get_contents("http://www3.winsystem.org/monitor/ajax-logtail.php");
|
||||||
@ -42,9 +42,9 @@ function fetchNodeInfoAllstar($node) {
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
'node' => $node,
|
'node' => $node,
|
||||||
'callsign' => $row[1],
|
'callsign' => $row[1] ?? '',
|
||||||
'desc' => $row[2],
|
'desc' => $row[2] ?? '',
|
||||||
'location' => $row[3]
|
'location' => $row[3] ?? ''
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user