Files
html/api/ambre-widget-read.php
2026-04-22 10:50:03 +02:00

18 lines
682 B
PHP

<?php
header("Content-Type: text/plain");
$c = @file_get_contents("/var/www/html/wevia-widget.html");
// Find Claude Pattern context
$pos = strpos($c, "Claude Pattern");
if ($pos !== false) {
echo "=== Claude Pattern ctx ===\n";
echo substr($c, max(0, $pos - 300), 600);
}
echo "\n\n=== WTP ctx ===\n";
$pos2 = strpos($c, "WTP");
if ($pos2 !== false) echo substr($c, max(0, $pos2 - 300), 700);
echo "\n\n=== All script srcs and inline signatures ===\n";
preg_match_all('/<script[^>]*(?:src=["\']([^"\']+)["\']|>([^<]{0,100}))/', $c, $m);
foreach ($m[1] as $s) if ($s) echo "SRC: $s\n";
foreach ($m[2] as $s) if (trim($s)) echo "INLINE: " . substr(trim($s), 0, 100) . "\n";