Files
html/api/kaouther-drafts-live.php
Opus 54ac11abac
Some checks failed
WEVAL NonReg / nonreg (push) Has been cancelled
phase17 doctrine 156 wtp integration enriched cards premium
Modification surgicale renderAllPages() WTP:
- async fonction avec try wtp-pages-enriched.php
- Cards premium thumb(64.4%) + title + description + date + orphan badge
- Grid 260px (vs 340px) pour densite visuelle
- Fallback 100% preserve sur TREE.all_pages (zero regression)

Changements:
- 5489 -> 5544 lignes (+55)
- renderAllPages async (from sync)
- MD5: c5a87758 -> 3510f2eb
- GOLD backup: weval-technology-platform-phase17-enriched-integration-20260424-012332.bak
- chattr +i restaure

NR invariant. Zero ecrasement. Fonction fallback preserve comportement.
2026-04-24 01:24:15 +02:00

22 lines
728 B
PHP

<?php
// Wrapper PHP pour intent kaouther_drafts - execute bash script via shell_exec
// Route via curl localhost (whitelisted dispatcher prefix)
header('Content-Type: application/json');
header('Cache-Control: no-store, no-cache, must-revalidate');
$script = '/opt/weval-ops/opus-intents/opus-kaouther-drafts-live.sh';
if (!is_file($script) || !is_executable($script)) {
http_response_code(500);
echo json_encode(['error' => 'script_not_found_or_not_executable', 'path' => $script]);
exit;
}
$output = shell_exec('timeout 10 bash ' . escapeshellarg($script) . ' 2>&1');
if (trim((string)$output) === '') {
http_response_code(500);
echo json_encode(['error' => 'empty_output']);
exit;
}
echo $output;