-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaccueil.php
47 lines (36 loc) · 984 Bytes
/
accueil.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
<html>
<head>
<meta charset ="utf-8">
<title>Accueil</title>
<!--Section dédiée au session+mettre un boolean pour si redacteur ou non-->
<?php
include ("./co.php");
function detruire(){
session_start();
//Ajouter un message de confirmation
$_SESSION[]=array();
session_destroy();
header("location: accueil.php");
}
?>
</head>
<body>
<h1>Accueil</h1>
<!---->
<!-- Bloc à mettre à haut gauche ou haut droite-->
<div>
<h4>Rédacteur</h4>
<input type ="button" value="Authentification"> <!--Vers page -->
<input type ="button" value="Deco" action="detruire()"> <!--Fonction: Insérer une confirmation + session detruite-->
<input type ="button" value="Création de compte"> <!--Vers page -->
<?php
if($ok){ //Si redacteur alors:
echo "<input type='button' value='Création du sujet'>"; //Vers page
}
?>
</div>
<!--Visualisation des pages de blogs, chargement depuis la bdd, puis ccs ->
<P>
</P>
</body>
</html>