prepare('SELECT * FROM sessions WHERE id = ?'); $stmt->execute([(int)$_GET['id']]); $session = $stmt->fetch(); if (!$session) { header('Location: ' . BASE_URL . '/admin/'); exit; } // Ownership check: must own or be admin if (!has_role('admin') && (int)$session['user_id'] !== $uid) { header('Location: ' . BASE_URL . '/admin/'); exit; } } // Creating new session? Check rosary limit $limit_error = ''; if (!$session && !can_create_rosary($uid, $user['rosary_limit'])) { $limit = $user['rosary_limit']; $limit_error = "You have reached your rosary limit ({$limit}). Please contact an administrator to increase your limit."; } $page_title = $session ? 'Edit Session' : 'New Session'; ?> <?= $page_title ?> — <?= htmlspecialchars($site_name) ?>

For novena: enter just the name (e.g. "Medy") — sessions will be created as "Medy — Day 1" through "Medy — Day 9".

Current photo

Current photo. Upload a new one to replace it.

JPEG, PNG, WebP — max 5 MB. Recommended: square or landscape, at least 800 × 600 px. Shown on the home page card and cover slide.