semoga bisa
This commit is contained in:
@@ -27,6 +27,18 @@ try {
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// DEBUG SEMENTARA - hapus setelah selesai
|
||||||
|
if ($action === 'debug') {
|
||||||
|
echo json_encode([
|
||||||
|
'ok' => true,
|
||||||
|
'host' => $db_host,
|
||||||
|
'port' => $db_port,
|
||||||
|
'name' => $db_name,
|
||||||
|
'user' => $db_user,
|
||||||
|
]);
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
$body = json_decode(file_get_contents('php://input'), true) ?? [];
|
$body = json_decode(file_get_contents('php://input'), true) ?? [];
|
||||||
$action = $body['action'] ?? ($_GET['action'] ?? '');
|
$action = $body['action'] ?? ($_GET['action'] ?? '');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user