blob: 3a2e2d0c9fe76a85f963960064f24666ba269590 (
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('SUBSCRIPTION', array( 'URL' => $subs[$i],
'ID' => $i,
'EVEN' => (($i % 2 == 0) ? " CLASS=\"even\"" : "")));
}
$template->display();
} else {
header('Location: index.php');
}
?>
|