| Server IP : 10.200.247.200 / Your IP : 216.73.217.19 Web Server : Apache System : Linux synergy-usa-sites 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64 User : jeremy ( 1001) PHP Version : 8.4.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/development/callings.lvsaints.com/ |
Upload File : |
<?php
require __DIR__ . '/lib.php';
$error = '';
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
csrf_check();
$email = trim($_POST['email'] ?? '');
$pass = $_POST['password'] ?? '';
$stmt = db()->prepare('SELECT id, password_hash FROM users WHERE email = ?');
$stmt->execute([$email]);
$user = $stmt->fetch();
if ($user && password_verify($pass, $user['password_hash'])) {
session_regenerate_id(true);
$_SESSION['user_id'] = $user['id'];
header('Location: index.php');
exit;
}
$error = 'Incorrect email or password.';
}
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Sign in — Calling Board</title>
<style>
body{font-family:Arial,sans-serif;background:#f5f7fb;color:#101828;display:flex;
min-height:100vh;align-items:center;justify-content:center;margin:0}
form{background:#fff;padding:28px;border:1px solid #d9e2ee;border-radius:14px;
box-shadow:0 8px 22px rgba(16,24,40,.06);width:300px}
h1{font-size:20px;margin:0 0 16px}
label{display:block;font-size:13px;font-weight:700;margin:10px 0 4px;color:#344054}
input{width:100%;padding:9px;border:1px solid #d9e2ee;border-radius:9px;font-size:14px}
button{width:100%;margin-top:16px;padding:10px;border:0;border-radius:9px;
background:#2563d9;color:#fff;font-weight:800;font-size:14px}
.err{color:#b42318;font-size:13px;margin-top:10px}
</style>
</head>
<body>
<form method="post">
<h1>Calling Board</h1>
<label>Email</label>
<input type="email" name="email" autofocus required>
<label>Password</label>
<input type="password" name="password" required>
<input type="hidden" name="csrf" value="<?= e(csrf_token()) ?>">
<button type="submit">Sign in</button>
<?php if ($error): ?><div class="err"><?= e($error) ?></div><?php endif; ?>
</form>
</body>
</html>