Path : /home/vishqocm/pcib.in/a/login/
File Upload :
Current File : /home/vishqocm//pcib.in/a/login/verify.php

<?php
require_once 'includes/auth.php';

$message = '';

if (isset($_GET['token'])) {
    $token = $_GET['token'];
    
    if (verifyAccount($token)) {
        $message = 'Your account has been verified successfully! You can now log in.';
    } else {
        $message = 'Invalid or expired verification token.';
    }
}
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Verify Account - Leafboard</title>
    <script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="min-h-screen bg-white flex items-center justify-center p-4">
    <div class="w-full max-w-md text-center">
        <div class="flex items-center justify-center gap-2 mb-4">
            <svg class="w-8 h-8" viewBox="0 0 24 24" fill="none">
                <path d="M12 2L2 7L12 12L22 7L12 2Z" fill="#4ADE80" fillOpacity="0.5"/>
                <path d="M12 12L2 7L12 2L22 7L12 12Z" fill="#4ADE80"/>
            </svg>
        </div>
        
        <h2 class="text-2xl font-semibold mb-4">Account Verification</h2>
        <p class="text-gray-600 mb-8"><?php echo htmlspecialchars($message); ?></p>
        
        <a
            href="login.php"
            class="inline-block px-8 py-4 rounded-xl font-medium bg-[#4ADE80] hover:bg-[#22C55E] text-black"
        >
            Go to Login
        </a>
    </div>
</body>
</html>