hjkhjkjhkhjkgjghjhgjhgjghjhghjghjhgjjnbvnvbnvk
bnmbnmbnhjkhjkhjkhjktyutyutyuytutyutyutyhgjgjghjgjghjguytutyry
/
home
/
wjcvelqp
/
public_html
/
vc
/
Upload FileeE
HOME
<?php require_once __DIR__ . '/includes/bootstrap.php'; $token = clean_string($_GET['token'] ?? '', 64); $ok = false; $msg = 'Invalid or expired verification link.'; if ($token !== '') { try { $st = db()->prepare('SELECT * FROM email_verification_tokens WHERE token = ? AND expires_at > NOW() LIMIT 1'); $st->execute([$token]); $row = $st->fetch(); if ($row) { db()->prepare('UPDATE users SET email_verified_at = NOW() WHERE id = ?')->execute([(int)$row['user_id']]); db()->prepare('DELETE FROM email_verification_tokens WHERE user_id = ?')->execute([(int)$row['user_id']]); $ok = true; $msg = 'Email verified successfully. You can log in.'; log_user_activity((int)$row['user_id'], 'email_verified', ''); } } catch (Throwable $e) { $msg = 'Verification failed.'; } } $page_title = 'Verify email — ' . VC_APP_NAME; include __DIR__ . '/includes/header.php'; ?> <div class="page"><div class="container"> <div class="form-box"> <h1>Email verification</h1> <div class="alert <?= $ok ? 'alert-success' : 'alert-error' ?>"><?= e($msg) ?></div> <a class="btn btn-primary" href="<?= e(url('login.php')) ?>">Go to login</a> </div> </div></div> <?php include __DIR__ . '/includes/footer.php'; ?>