Sindbad~EG File Manager
<?php
require_once 'config/config.php';
$pageTitle = "Access Restricted - " . APP_NAME;
// Get settings for theme colors
$db = Database::getInstance()->getConnection();
$stmt = $db->query("SELECT * FROM general_settings ORDER BY id DESC LIMIT 1");
$settings = $stmt->fetch();
// Default settings if none exist
$settings = array_merge([
'site_title' => 'Church Membership System',
'theme_primary_color' => '#1E40AF',
'theme_secondary_color' => '#F97316',
], $settings ?: []);
// If user is already logged in, redirect to bulk search
if (isLoggedIn()) {
header('Location: public-bulk-search.php');
exit();
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php echo $pageTitle; ?></title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
<style>
.hero-gradient {
background: linear-gradient(135deg, #1E40AF 0%, #9333EA 50%, #F97316 100%);
}
.text-gradient {
background: linear-gradient(135deg, #1E40AF 0%, #F97316 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.btn-gradient {
background: linear-gradient(135deg, #1E40AF 0%, #9333EA 100%);
}
.btn-gradient-orange {
background: linear-gradient(135deg, #F97316 0%, #FBBF24 100%);
}
@keyframes fadeInUp {
from { opacity: 0; transform: translateY(30px); }
to { opacity: 1; transform: translateY(0); }
}
.animate-fadeIn { animation: fadeInUp 0.6s ease-out; }
@keyframes pulse-slow {
0%, 100% { transform: scale(1); opacity: 1; }
50% { transform: scale(1.05); opacity: 0.9; }
}
.pulse-slow { animation: pulse-slow 2s ease-in-out infinite; }
</style>
</head>
<body class="bg-gray-50 min-h-screen flex flex-col">
<!-- Header -->
<header class="bg-white shadow-lg">
<div class="container mx-auto px-4">
<div class="flex items-center justify-between h-16">
<div class="flex items-center space-x-3">
<div class="w-12 h-12 rounded-xl flex items-center justify-center" style="background: linear-gradient(135deg, #1E40AF 0%, #F97316 100%);">
<i class="fas fa-church text-white text-xl"></i>
</div>
<div>
<h1 class="text-xl font-bold text-gradient"><?php echo htmlspecialchars($settings['site_title']); ?></h1>
<p class="text-xs text-gray-500">Bulk Member Search</p>
</div>
</div>
<nav class="hidden md:flex items-center space-x-6">
<a href="index.php" class="text-gray-700 hover:text-blue-700 font-medium transition">
<i class="fas fa-home mr-1"></i>Home
</a>
<a href="public-search.php" class="text-gray-700 hover:text-blue-700 font-medium transition">
<i class="fas fa-search mr-1"></i>Single Search
</a>
<a href="login.php" class="px-6 py-2 rounded-full text-white font-semibold transition hover:shadow-lg btn-gradient">
<i class="fas fa-sign-in-alt mr-1"></i>Login
</a>
</nav>
</div>
</div>
</header>
<!-- Main Content -->
<main class="flex-1 flex items-center justify-center py-12 px-4">
<div class="max-w-lg w-full animate-fadeIn">
<div class="bg-white rounded-2xl shadow-xl overflow-hidden">
<!-- Top Gradient Bar -->
<div class="hero-gradient h-2"></div>
<div class="p-8 text-center">
<!-- Lock Icon -->
<div class="mb-6">
<div class="w-24 h-24 mx-auto rounded-full bg-gradient-to-br from-blue-100 to-purple-100 flex items-center justify-center pulse-slow">
<i class="fas fa-lock text-4xl text-blue-600"></i>
</div>
</div>
<!-- Title -->
<h1 class="text-2xl font-bold text-gray-800 mb-3">
Access Restricted
</h1>
<!-- Message -->
<p class="text-gray-600 mb-6 leading-relaxed">
The <strong>Bulk Member Search</strong> feature requires authentication.
Please login to your account to access this feature, or contact an administrator
if you need access.
</p>
<!-- Info Box -->
<div class="bg-blue-50 border border-blue-200 rounded-lg p-4 mb-6 text-left">
<h3 class="font-semibold text-blue-800 mb-2">
<i class="fas fa-info-circle mr-2"></i>Why is login required?
</h3>
<ul class="text-sm text-blue-700 space-y-1">
<li><i class="fas fa-check mr-2 text-blue-500"></i>Protect member privacy</li>
<li><i class="fas fa-check mr-2 text-blue-500"></i>Track search activity</li>
<li><i class="fas fa-check mr-2 text-blue-500"></i>Ensure authorized access only</li>
</ul>
</div>
<!-- Action Buttons -->
<div class="space-y-3">
<a href="login.php?redirect=<?php echo urlencode('public-bulk-search.php'); ?>"
class="block w-full btn-gradient text-white py-3 px-6 rounded-lg font-semibold hover:shadow-lg transition">
<i class="fas fa-sign-in-alt mr-2"></i>Login to Continue
</a>
<div class="flex gap-3">
<a href="public-search.php"
class="flex-1 bg-gray-100 text-gray-700 py-3 px-4 rounded-lg font-medium hover:bg-gray-200 transition text-sm">
<i class="fas fa-search mr-1"></i>Use Single Search
</a>
<a href="index.php"
class="flex-1 bg-gray-100 text-gray-700 py-3 px-4 rounded-lg font-medium hover:bg-gray-200 transition text-sm">
<i class="fas fa-home mr-1"></i>Go to Home
</a>
</div>
</div>
<!-- Contact Admin -->
<div class="mt-6 pt-6 border-t border-gray-200">
<p class="text-sm text-gray-500">
<i class="fas fa-question-circle mr-1"></i>
Don't have an account?
<a href="contact.php" class="text-blue-600 hover:underline font-medium">Contact Administrator</a>
</p>
</div>
</div>
</div>
<!-- Alternative Option -->
<div class="mt-6 text-center">
<p class="text-gray-500 text-sm">
<i class="fas fa-lightbulb mr-1 text-yellow-500"></i>
<strong>Tip:</strong> The single member search is available without login.
<a href="public-search.php" class="text-blue-600 hover:underline">Try it here</a>
</p>
</div>
</div>
</main>
<!-- Footer -->
<footer class="bg-gray-800 text-white py-6">
<div class="container mx-auto px-4 text-center">
<p class="text-gray-400 text-sm">
© <?php echo date('Y'); ?> <?php echo htmlspecialchars($settings['site_title']); ?>. All rights reserved.
</p>
</div>
</footer>
</body>
</html>
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists