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/index.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/index.php')
-rw-r--r-- | rss/index.php | 6 |
1 files changed, 6 insertions, 0 deletions
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' <tr> <td class="dayborder"><img src="images/spacer.gif" width="1" height="5"></td> </tr> + <?php if ($enable_rss == "yes") { ?> <tr> <td> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="G10B"> @@ -95,6 +96,11 @@ if (isset($HTTP_SERVER_VARS['HTTP_REFERER']) && $HTTP_SERVER_VARS['HTTP_REFERER' </table> </td> </tr> + <?php } else { ?> + <tr> + <td align="center" class="navback" nowrap valign="middle"><font class="H20">RSS is not enabled on this site.</font></td> + </tr> + <?php } ?> </table> </td> </tr> |