Small API Improvements

This commit is contained in:
Lncvrt committed 2025-03-02 13:11:20 -07:00
1 parent b5aa0fd219
commit c2fb61afaa
18 files changed
+44 -74

No files matched your search

+1 -3
View File
@@ -4,7 +4,7 @@ require '../incl/main.php';
$ip = $_SERVER['REMOTE_ADDR'];
$token = isset($_POST['captcha_token']) ? $_POST['captcha_token'] : '';
$token = $_POST['captcha_token'] ?? '';
$url = 'https://challenges.cloudflare.com/turnstile/v0/siteverify';
@@ -130,8 +130,6 @@ if ($result->num_rows > 0) {
header('Content-Type: application/json');
die(json_encode($response));
}
$stmt->close();
$conn->close();
?>