Initial commit — Rosary Presenter App

Full source for loveandrosary.com: slide-based Rosary/novena/Divine Mercy
Chaplet presentation tool with multi-user roles, SVG bead ring, audio uploads,
donate strip, and public session profiles.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-13 18:44:08 -07:00
commit 663fde3909
46 changed files with 10902 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
<?php
require_once __DIR__ . '/config/db.php';
$token = trim($_GET['token'] ?? '');
if ($token === '') {
header('Location: ' . BASE_URL . '/login');
exit;
}
$pdo = get_pdo();
$stmt = $pdo->prepare('SELECT id FROM users WHERE confirm_token = ? AND email_confirmed = 0');
$stmt->execute([$token]);
$user = $stmt->fetch();
if ($user) {
$pdo->prepare('UPDATE users SET email_confirmed = 1, confirm_token = NULL WHERE id = ?')
->execute([$user['id']]);
header('Location: ' . BASE_URL . '/login?confirmed=1');
} else {
// Token not found or already used
header('Location: ' . BASE_URL . '/login?confirm_error=1');
}
exit;