blob: b36966fd86d0e78ea011c552e2d158693ecd8b2d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<?php
/* InstaDisc Server - A Four Island Project */
include('includes/instadisc.php');
include('includes/template.php');
if (isset($_SESSION['username']))
{
$template = new FITemplate('mansub');
$template->add('SITENAME', instaDisc_getConfig('siteName'));
$subs = instaDisc_listSubscriptions($_SESSION['username']);
$i=0;
for ($i=0;$i<$subs['size'];$i++)
{
$template->adds_block('SUBSCRIPTIONS', array( 'URL' => $subs[$i],
'ID' => $i,
'EVEN' => (($i % 2 == 0) ? " CLASS=\"even\"" : "")));
}
$template->display();
} else {
header('Location: index.php');
}
?>
|