Update: 2026-06-26 00:40:48

This commit is contained in:
Hamza-Ayed
2026-06-26 00:40:48 +03:00
parent 6fcc4a0649
commit a655c80f6f

View File

@@ -15,6 +15,15 @@ require_once __DIR__ . '/core/bootstrap.php';
header('Content-Type: application/json; charset=utf-8');
// دعم JSON body بالإضافة إلى POST/GET
$rawBody = file_get_contents('php://input');
if ($rawBody) {
$json = json_decode($rawBody, true);
if ($json) {
$_POST = array_merge($_POST, $json);
}
}
try {
/* ================== قراءة المدخلات ================== */
$phone = filterRequest('phone');