[opus-nofake] arena-pre office endpoint fix port 80 action=status

This commit is contained in:
Yanis Mahboub
2026-04-17 04:02:27 +02:00
parent b96b51f68b
commit 36cbb7628a

View File

@@ -3,10 +3,10 @@ opcache_invalidate(__FILE__,true);
function arena_pre_check($msg) { function arena_pre_check($msg) {
require_once __DIR__ . "/wevia-strategic-guard.php"; if (is_strategic_question($msg)) return null; require_once __DIR__ . "/wevia-strategic-guard.php"; if (is_strategic_question($msg)) return null;
if (preg_match("/office|o365|outlook|warming.*compte/i", $msg) && !preg_match("/cloud|bridge/i", $msg)) { if (preg_match("/office|o365|outlook|warming.*compte/i", $msg) && !preg_match("/cloud|bridge/i", $msg)) {
$r = @file_get_contents("http://127.0.0.1:8443/api/office-admins.php?action=health"); $r = @file_get_contents("http://127.0.0.1/api/office-admins.php?action=status");
$d = @json_decode($r, true); $d = @json_decode($r, true);
if ($d && isset($d["warming"])) return ["content"=>"OFFICE HUB: ".$d["warming"]." warming | ".$d["active"]." active | ".$d["pending"]." pending | ".$d["health"]." health | ".$d["sends"]." sends | total:".$d["total"]]; if ($d && isset($d["warming"])) return ["content"=>"OFFICE HUB: ".$d["warming"]." warming | ".$d["active"]." active | ".$d["pending"]." pending | ".$d["health"]." health | ".$d["sends"]." sends | total:".$d["total"]];
return ["content"=>"OFFICE HUB: 911 warming | 1 active | 871 pending | 82% health | 192 sends"]; return ["content"=>"OFFICE HUB: S95 health endpoint sync unavailable - run /api/office-admins.php?action=health manually"];
} }
if (preg_match("/test.*arena|arena.*test|arena.*fonctionn/i", $msg)) { if (preg_match("/test.*arena|arena.*test|arena.*fonctionn/i", $msg)) {
$r = @file_get_contents("http://127.0.0.1:8443/api/wevia-arena-evolve.php?action=test"); $r = @file_get_contents("http://127.0.0.1:8443/api/wevia-arena-evolve.php?action=test");