diff --git a/classes/class_feed.php b/classes/class_feed.php
index 7baae3d6..5d472b62 100644
--- a/classes/class_feed.php
+++ b/classes/class_feed.php
@@ -1,5 +1,7 @@
class FEED {
+ var $UseSSL = false; // If we're using SSL for blog and news links
+
function open_feed() {
header("Content-type: application/xml; charset=UTF-8");
echo "\n","\n\t\n";
@@ -8,11 +10,12 @@ function close_feed() {
echo "\t\n";
}
function channel($Title, $Description, $Section='') {
- echo "\t\t
", $Title, " :: ", SITE_NAME, "\n";
- echo "\t\thttp://", SITE_URL, "/", $Section, "\n";
- echo "\t\t", $Description, "\n";
+ $Site = $this->UseSSL ? 'https://'.SSL_SITE_URL : 'http://'.NONSSL_SITE_URL;
+ echo "\t\t$Title :: ". SITE_NAME. "\n";
+ echo "\t\t$Site/$Section\n";
+ echo "\t\t$Description\n";
echo "\t\ten-us\n";
- echo "\t\t", date('r'), "\n";
+ echo "\t\t". date('r'). "\n";
echo "\t\thttp://blogs.law.harvard.edu/tech/rss\n";
echo "\t\tGazelle Feed Class\n\n";
}
@@ -22,15 +25,15 @@ function item($Title, $Description, $Page, $Creator, $Comments='', $Category='',
} else {
$Date = date("r",strtotime($Date));
}
- $Site = NONSSL_SITE_URL;
+ $Site = $this->UseSSL ? 'https://'.SSL_SITE_URL : 'http://'.NONSSL_SITE_URL;
$Item = "\t\t- \n";
$Item .= "\t\t\t\n";
$Item .= "\t\t\t\n";
$Item .= "\t\t\t$Date\n";
- $Item .= "\t\t\thttp://$Site/$Page\n";
- $Item .= "\t\t\thttp://$Site/$Page\n";
+ $Item .= "\t\t\t$Site/$Page\n";
+ $Item .= "\t\t\t$Site/$Page\n";
if ($Comments != '') {
- $Item .= "\t\t\thttp://$Site/$Comments\n";
+ $Item .= "\t\t\t$Site/$Comments\n";
}
if ($Category != '') {
$Item .= "\t\t\t\n";
diff --git a/classes/config.template b/classes/config.template
index 138a37de..7f35b907 100644
--- a/classes/config.template
+++ b/classes/config.template
@@ -108,6 +108,8 @@ define('STATUS_CHAN', '#');
// Miscellaneous values
+$ForumsRevealVoters = array();
+
$Categories = array('Music', 'Applications', 'E-Books', 'Audiobooks', 'E-Learning Videos', 'Comedy', 'Comics');
$CategoryIcons = array('music.png', 'apps.png', 'ebook.png', 'audiobook.png', 'elearning.png', 'comedy.png', 'comics.png');
diff --git a/classes/script_start.php b/classes/script_start.php
index b96cc78f..fe9c171e 100644
--- a/classes/script_start.php
+++ b/classes/script_start.php
@@ -193,7 +193,6 @@
// Update LastUpdate every 10 minutes
if(strtotime($UserSessions[$SessionID]['LastUpdate'])+600