if (isset($_GET['error']) && $_GET['error'] === 'session_expired') { $_SESSION['error'] = 'Your session has expired. Please login again.'; } // Get church information for branding try { // Get all settings from the system $settings = getAllSettings(); // Set church info from system settings $church_info = [ 'church_name' => $settings['church_name'] ?? 'Church', 'church_address' => $settings['church_address'] ?? '', 'church_phone' => $settings['church_phone'] ?? '', 'church_email' => $settings['church_email'] ?? '', 'church_website' => $settings['church_website'] ?? '' ]; } catch (Exception $e) { // Fallback values $church_info = [ 'church_name' => 'Church', 'church_address' => '', 'church_phone' => '', 'church_email' => '', 'church_website' => '' ]; } ?>
Please sign in to continue