-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathformation.php
More file actions
29 lines (28 loc) · 746 Bytes
/
formation.php
File metadata and controls
29 lines (28 loc) · 746 Bytes
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
<?php
require_once 'auth.php';
if (!is_connected()){
header("Location: connexion.php");
}
if (isset($_POST['deconnexion'])){
unset($_SESSION['connected']);
unset($_SESSION['id']);
header("Location: connexion.php");
}
?>
<html>
<head>
<meta charset="UTF-8"/>
<title>Formations</title>
</head>
<body>
<?php echo "Bonjour à toi " . $_SESSION["id"]. " !"; ?>
<form method="post" action="">
<br/>
<input type="submit" name="deconnexion" value="Deconnexion">
</form>
<h1>Formations</h1>
<a href="cours1.php"> 1er Cours</a>
<br/>
<a href="cours2.php"> 2eme Cours</a>
</body>
</html>