Trying to fix issues with buffer / allmon not sending correct data

This commit is contained in:
Rob Vella
2020-07-31 17:39:54 -07:00
parent 8d1a71f0e8
commit 2803a10254
7 changed files with 169 additions and 113 deletions
+5 -3
View File
@@ -1,5 +1,7 @@
<?php
$streamFile = __DIR__.'/storage/stream.txt';
$cmd = $_GET['cmd'] ?? null;
$node = intval($_GET['node'] ?? null);
$type = intval($_GET['type'] ?? null);
@@ -7,13 +9,13 @@ $type = intval($_GET['type'] ?? null);
header("Cache-Control: max-age=0");
if ($cmd === "log" || $cmd == "logText") {
$irlpData = file_get_contents("http://www3.winsystem.org/monitor/ajax-logtail.php");
$data = file_get_contents(__DIR__."/storage/stream.txt");
// $irlpData = file_get_contents("http://www3.winsystem.org/monitor/ajax-logtail.php");
$data = file_get_contents($streamFile);
// Just output the raw data
if ($cmd === "log") {
echo $irlpData;
echo $data;
// echo $irlpData;
return;
}
} else if ($cmd === "node") {