about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--central/trunk/mansub.php27
-rw-r--r--central/trunk/theme/mansub.tpl29
-rw-r--r--central/trunk/theme/table.css27
3 files changed, 83 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
5include('includes/instadisc.php');
6include('includes/template.php');
7
8if (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?>
diff --git a/central/trunk/theme/mansub.tpl b/central/trunk/theme/mansub.tpl new file mode 100644 index 0000000..a9c8850 --- /dev/null +++ b/central/trunk/theme/mansub.tpl
@@ -0,0 +1,29 @@
1<HTML>
2 <HEAD>
3 <TITLE><!--SITENAME--> InstaDisc Central Server</TITLE>
4 </HEAD>
5
6 <BODY>
7 <CENTER>
8 <H1>InstaDisc Subscription Management</H1>
9
10 <P>If you've sponsered subscriptions here but have decided you want to move elsewhere you can delete subscriptions using the table below:
11
12 <TABLE>
13 <TR>
14 <TH>Subscription URL</TH>
15 <TH>Actions</TH>
16 </TR>
17
18 <!--BEGIN SUBSCRIPTIONS-->
19 <TR<!--SUBSCRIPTIONS.EVEN-->>
20 <TD><!--SUBSCRIPTIONS.URL--></TD>
21 <TD><A HREF="deletesub.php?id=<!--SUBSCRIPTIONS.ID-->">Delete</A></TD>
22 </TR>
23 <!--END SUBSCRIPTIONS-->
24 </TABLE>
25
26 <P><A HREF="userpanel.php">Back to User Panel</A>
27 </CENTER>
28 </BODY>
29</HTML>
diff --git a/central/trunk/theme/table.css b/central/trunk/theme/table.css new file mode 100644 index 0000000..b3603bd --- /dev/null +++ b/central/trunk/theme/table.css
@@ -0,0 +1,27 @@
1/* InstaDisc Central - A Four Island Project */
2
3table {
4 border: 0;
5 width: 100%;
6}
7
8table, table td {
9 border-spacing: 0;
10}
11
12table tr {
13 background-color: #3CE4ED;
14}
15
16table tr.even {
17 background-color: #39B7CD;
18}
19
20table th {
21 background-color: #FF9912;
22 text-align: left;
23}
24
25table td {
26 word-wrap: break-word;
27}