diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-26 20:47:07 +0000 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-26 20:47:07 +0000 |
commit | d633dae00fc9ce954c958e2714e4a43c40b85648 (patch) | |
tree | 5f105b545864768c2a0544ebe66492e42c15a523 /central/trunk/mansub.php | |
parent | 681a40af319373510f30793d3b892bd9700213fb (diff) | |
download | instadisc-d633dae00fc9ce954c958e2714e4a43c40b85648.tar.gz instadisc-d633dae00fc9ce954c958e2714e4a43c40b85648.tar.bz2 instadisc-d633dae00fc9ce954c958e2714e4a43c40b85648.zip |
Central: Create Subscription Management page
Refs #25
Diffstat (limited to 'central/trunk/mansub.php')
-rw-r--r-- | central/trunk/mansub.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/central/trunk/mansub.php b/central/trunk/mansub.php new file mode 100644 index 0000000..3a2e2d0 --- /dev/null +++ b/central/trunk/mansub.php | |||
@@ -0,0 +1,27 @@ | |||
1 | <?php | ||
2 | |||
3 | /* InstaDisc Server - A Four Island Project */ | ||
4 | |||
5 | include('includes/instadisc.php'); | ||
6 | include('includes/template.php'); | ||
7 | |||
8 | if (isset($_SESSION['username'])) | ||
9 | { | ||
10 | $template = new FITemplate('mansub'); | ||
11 | $template->add('SITENAME', instaDisc_getConfig('siteName')); | ||
12 | |||
13 | $subs = instaDisc_listSubscriptions($_SESSION['username']); | ||
14 | $i=0; | ||
15 | for ($i=0;$i<$subs['size'];$i++) | ||
16 | { | ||
17 | $template->adds_block('SUBSCRIPTION', array( 'URL' => $subs[$i], | ||
18 | 'ID' => $i, | ||
19 | 'EVEN' => (($i % 2 == 0) ? " CLASS=\"even\"" : ""))); | ||
20 | } | ||
21 | |||
22 | $template->display(); | ||
23 | } else { | ||
24 | header('Location: index.php'); | ||
25 | } | ||
26 | |||
27 | ?> | ||