Update: 2026-06-26 00:40:48
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user