about summary refs log tree commit diff stats
path: root/series/trunk/admin/deleteuser.php
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2008-09-18 21:59:23 +0000
committerKelly Rauchenberger <fefferburbia@gmail.com>2008-09-18 21:59:23 +0000
commitfd3f2cbdaa1e3c160727c3cf09ef03d06174c114 (patch)
tree12ea30a00c68891f2fbc01f5b2730bc6edc153aa /series/trunk/admin/deleteuser.php
parentd2a7b26e98569624347d717d7fdfe6c3074658a9 (diff)
downloadinstadisc-fd3f2cbdaa1e3c160727c3cf09ef03d06174c114.tar.gz
instadisc-fd3f2cbdaa1e3c160727c3cf09ef03d06174c114.tar.bz2
instadisc-fd3f2cbdaa1e3c160727c3cf09ef03d06174c114.zip
Series: Removed Series component
Refs #57
Diffstat (limited to 'series/trunk/admin/deleteuser.php')
-rw-r--r--series/trunk/admin/deleteuser.php49
1 files changed, 0 insertions, 49 deletions
diff --git a/series/trunk/admin/deleteuser.php b/series/trunk/admin/deleteuser.php deleted file mode 100644 index 7d1b0a0..0000000 --- a/series/trunk/admin/deleteuser.php +++ /dev/null
@@ -1,49 +0,0 @@
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 */
14require_once('includes/instadisc.php');
15
16if (!isset($_SESSION['username']))
17{
18 header('Location: index.php');
19 exit;
20}
21
22if (!instaDisc_isAdmin($_SESSION['username']))
23{
24 header('Location: index.php');
25 exit;
26}
27
28if (!isset($_GET['submit']))
29{
30 $template = new FITemplate('deleteuser');
31 $template->add('SITENAME',instaDisc_getConfig('siteName'));
32 $template->add('ID',$_GET['userid']);
33
34 $sub = instaDisc_getUserByID($_GET['userid']);
35 $template->add('USERNAME',$sub['username']);
36 $template->display();
37} else {
38 if ($_POST['submit'] == 'Yes')
39 {
40 instaDisc_deleteUser($_POST['id']);
41
42 $template = new FITemplate('deleteduser');
43 $template->display();
44 } else {
45 header('Location: admin.php?id=main');
46 }
47}
48
49?>