about summary refs log tree commit diff stats
path: root/series/core
diff options
context:
space:
mode:
Diffstat (limited to 'series/core')
-rw-r--r--series/core/trunk/includes/instadisc.php9
-rw-r--r--series/core/trunk/index.php3
-rw-r--r--series/core/trunk/theme/index.tpl3
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
45function 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 @@
5include('includes/instadisc.php'); 5include('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();
10foreach ($subs as $name => $value) 11foreach ($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-->