diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-09-07 13:14:00 +0000 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-09-07 13:14:00 +0000 |
commit | e37f9866bf28a011cc2e884c7a5e2ea6e8508fc0 (patch) | |
tree | 53e9b2b303d78b5f856646fac6d3883f735f875d /series | |
parent | 0c61e34109d7c69b1093463ece88e5545c6f1c16 (diff) | |
download | instadisc-e37f9866bf28a011cc2e884c7a5e2ea6e8508fc0.tar.gz instadisc-e37f9866bf28a011cc2e884c7a5e2ea6e8508fc0.tar.bz2 instadisc-e37f9866bf28a011cc2e884c7a5e2ea6e8508fc0.zip |
Series: Fixed up index.php
Refs #53
Diffstat (limited to 'series')
-rw-r--r-- | series/core/trunk/includes/instadisc.php | 9 | ||||
-rw-r--r-- | series/core/trunk/index.php | 3 | ||||
-rw-r--r-- | series/core/trunk/theme/index.tpl | 3 |
3 files changed, 13 insertions, 2 deletions
diff --git a/series/core/trunk/includes/instadisc.php b/series/core/trunk/includes/instadisc.php index b1b6ce5..3e0ff32 100644 --- a/series/core/trunk/includes/instadisc.php +++ b/series/core/trunk/includes/instadisc.php | |||
@@ -42,4 +42,13 @@ function instaDisc_getAllSubscriptions() | |||
42 | return $getsubs3; | 42 | return $getsubs3; |
43 | } | 43 | } |
44 | 44 | ||
45 | function instaDisc_getConfig($name) | ||
46 | { | ||
47 | $getconfig = "SELECT * FROM config WHERE name = \"" . mysql_real_escape_string($name) . "\""; | ||
48 | $getconfig2 = mysql_query($getconfig); | ||
49 | $getconfig3 = mysql_fetch_array($getconfig2); | ||
50 | |||
51 | return $getconfig3['value']; | ||
52 | } | ||
53 | |||
45 | ?> | 54 | ?> |
diff --git a/series/core/trunk/index.php b/series/core/trunk/index.php index 7d3916c..9d8cb05 100644 --- a/series/core/trunk/index.php +++ b/series/core/trunk/index.php | |||
@@ -5,13 +5,14 @@ | |||
5 | include('includes/instadisc.php'); | 5 | include('includes/instadisc.php'); |
6 | 6 | ||
7 | $template = new FITemplate('index'); | 7 | $template = new FITemplate('index'); |
8 | $template->add('SITENAME', instaDisc_getConfig('siteName')); | ||
8 | 9 | ||
9 | $subs = instaDisc_getAllSubscriptions(); | 10 | $subs = instaDisc_getAllSubscriptions(); |
10 | foreach ($subs as $name => $value) | 11 | foreach ($subs as $name => $value) |
11 | { | 12 | { |
12 | if ($value['personal'] == 'false') | 13 | if ($value['personal'] == 'false') |
13 | { | 14 | { |
14 | $template->adds_block('SUBSCRIPTION', array( 'IDENTITY' => $name, | 15 | $template->adds_block('SUBSCRIPTIONS', array( 'IDENTITY' => $value['identity'], |
15 | 'TITLE' => $value['title'], | 16 | 'TITLE' => $value['title'], |
16 | 'CATEGORY' => $value['category'])); | 17 | 'CATEGORY' => $value['category'])); |
17 | } | 18 | } |
diff --git a/series/core/trunk/theme/index.tpl b/series/core/trunk/theme/index.tpl index 6c22f3e..338f0cc 100644 --- a/series/core/trunk/theme/index.tpl +++ b/series/core/trunk/theme/index.tpl | |||
@@ -1,4 +1,5 @@ | |||
1 | <H1>Subscriptions Available</H1> | 1 | <H1><!--SITENAME--></H1><P> |
2 | <H2>Subscriptions Available</H2> | ||
2 | 3 | ||
3 | <UL> | 4 | <UL> |
4 | <!--BEGIN SUBSCRIPTIONS--> | 5 | <!--BEGIN SUBSCRIPTIONS--> |