Init Commit

This commit is contained in:
ldy
2025-06-09 14:03:07 +08:00
parent 7d35000dd1
commit 2f40268f53
10 changed files with 451 additions and 0 deletions

22
check_auth.php Normal file
View File

@@ -0,0 +1,22 @@
<?php
include 'connectDB.php';
$cvId = $_GET['cvId'];
$sql = "SELECT visible, accessKey FROM `profile` WHERE `cid` = ?";
$stmt = $conn->prepare($sql);
$stmt->bind_param("i", $cvId);
$stmt->execute();
$result = $stmt->get_result();
if ($result->num_rows > 0) {
$row = $result->fetch_assoc();
echo json_encode($row);
}
else {
echo json_encode(null);
}
$stmt->close();
$conn->close();
?>