-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
65 lines (55 loc) · 1.71 KB
/
index.php
File metadata and controls
65 lines (55 loc) · 1.71 KB
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
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>FindTweet</title>
<meta name="description" content="Site web permettant de consulter un fil d'actualité et de rechercher parmi celui-ci."/>
<meta name="author" content="Marc-Antoine" />
<link rel="shortcut icon" href="img/favicon.png">
<!-- ///////// CSS //////// -->
<link rel="stylesheet" type="text/css" href="css/main.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<!-- ///////// JS //////// -->
<!-- <script src="js/sorttable.js"></script>-->
</head>
<body>
<?php session_start();
if(@$_SESSION['logged'] == false){
echo "<header>
<div class=\"col-xs-12\">
<div class=\"main\">
<div class=\"row\">
<div class=\"col-xs-6 col-sm-6 col-sm-offset-1\">
<h1>FindTweet</h1>
<div id=\"login\" class=\"col-xs-6\">
<a href=\"connect.php\">
<button type=\"button\" value=\"connect\">Connexion</button>
</a>
<a href=\"register.php\">
<button type=\"button\" value=\"register\" >S'enregistrer</button>
</a>
</div>
</div>
</div>
</div>
</div>
</header>";
}elseif ($_SESSION['logged'] == true){
echo "<header>
<h1>FindTweet</h1>
<div id=\"login\">
Utilisateur : <span>".$_SESSION['username']."</span>
<a href=\"admin.php\">
<button type=\"button\" value=\"admin\">Administration</button>
</a>
<a href=\"disconnect.php\">
<button type=\"button\" value=\"disconnect\">Se Déconnecter</button>
</a>
</div>
</header>";
}
?>
<?php include('afficher.php'); ?>
</body>
</html>