Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions

37
verify.php Normal file
View File

@@ -0,0 +1,37 @@
<?php
require_once("connection.php");
require_once("functions.php");
// Create connection
$conn = openDatabaseConnection();
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
// Verify token
if (isset($_GET['token'])) {
$token = $conn->real_escape_string($_GET['token']);
// Prepare and execute query
$stmt = $conn->prepare('UPDATE users SET is_verified = 1 WHERE token = ?');
$stmt->bind_param('s', $token);
if ($stmt->execute()) {
if ($stmt->affected_rows > 0) {
header('Location: login.php');
} else {
header('Location: login.php');
}
} else {
echo 'Error: ' . $stmt->error;
}
$stmt->close();
} else {
echo 'No token provided.';
}
$conn->close();
?>