diff options
Diffstat (limited to 'series/trunk/admin/mansub.php')
-rw-r--r-- | series/trunk/admin/mansub.php | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/series/trunk/admin/mansub.php b/series/trunk/admin/mansub.php deleted file mode 100644 index 6ad04ac..0000000 --- a/series/trunk/admin/mansub.php +++ /dev/null | |||
@@ -1,45 +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 | $template = new FITemplate('mansub'); | ||
23 | $template->add('SITENAME', instaDisc_getConfig('siteName')); | ||
24 | |||
25 | if (instaDisc_isAdmin($_SESSION['username'])) | ||
26 | { | ||
27 | $subs = instaDisc_getAllSubscriptions(); | ||
28 | } else { | ||
29 | $subs = instaDisc_listSubscriptions($_SESSION['username']); | ||
30 | } | ||
31 | $i=0; $j=0; | ||
32 | for ($i=0;isset($subs[$i]);$i++) | ||
33 | { | ||
34 | $j++; | ||
35 | } | ||
36 | $j--; | ||
37 | for ($i=0;$i<$j;$i++) | ||
38 | { | ||
39 | $template->adds_block('SUBSCRIPTIONS', array( 'IDENTITY' => $subs[$i]['identity'], | ||
40 | 'ID' => $subs[$i]['id'])); | ||
41 | } | ||
42 | |||
43 | $template->display(); | ||
44 | |||
45 | ?> | ||