-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogout.php
41 lines (38 loc) · 1.2 KB
/
logout.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
<?php
/*
#===================================================================================
# BAM Manager (Bugzilla Automated Metrics Manager): index.php
#
# Copyright 2011, Comarch SA
# Maintainers: Krystian Jedrzejowski <krystian.jedrzejowski@comarch.com>,
# Kamil Marek <kamil.marek@comarch.com>
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
#
# Date: Thu Jul 13 11:56:00 EET 2011
#===================================================================================
*/
session_start();
if(!isSet($_SESSION['logged in'])) {
$notification = "You haven't been logged in! <br>Click <a class=\"notification-link\" href=\"index.php\">here</a> to log in!";
}
else {
unset($_SESSION['logged in']);
$notification = 'You have been logged out. <br>Click <a class="notification-link" href="index.php">here</a> to log in again!';
}
session_destroy();
?>
<html>
<head>
<link rel="Stylesheet" type="text/css" href="style/style.css">
<title>BAM Manager</title>
</head>
<body>
<div align="center" style="width: 700px; margin: auto;">
<fieldset id="login_form">
<legend>BAM Manager</legend>
<br><br><br><br>
<h2><?php echo $notification ?></h2>
</fieldset>
</div>
</body>
</html>