29 lines
996 B
PHP
29 lines
996 B
PHP
<?php
|
|
header("Content-Type: text/plain");
|
|
$c = @file_get_contents("/var/www/html/wevia.html");
|
|
|
|
// Find "Resultat" encoded
|
|
echo "=== Stage 5/5 result patterns ===\n";
|
|
foreach (["'result'", "\"result\"", "R\u00e9sultat", "Schema Mermaid", "phase.*result", "etape.*5"] as $pat) {
|
|
if (preg_match_all("/$pat/", $c, $m, PREG_OFFSET_CAPTURE)) {
|
|
echo " '$pat' matches at: ";
|
|
foreach (array_slice($m[0], 0, 3) as $hit) echo $hit[1] . " ";
|
|
echo "\n";
|
|
}
|
|
}
|
|
|
|
// Find the SSE result handler code
|
|
$pos = strpos($c, "type === 'result'");
|
|
if ($pos === false) $pos = strpos($c, "type=='result'");
|
|
if ($pos === false) $pos = strpos($c, "=== \"result\"");
|
|
echo "\n=== result type at: $pos ===\n";
|
|
if ($pos !== false) {
|
|
echo substr($c, $pos, 1200);
|
|
}
|
|
|
|
// Also search the output_data or schema_url handling
|
|
echo "\n\n=== schema_url / output_data ===\n";
|
|
if (preg_match_all('/schema_url|output_data|schema_content/', $c, $m)) {
|
|
foreach ($m[0] as $match) echo " $match\n";
|
|
}
|