Files
html/api/ambre-sse4.php
2026-04-22 11:05:01 +02:00

10 lines
398 B
PHP

<?php
header("Content-Type: text/plain");
$c = @file_get_contents("/var/www/html/wevia.html");
// Get the rest of handleEvent (from WEVIA-pattern onwards to end of function)
$pos = strpos($c, "WEVIA-pattern");
$end = strpos($c, "eventSource.close", $pos);
if ($end === false) $end = $pos + 6000;
echo "=== handleEvent from 96870 to " . ($pos + 6000) . " ===\n";
echo substr($c, $pos + 1800, 5000);