aboutsummaryrefslogtreecommitdiffstats
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
parentdd38bb9ee947c0755bba561817cd9be73232396d (diff)
downloadphpicalendar-83508e2f18660eb68a46de17dfa3ee13a39c724a.tar.gz
phpicalendar-83508e2f18660eb68a46de17dfa3ee13a39c724a.tar.bz2
phpicalendar-83508e2f18660eb68a46de17dfa3ee13a39c724a.zip
Footer tweeks, addition to config and lang files.
-rw-r--r--config.inc.php6
-rw-r--r--day.php3
-rw-r--r--footer.inc.php2
-rw-r--r--languages/english.inc.php1
-rw-r--r--rss/index.php16
-rw-r--r--rss/rss.php14
6 files changed, 25 insertions, 17 deletions
diff --git a/config.inc.php b/config.inc.php
index 04f5008..5f4d3e4 100644
--- a/config.inc.php
+++ b/config.inc.php
@@ -9,7 +9,7 @@ $style_sheet = 'silver'; // Themes support
$calendar_path = './calendars'; // Path to directory with calendars
$default_view = 'day'; // Default view for calendars = 'day', 'week', 'month', 'year'
$minical_view = 'current'; // Where do the mini-calendars go when clicked? = 'day', 'week', 'month', 'current'
-$default_cal = 'Home'; // Exact filename of calendar without .ics
+$default_cal = 'Jareds32Classes'; // Exact filename of calendar without .ics
$language = 'English'; // Language support - 'English', 'Polish', 'German', 'French', 'Dutch', 'Danish', 'Italian', 'Japanese', 'Norwegian', 'Spanish'
$week_start_day = 'Sunday'; // Day of the week your week starts on
$day_start = '0700'; // Start time for day grid
@@ -20,6 +20,7 @@ $tomorrows_events_lines = '1'; // Number of lines to wrap each event title in
$allday_week_lines = '1'; // Number of lines to wrap each event title in all-day events in week view, 0 means display all lines.
$week_events_lines = '1'; // Number of lines to wrap each event title in the 'Tommorrow's events' box, 0 means display all lines.
$timezone = ''; // Set timezone. Read TIMEZONES file for more information
+$default_path = 'http://ical.silter.org/phpicalendar';
// Yes/No questions --- 'yes' means Yes, anything else means no. 'yes' must be lowercase.
$save_parsed_cals = 'no'; // Recommended 'yes'. Saves a copy of the cal in /tmp after it's been parsed. Improves performence.
@@ -29,7 +30,8 @@ $display_ical_list = 'yes'; // In the 'Jump To' box, display the pop-up menu
$allow_webcals = 'no'; // Allow http:// and webcal:// prefixed URLs to be used as the $cal for remote viewing of "subscribe-able" calendars. This does not have to be enabled to allow specific ones below.
$this_months_events = 'yes'; // Display "This month's events" at the bottom off the month page.
$use_color_cals = 'yes'; // Display each calendar in the pop-up as a different color.
-$daysofweek_dayview = 'no'; // Display the days of the week in day.php view.
+$daysofweek_dayview = 'yes'; // Display the days of the week in day.php view.
+$enable_rss = 'yes'; // Enable RSS access to your calendars (good thing).
$blacklisted_cals[] = ''; // Fill in between the quotes the name of the calendars
$blacklisted_cals[] = ''; // you wish to 'blacklist' or that you don't want to show up in your calendar
diff --git a/day.php b/day.php
index 4fdc00e..f740962 100644
--- a/day.php
+++ b/day.php
@@ -110,10 +110,12 @@ if (is_array($master_array[($getdate)])) {
}
if ($daysofweek_dayview == 'yes') {
?>
+
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<?php
+ echo '<tr><td colspan="7"><img src="images/spacer.gif" width="70" height="1" alt=""></td></tr>';
echo "<tr>";
$thisdate = $start_week_time;
$start_day = strtotime($week_start_day);
@@ -135,6 +137,7 @@ if (is_array($master_array[($getdate)])) {
echo '</tr>';
}
?>
+
<tr>
<td align="center" valign="top" colspan="3">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
diff --git a/footer.inc.php b/footer.inc.php
index b147d41..efa7a3e 100644
--- a/footer.inc.php
+++ b/footer.inc.php
@@ -1 +1 @@
-<?php echo "<center><font class=\"V9\"><br>$powered_by_lang <a class=\"psf\" href=\"http://phpicalendar.sourceforge.net/\">PHP iCalendar $version_lang</a></font></center>"; ?> \ No newline at end of file
+<?php echo "<center><font class=\"V9\"><br>$powered_by_lang <a class=\"psf\" href=\"http://phpicalendar.sourceforge.net/\">PHP iCalendar $version_lang</a>"; if ($enable_rss == yes) { echo "<br>\n"; echo $this_site_is_lang.' <a class="psf" href="'.BASE.'rss/">RSS-Enabled</a></font></center>'; } echo '</font></center>'; ?> \ No newline at end of file
diff --git a/languages/english.inc.php b/languages/english.inc.php
index b600d0c..8d1d233 100644
--- a/languages/english.inc.php
+++ b/languages/english.inc.php
@@ -44,6 +44,7 @@ $goday_lang = 'Go to Today';
$goweek_lang = 'Go to This Week';
$gomonth_lang = 'Go to This Month';
$goyear_lang = 'Go to This Year';
+$this_site_is_lang = 'This site is';
$daysofweek_lang = array ('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
$daysofweekshort_lang = array ('Sun','Mon','Tue','Wed','Thu','Fri','Sat');
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