From d633dae00fc9ce954c958e2714e4a43c40b85648 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 26 Aug 2008 20:47:07 +0000 Subject: Central: Create Subscription Management page Refs #25 --- central/trunk/mansub.php | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 central/trunk/mansub.php (limited to 'central/trunk/mansub.php') 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 @@ +add('SITENAME', instaDisc_getConfig('siteName')); + + $subs = instaDisc_listSubscriptions($_SESSION['username']); + $i=0; + for ($i=0;$i<$subs['size'];$i++) + { + $template->adds_block('SUBSCRIPTION', array( 'URL' => $subs[$i], + 'ID' => $i, + 'EVEN' => (($i % 2 == 0) ? " CLASS=\"even\"" : ""))); + } + + $template->display(); +} else { + header('Location: index.php'); +} + +?> -- cgit 1.4.1