????
| Current Path : /home/carpe/www/starship/ |
| Current File : /home/carpe/www/starship/end.php |
<!DOCTYPE html>
<html>
<head>
<title>Watching Us</title>
<meta charset="utf-8">
</head>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Nabla&family=Quicksand:wght@300..700&family=VT323&display=swap" rel="stylesheet">
<style>
body{
background:black;
width:100%;
height:20vh;
display:flex;
justify-content:center;
align-items:center;
padding:0;
margin:0;
margin-top:20vh;
color:white;
flex-wrap:wrap;
}
#end{
color:#d0c2c2;
font-family: "VT323", monospace;
font-size:2rem;
width:100%;
text-align:center;
}
input{
all : initial;
background:#d0c2c2;
color:black;
font-family: "VT323", monospace;
font-size:1.3rem;
border: 5px solid #d0c2c2;
padding:3px 7px 3px 7px;
transition:.5s all;
cursor:pointer;
margin:auto;
margin-top:5vh;
}
input:hover{
transition:.5s all;
color:#d0c2c2;
background:black;
}
img{
width:400Px;
}
</style>
<body>
<img src='images/logo.png'>
<?php
session_start();
if(isset($_POST['send3'])){
header("Location: login.php");
setcookie("resultat", "", time() - 3600, "/");
session_destroy();
}
if(isset($_SESSION['end'])){
echo "<div id='end'>";
echo $_SESSION['end'];
echo "</div>";
echo "<form method='post' action='end.php'><input type='submit' name='send3' value='Rejouer'></form>";
}
include 'objet.php';
include 'database.php';
$database = new Database();
$connexion = $database->getConnection();
if(isset($_SESSION['login'])){
}else{
header("Location: login.php");
setcookie("resultat", "", time() - 3600, "/");
}
?>
</body>
</html>