A lot of changes (that shouldn't, hopefully be breaking)

This commit is contained in:
2026-01-02 20:56:24 -07:00
parent b2c28e229d
commit 8e6a9ef156
30 changed files with 248 additions and 287 deletions

View File

@@ -14,9 +14,9 @@ $stmt = $conn0->prepare("SELECT id FROM users WHERE username = ? LIMIT 1");
$stmt->bind_param("s", $username);
$stmt->execute();
$result = $stmt->get_result();
$stmt->close();
$row = $result->fetch_assoc();
if ($result->num_rows != 1) exit;
$stmt->close();
$user_id = $row["id"];
@@ -24,8 +24,8 @@ $stmt = $conn1->prepare("SELECT 1 FROM userdata WHERE token = ? AND id = ? LIMIT
$stmt->bind_param("si", $token, $user_id);
$stmt->execute();
$result2 = $stmt->get_result();
if ($result2->num_rows != 1) exit;
$stmt->close();
if ($result2->num_rows != 1) exit;
$time = time();