File name
Commit message
Commit date
File name
Commit message
Commit date
<?php
session_start();
if ($_SESSION['login'] == 'ok'){
echo "<script>alert('Login Success!!')</script>";
?>
<!doctype html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<h1><em><?php echo $_GET['id'] ?></em>, Login Success!!!</h1>
<button onclick="document.location.href='logout.php'">Logout</button>
</body>
</html>
<?php
}else{
echo "<script>alert('Login Fail!!')</script>";
echo "<script>document.location.href='login.php'</script>";
}
?>