25 lines
550 B
PHP
25 lines
550 B
PHP
<?php
|
|
session_start();
|
|
|
|
if(!isset($_SESSION['users'])) {
|
|
header('location:login.php');
|
|
}
|
|
?>
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="id">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Halaman ke-1</title>
|
|
</head>
|
|
<body style='text-align:center'>
|
|
<h1>Halaman ke-1</h1>
|
|
<a href="index.php">Home</a>
|
|
<a href="logout.php">Logout</a>
|
|
<hr>
|
|
|
|
<h3>Selamat datang, <?php echo $_SESSION['users']['nama'] ?></h3>
|
|
Halaman ini akan tampil setelah user login.
|
|
</body>
|
|
</html>
|