diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-09-10 21:06:49 +0000 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-09-10 21:06:49 +0000 |
commit | 44c3bc48b5db7b3dc6517d2b073a55af5d4b52db (patch) | |
tree | a48f63061f3cfe5427ce1bc313147cf6be0e739a /series/trunk/admin/logout.php | |
parent | a9a796498285358e7a2f1fde5043e4015de5db70 (diff) | |
download | instadisc-44c3bc48b5db7b3dc6517d2b073a55af5d4b52db.tar.gz instadisc-44c3bc48b5db7b3dc6517d2b073a55af5d4b52db.tar.bz2 instadisc-44c3bc48b5db7b3dc6517d2b073a55af5d4b52db.zip |
Series: Moved around directory structure
Refs #55
Diffstat (limited to 'series/trunk/admin/logout.php')
-rw-r--r-- | series/trunk/admin/logout.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/series/trunk/admin/logout.php b/series/trunk/admin/logout.php new file mode 100644 index 0000000..779a1d2 --- /dev/null +++ b/series/trunk/admin/logout.php | |||
@@ -0,0 +1,26 @@ | |||
1 | <?php | ||
2 | |||
3 | /* InstaDisc Series - A Four Island Project */ | ||
4 | |||
5 | /** | ||
6 | * require_once() is used to ensure | ||
7 | * the ACP files are being called by | ||
8 | * admin.php instead of their actual | ||
9 | * locations admin/. | ||
10 | * The _once() part ensures no problem | ||
11 | * arises as includes/instadisc.php has | ||
12 | * already been included from admin.php | ||
13 | */ | ||
14 | require_once('includes/instadisc.php'); | ||
15 | |||
16 | if (!isset($_SESSION['username'])) | ||
17 | { | ||
18 | header('Location: index.php'); | ||
19 | exit; | ||
20 | } | ||
21 | |||
22 | unset($_SESSION['username']); | ||
23 | |||
24 | header('Location: index.php'); | ||
25 | |||
26 | ?> | ||