| Server IP : 104.21.73.108 / Your IP : 216.73.216.59 Web Server : Apache/2 System : Linux cat167-197.static.lnwhostname.com 5.10.0-20-amd64 #1 SMP Debian 5.10.158-2 (2022-12-13) x86_64 User : paphayomho ( 1042) PHP Version : 5.6.40 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/paphayomho/domains/paphayomhospital.go.th/public_html/PolicyPaphayom/ |
Upload File : |
<?php
session_start();
if(isset($_POST['login'])){
if($_POST['u']=="admin" && $_POST['p']=="Payom1234"){
$_SESSION['admin_login'] = true;
header("Location: admin.php");
} else { $err = "ข้อมูลไม่ถูกต้อง"; }
}
?>
<!DOCTYPE html>
<html lang="th"><head><meta charset="UTF-8"><title>Login</title><link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"><link href="https://fonts.googleapis.com/css2?family=Prompt&display=swap" rel="stylesheet"></head>
<body style="font-family:'Prompt'; background:#f4f7f6;" class="d-flex align-items-center vh-100">
<div class="container card shadow-sm p-4" style="max-width:350px;">
<h4 class="text-center mb-4">Admin Login</h4>
<?php if(isset($err)) echo "<div class='alert alert-danger py-2 small'>$err</div>"; ?>
<form method="post">
<input type="text" name="u" class="form-control mb-2" placeholder="ชื่อผู้ใช้" required>
<input type="password" name="p" class="form-control mb-3" placeholder="รหัสผ่าน" required>
<button name="login" class="btn btn-success w-100">เข้าสู่ระบบ</button>
</form>
</div>
</body></html>