diff options
author | fenner <fenner> | 2002-11-27 20:34:24 +0000 |
---|---|---|
committer | fenner <fenner> | 2002-11-27 20:34:24 +0000 |
commit | 13bd1058b1ed5e9f38ccc594e92c2cf27cb46e1a (patch) | |
tree | 15226ec1e3b2351eff349ab77ad498a7f148b6fc /rss/rss.php | |
parent | 54f310e8e067fca869b66e9faf9121125ce773bd (diff) | |
download | phpicalendar-13bd1058b1ed5e9f38ccc594e92c2cf27cb46e1a.tar.gz phpicalendar-13bd1058b1ed5e9f38ccc594e92c2cf27cb46e1a.tar.bz2 phpicalendar-13bd1058b1ed5e9f38ccc594e92c2cf27cb46e1a.zip |
Don't supply any RSS info (index or the feed itself) unless
$enable_rss is "yes".
Diffstat (limited to 'rss/rss.php')
-rw-r--r-- | rss/rss.php | 5 |
1 files changed, 5 insertions, 0 deletions
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); |