File: /home/nyiet8349bzl/public_html/oldwebsite.sbsc.in/wp-content/plugins/Newnoticeboard/admin/login.php
<?php
session_start();
$error = '';
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$correct_id = 'admin';
$correct_pass = 'password123';
$id = $_POST['id'] ?? '';
$password = $_POST['password'] ?? '';
if ($id === $correct_id && $password === $correct_pass) {
$_SESSION['enb_logged_in'] = true;
header('Location: dashboard.php');
exit;
} else {
$error = "Invalid credentials. Please try again.";
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Admin Login - Notice Panel</title>
<link rel="stylesheet" href="style.css" />
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: linear-gradient(135deg, #4b6cb7, #182848);
flex-direction: column;
font-family: 'Open Sans', sans-serif;
color: white;
text-transform: uppercase;
letter-spacing: 2px;
}
.logo {
width: 120px;
height: auto;
margin-bottom: 20px;
filter: drop-shadow(0 0 5px rgba(0,0,0,0.3));
}
h1.page-heading {
font-size: 36px;
font-weight: 900;
margin-bottom: 40px;
text-align: center;
}
.login-box {
background: white;
padding: 40px 30px;
border-radius: 12px;
box-shadow: 0 8px 30px rgba(0,0,0,0.2);
width: 350px;
text-align: center;
color: #2c3e50;
text-transform: none;
letter-spacing: normal;
}
.login-box input {
width: 100%;
margin-bottom: 20px;
padding: 12px 15px;
border-radius: 6px;
border: 1px solid #ccc;
font-size: 14px;
text-transform: none;
}
.login-box button {
width: 100%;
padding: 12px;
background: #4b6cb7;
border: none;
border-radius: 6px;
font-weight: 700;
font-size: 16px;
color: white;
cursor: pointer;
letter-spacing: 1.5px;
transition: background 0.3s;
text-transform: uppercase;
}
.login-box button:hover {
background: #3a539b;
}
.error {
color: #c0392b;
font-weight: 600;
margin-bottom: 15px;
font-size: 14px;
}
.footer-credit {
margin-top: 40px;
color: rgba(255,255,255,0.7);
font-size: 14px;
text-transform: none;
letter-spacing: normal;
font-weight: 500;
text-align: center;
}
</style>
</head>
<body>
<img src="https://oldwebsite.sbsc.in/wp-content/uploads/2025/07/cropped-cropped-40-INCH-X-40-INCH-FILAM-copy-2-qreld0squn1ptm38sxaqh22111vo110lip7ujxyya0-1.png" alt="College Logo" class="logo" />
<h1 class="page-heading">Shaheed Bhagat Singh College Notice System</h1>
<div class="login-box">
<?php if ($error): ?>
<div class="error"><?= htmlspecialchars($error) ?></div>
<?php endif; ?>
<form method="post" action="">
<input type="text" name="id" placeholder="Admin ID" required autocomplete="username" />
<input type="password" name="password" placeholder="Password" required autocomplete="current-password" />
<button type="submit">Login</button>
</form>
</div>
<div class="footer-credit">
THIS SYSTEM DESIGNED AND MANAGED BY <strong>M. PRAKASH</strong>
</div>
</body>
</html>