-
Notifications
You must be signed in to change notification settings - Fork 2
/
logout.php
36 lines (33 loc) · 996 Bytes
/
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
<?php
/**
* @file logout.php
* @brief logout.php is the page that the "Logout" link in the menu brings the
* active user to. Upon loading, all SESSION variables are wiped, and we
* are presented with a login screen.
*
* This file includes:
* funcs.inc:
* - ?
*
* @link http://www.worldsapartgames.org/fc/logout.php @endlink
*
* @author Michael Whitehouse
* @author Creidieki Crouch
* @author Desmond Duval
* @copyright 2009-2014 Pioneer Valley Gaming Collective
* @version 1.8d
* @since Project has existed since time immemorial.
*/
require_once 'funcs.inc';
require_once 'header.php';
foreach ($_SESSION as $key => $value) {
unset($_SESSION[$key]);
}
echo"<h1>Login</h1>
<hr>
<form action='logout.php' method='post'>
Username: <input type='text' name='username'><p>
Password: <input type='password' name='password'><p>
<input type='submit' name='submit' value='Login'>
</form><p>";
?>