Files
html/api/ambre-pw-v5.php
opus 87e388d78d
Some checks failed
WEVAL NonReg / nonreg (push) Has been cancelled
auto-sync-1705
2026-04-21 17:05:02 +02:00

17 lines
809 B
PHP

<?php
header("Content-Type: application/json");
$base = "/var/www/html/api/ambre-pw-tests";
// Copy V4 → V5 (same spec content, fresh test)
if (file_exists("$base/tests/chat-capabilities-v4.spec.js")) {
$content = file_get_contents("$base/tests/chat-capabilities-v4.spec.js");
// Replace all v4 → v5
$content = str_replace('"v4-', '"v5-', $content);
$content = str_replace("V4", "V5", $content);
$content = str_replace("v4 video proof", "v5 video busy-reset fix", $content);
file_put_contents("$base/tests/chat-capabilities-v5.spec.js", $content);
@unlink("$base/tests/chat-capabilities-v4.spec.js");
echo json_encode(["ok"=>true, "size"=>filesize("$base/tests/chat-capabilities-v5.spec.js")]);
} else {
echo json_encode(["ok"=>false, "error"=>"v4 spec not found"]);
}