From 13bd1058b1ed5e9f38ccc594e92c2cf27cb46e1a Mon Sep 17 00:00:00 2001 From: fenner Date: Wed, 27 Nov 2002 20:34:24 +0000 Subject: Don't supply any RSS info (index or the feed itself) unless $enable_rss is "yes". --- rss/index.php | 6 ++++++ rss/rss.php | 5 +++++ 2 files changed, 11 insertions(+) (limited to 'rss') diff --git a/rss/index.php b/rss/index.php index a62889d..3c0d6ac 100644 --- a/rss/index.php +++ b/rss/index.php @@ -55,6 +55,7 @@ if (isset($HTTP_SERVER_VARS['HTTP_REFERER']) && $HTTP_SERVER_VARS['HTTP_REFERER' + @@ -95,6 +96,11 @@ if (isset($HTTP_SERVER_VARS['HTTP_REFERER']) && $HTTP_SERVER_VARS['HTTP_REFERER'
+ + + RSS is not enabled on this site. + + diff --git a/rss/rss.php b/rss/rss.php index bc289cf..7459155 100644 --- a/rss/rss.php +++ b/rss/rss.php @@ -2,6 +2,11 @@ define('BASE', '../'); include(BASE.'functions/ical_parser.php'); + +if ($enable_rss != 'yes') { + die ("RSS feeds are not enabled on this site."); +} + $default_path = 'http://'.$HTTP_SERVER_VARS['SERVER_NAME'].':'.$HTTP_SERVER_VARS['SERVER_PORT'].substr($HTTP_SERVER_VARS['PHP_SELF'],0,strpos($HTTP_SERVER_VARS['PHP_SELF'],'/rss/')); $start_week_time = strtotime(dateOfWeek($getdate, $week_start_day)); $end_week_time = $start_week_time + (6 * 25 * 60 * 60); -- cgit v1.2.3