aboutsummaryrefslogtreecommitdiffstats
path: root/rss
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2002-10-24 06:27:04 +0000
committerChad Little <clittle@users.sourceforge.net>2002-10-24 06:27:04 +0000
commit83508e2f18660eb68a46de17dfa3ee13a39c724a (patch)
tree349ef0991a80b1dd3ee64f96a74e2802e9cc667f /rss
parentdd38bb9ee947c0755bba561817cd9be73232396d (diff)
downloadphpicalendar-83508e2f18660eb68a46de17dfa3ee13a39c724a.tar.gz
phpicalendar-83508e2f18660eb68a46de17dfa3ee13a39c724a.tar.bz2
phpicalendar-83508e2f18660eb68a46de17dfa3ee13a39c724a.zip
Footer tweeks, addition to config and lang files.
Diffstat (limited to 'rss')
-rw-r--r--rss/index.php16
-rw-r--r--rss/rss.php14
2 files changed, 16 insertions, 14 deletions
diff --git a/rss/index.php b/rss/index.php
index 8570920..e0f96a4 100644
--- a/rss/index.php
+++ b/rss/index.php
@@ -18,7 +18,7 @@ include(BASE.'functions/ical_parser.php');
<table border="0" width="700" cellspacing="0" cellpadding="0">
<tr>
<td width="520" valign="top" align="center">
- <table width="520" border="0" cellspacing="0" cellpadding="0" class="calborder">
+ <table width="640" border="0" cellspacing="0" cellpadding="0" class="calborder">
<tr>
<td align="center" valign="middle">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="G10B">
@@ -34,15 +34,19 @@ include(BASE.'functions/ical_parser.php');
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="G10B">
<tr>
- <td align="center" valign="top">
+ <td width="2%"></td>
+ <td width="98%" valign="top">
<br>
- <?php echo $error_msg; ?>
+ This website is RSS enabled.<br>
<br>
+ <b>Day View:</b><br>
+ <?php echo $default_path.'/rss.php?cal='.$cal.'&rssview=day'; ?><br>
<br>
- <?php echo $error_calendar; ?>
+ <b>Week View:</b><br>
+ <?php echo $default_path.'/rss.php?cal='.$cal.'&rssview=week'; ?><br>
<br>
- <br>
- <?php echo $error_back_lang; ?>
+ <b>Month View:</b><br>
+ <?php echo $default_path.'/rss.php?cal='.$cal.'&rssview=month'; ?><br>
<br>
<br>
</td>
diff --git a/rss/rss.php b/rss/rss.php
index c134698..d5d1014 100644
--- a/rss/rss.php
+++ b/rss/rss.php
@@ -1,21 +1,19 @@
<?php
define('BASE', '../');
-
-#$getdate = date ("Ymd");
-#$cal = "Jareds32Classes";
include(BASE.'functions/ical_parser.php');
+$theview = 'Day';
$rss = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>"."\n";
$rss .= '<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" "http://my.netscape.com/publish/formats/rss-0.91.dtd">'."\n";
$rss .= '<rss version="0.91">'."\n";
$rss .= '<channel>'."\n";
-$rss .= '<title>PHP iCalender</title>'."\n";
-$rss .= '<link>http://www.yoursite.org</link>'."\n";
-$rss .= '<description>Someones PHP iCalendar</description>'."\n";
+$rss .= '<title>'.$cal.' '.$calendar_lang.' - '.$theview.'</title>'."\n";
+$rss .= '<link>'.$default_path.'</link>'."\n";
+$rss .= '<description>'.$cal.' '.$calendar_lang.' - '.$theview.'</description>'."\n";
$rss .= '<language>us-en</language>'."\n";
-$rss .= '<copyright>Copyright 2002, yoursite.com.</copyright>'."\n";
+$rss .= '<copyright>Copyright 2002, '.$default_path.'</copyright>'."\n";
if (isset($master_array[($getdate)]) && sizeof($master_array[($getdate)]) > 0) {
foreach ($master_array[("$getdate")] as $event_times) {
@@ -29,7 +27,7 @@ if (isset($master_array[($getdate)]) && sizeof($master_array[($getdate)]) > 0) {
$description = strip_tags($description, '<b><i><u>');
$rss .= '<item>'."\n";
$rss .= '<title>'.$event_start.' '.$event_text.'</title>'."\n";
- $rss .= '<link>http://localhost/phpicalendar/day.php?getdate='.$getdate.'&cal='.$cal.'</link>'."\n";
+ $rss .= '<link>'.$default_path.'/day.php?getdate='.$getdate.'&cal='.$cal.'</link>'."\n";
$rss .= '<description>'.$description.'</description>'."\n";
$rss .= '</item>'."\n";
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy