This repository has been archived by the owner on Jun 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
73 lines (65 loc) · 2.26 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<title>Arcade Park</title>
<meta name="description" content="...">
<link rel="stylesheet" href="assets/css/style.css" type="text/css">
<script type="text/javascript" src="assets/js/script.js"></script>
<meta name="keywords" content="...">
<meta http-equiv="Content-Language" content="fr">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" sizes="228x228" href="assets/img/logo_violet.png">
</head>
<body>
<div class="mascotte">
<img src="assets/img/alien_x4.png">
</div>
<a href="classement.php" class="link-top-right">
<span>CLASSEMENT</span>
<img src="assets/img/classement_icon.png">
</a>
<?php
if(isset($_SESSION["id"]) && !empty($_SESSION["id"]) && is_numeric($_SESSION["id"])) {
?>
<a href="panel/" class="link-top-right" style="top:100px;">
<span>AJOUTER UN JEU</span>
<img src="assets/img/login_icon.png">
</a>
<a href="logout.php" class="link-top-right" style="top:170px;">
<span>DECONNEXION</span>
<img src="assets/img/login_icon.png">
</a>
<?php
} else {
?>
<a href="login.php" class="link-top-right" style="top:100px;">
<span>MON ESPACE</span>
<img src="assets/img/login_icon.png">
</a>
<?php
}
?>
<div class="logo-big"></div>
<div class="menu">
<a href="server.php?gamestart" class="btn btn-big" style="margin-top:30px;">
JOUER
</a>
</div>
<footer style="position:absolute;bottom:30px;">
© Arcade Park 2020
</footer>
<script>
var audio = new Audio('assets/songs/jeu_0.wav');
audio.addEventListener('ended', function() {
this.currentTime = 0;
this.play();
}, false);
audio.volume=.5;
audio.play();
</script>
</body>
</html>