feat: add logout.php and onboard.php
This commit is contained in:
parent
ea5b6d74c4
commit
ca72628776
11
logout.php
Normal file
11
logout.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
session_start();
|
||||
|
||||
unset($_SESSION['loggedin']);
|
||||
unset($_SESSION['username']);
|
||||
unset($_SESSION['id']);
|
||||
|
||||
$_SESSION['flash'] = "Logout berhasil!";
|
||||
|
||||
header("Location: index.php");
|
||||
exit();
|
||||
39
src/onboard.php
Normal file
39
src/onboard.php
Normal file
@ -0,0 +1,39 @@
|
||||
<?php
|
||||
session_start();
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>onboard</title>
|
||||
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="css/global.css">
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container-onboard">
|
||||
<?php include 'notif.php'; ?>
|
||||
<?php
|
||||
if (!empty($_SESSION['flash'])) {
|
||||
echo "<script>showNotif(" . json_encode($_SESSION['flash']) . ");</script>";
|
||||
unset($_SESSION['flash']);
|
||||
}
|
||||
?>
|
||||
<h1 data-aos="zoom-out" data-aos-duration="1000">👾 codebeater 👾</h1>
|
||||
<div class="menu">
|
||||
<a data-aos="zoom-out" data-aos-duration="2000" href="/src/game/thirdperson.html">Game Start</a>
|
||||
<a data-aos="zoom-out" data-aos-duration="2000" href="leaderboard.php">leaderboard</a>
|
||||
<a data-aos="zoom-out" data-aos-duration="2000" href="">Credit</a>
|
||||
<a data-aos="zoom-out" data-aos-duration="2000" href="logout.php">Exit</a>
|
||||
</div>
|
||||
</div>
|
||||
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
|
||||
<script>
|
||||
AOS.init();
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Loading…
x
Reference in New Issue
Block a user