diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-09-18 21:59:23 +0000 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-09-18 21:59:23 +0000 |
commit | fd3f2cbdaa1e3c160727c3cf09ef03d06174c114 (patch) | |
tree | 12ea30a00c68891f2fbc01f5b2730bc6edc153aa /series/trunk/admin/deletesub.php | |
parent | d2a7b26e98569624347d717d7fdfe6c3074658a9 (diff) | |
download | instadisc-fd3f2cbdaa1e3c160727c3cf09ef03d06174c114.tar.gz instadisc-fd3f2cbdaa1e3c160727c3cf09ef03d06174c114.tar.bz2 instadisc-fd3f2cbdaa1e3c160727c3cf09ef03d06174c114.zip |
Series: Removed Series component
Refs #57
Diffstat (limited to 'series/trunk/admin/deletesub.php')
-rw-r--r-- | series/trunk/admin/deletesub.php | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/series/trunk/admin/deletesub.php b/series/trunk/admin/deletesub.php deleted file mode 100644 index 102a6a3..0000000 --- a/series/trunk/admin/deletesub.php +++ /dev/null | |||
@@ -1,71 +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 | */ | ||
14 | require_once('includes/instadisc.php'); | ||
15 | |||
16 | if (!isset($_SESSION['username'])) | ||
17 | { | ||
18 | header('Location: index.php'); | ||
19 | exit; | ||
20 | } | ||
21 | |||
22 | if (!instaDisc_isAdmin($_SESSION['username'])) | ||
23 | { | ||
24 | $subs = instaDisc_listSubscriptions($_SESSION['username']); | ||
25 | $i=0; | ||
26 | $notfound=1; | ||
27 | for ($i=0;isset($subs[$i]);$i++) | ||
28 | { | ||
29 | if (!isset($_GET['submit'])) | ||
30 | { | ||
31 | if ($subs[$i]['identity'] == $_POST['id']) | ||
32 | { | ||
33 | $notfound=0; | ||
34 | } | ||
35 | } else { | ||
36 | if ($subs[$i]['id'] == $_GET['subid']) | ||
37 | { | ||
38 | $notfound=0; | ||
39 | } | ||
40 | } | ||
41 | } | ||
42 | |||
43 | if ($notfound == 1) | ||
44 | { | ||
45 | header('Location: index.php'); | ||
46 | exit; | ||
47 | } | ||
48 | } | ||
49 | |||
50 | if (!isset($_GET['submit'])) | ||
51 | { | ||
52 | $template = new FITemplate('deletesub'); | ||
53 | $template->add('SITENAME',instaDisc_getConfig('siteName')); | ||
54 | $template->add('ID',$_GET['subid']); | ||
55 | |||
56 | $sub = instaDisc_getSubscriptionByID($_GET['subid']); | ||
57 | $template->add('IDENTITY',$sub['identity']); | ||
58 | $template->display(); | ||
59 | } else { | ||
60 | if ($_POST['submit'] == 'Yes') | ||
61 | { | ||
62 | instaDisc_deleteSubscription($_POST['id']); | ||
63 | |||
64 | $template = new FITemplate('deletedsub'); | ||
65 | $template->display(); | ||
66 | } else { | ||
67 | header('Location: admin.php?id=main'); | ||
68 | } | ||
69 | } | ||
70 | |||
71 | ?> | ||