add('SITENAME', instaDisc_getConfig('siteName')); if (instaDisc_isAdmin($_SESSION['username'])) { $subs = instaDisc_getAllSubscriptions(); } else { $subs = instaDisc_listSubscriptions($_SESSION['username']); } $i=0; for ($i=0;isset($subs[$i]);$i++) { $template->adds_block('SUBSCRIPTION', array( 'IDENTITY' => $subs['identity'], 'ID' => $subs['id'])); } $template->display(); ?>