aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README5
-rw-r--r--config.inc.php2
-rw-r--r--day.php2
-rw-r--r--includes/footer.inc.php2
-rw-r--r--includes/sidebar.php3
-rw-r--r--month.php12
6 files changed, 15 insertions, 11 deletions
diff --git a/README b/README
index 49e1e1e..b6441f0 100644
--- a/README
+++ b/README
@@ -86,6 +86,11 @@ functions folder.
Changes:
--------
+1.2
+ -Workaround for events starting between 0000 and 0100
+ -Started templating system
+ -Removed all styles except for defualt
+
1.1
-Fixed a bug with HTTP authentication.
-Fixed a bug with multiple timezones in the same calendar.
diff --git a/config.inc.php b/config.inc.php
index b98e66f..418e7e7 100644
--- a/config.inc.php
+++ b/config.inc.php
@@ -30,7 +30,7 @@ $download_uri = ''; // The HTTP URL to your calendars directory, ie. http:
$default_path = 'http://www.example.com/phpicalendar'; // The HTTP URL to the PHP iCalendar directory, ie. http://www.example.com/phpicalendar
// Yes/No questions --- 'yes' means Yes, anything else means no. 'yes' must be lowercase.
-$save_parsed_cals = 'yes'; // Recommended 'yes'. Saves a copy of the cal in /tmp after it's been parsed. Improves performence.
+$save_parsed_cals = 'no'; // Recommended 'yes'. Saves a copy of the cal in /tmp after it's been parsed. Improves performence.
$display_custom_goto = 'no'; // In the 'Jump To' box, display the custom 'go to day' box.
$display_ical_list = 'yes'; // In the 'Jump To' box, display the pop-up menu with the list of all calendars in the $calendar_path directory.
$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.
diff --git a/day.php b/day.php
index 8a34cfe..220903d 100644
--- a/day.php
+++ b/day.php
@@ -221,7 +221,7 @@ include (BASE.'includes/header.inc.php');
switch ($event_length[$i]['state']) {
case 'begin':
$event_length[$i]['state'] = 'started';
- $event_start = strtotime ($this_time_arr[($event_length[$i]['key'])]['event_start']);
+ $event_start = $this_time_arr[($event_length[$i]['key'])]['start_unixtime'];
$event_end = strtotime ($this_time_arr[($event_length[$i]['key'])]['event_end']);
if (isset($this_time_arr[($event_length[$i]['key'])]['display_end'])) $event_end = strtotime ($this_time_arr[($event_length[$i]['key'])]['display_end']);
$event_start = date ($timeFormat, $event_start);
diff --git a/includes/footer.inc.php b/includes/footer.inc.php
index 52a9878..63c0ee4 100644
--- a/includes/footer.inc.php
+++ b/includes/footer.inc.php
@@ -1,6 +1,6 @@
<?php
-echo "<center class=\"V9\"><br>$powered_by_lang <a class=\"psf\" href=\"http://phpicalendar.sourceforge.net/nuke/\">PHP iCalendar 1.0</a>";
+echo "<center class=\"V9\"><br>$powered_by_lang <a class=\"psf\" href=\"http://phpicalendar.sourceforge.net/nuke/\">PHP iCalendar 1.2</a>";
if ($enable_rss == 'yes') {
echo "<br>\n";
if ((isset($current_view)) && ($current_view == 'rssindex')) {
diff --git a/includes/sidebar.php b/includes/sidebar.php
index 82d5301..72bf3eb 100644
--- a/includes/sidebar.php
+++ b/includes/sidebar.php
@@ -110,11 +110,10 @@ $search_box = '<form style="margin-bottom:0;" action="search.php" method="GET"><
if ($event_text != "") {
$event_text2 = rawurlencode(addslashes($val['event_text']));
$description = addslashes(urlencode($val['description']));
- $event_start = @$val["event_start"];
$event_end = @$val["event_end"];
$event_calna = @$val["calname"];
$event_url = @$val["url"];
- $event_start = date ($timeFormat, @strtotime ($event_start));
+ $event_start = date ($timeFormat, $val['start_unixtime']);
$event_end = date ($timeFormat, @strtotime ($event_end));
$event_text = word_wrap($event_text, 21, $tomorrows_events_lines);
diff --git a/month.php b/month.php
index 3fbf55b..9e8d7f2 100644
--- a/month.php
+++ b/month.php
@@ -123,13 +123,13 @@ include (BASE.'includes/header.inc.php');
echo '</div>';
} else {
echo '<div align="left" class="V9">&nbsp;';
- $event_start = @$val["event_start"];
+ $event_start = @$val["start_unixtime"];
$event_end = @$val["event_end"];
if (isset($val['display_end'])) $event_end = $val['display_end'];
- $event_start = date($timeFormat, @strtotime ("$event_start"));
- $start2 = date($timeFormat_small,@strtotime("$event_start"));
+ $event_star = date($timeFormat, $event_start);
+ $start2 = date($timeFormat_small, $event_start);
$event_end = date($timeFormat, @strtotime ("$event_end"));
- openevent($event_calna, $event_start, $event_end, $val, $month_event_lines, 10, "$start2 ", '', 'ps3', $event_url);
+ openevent($event_calna, $event_star, $event_end, $val, $month_event_lines, 10, "$start2 ", '', 'ps3', $event_url);
echo '</div>';
}
}
@@ -191,10 +191,10 @@ include (BASE.'includes/header.inc.php');
if ($new_val2["event_text"]) {
if (isset($new_val2["event_start"])) {
- $event_start = $new_val2["event_start"];
+ $event_start = $new_val2["start_unixtime"];
$event_end = $new_val2["event_end"];
if (isset($new_val2['display_end'])) $event_end = $new_val2['display_end'];
- $event_start = date ($timeFormat, strtotime ("$event_start"));
+ $event_start = date ($timeFormat, $event_start);
$event_end = date ($timeFormat, strtotime ("$event_end"));
$event_start2 = $event_start;
} else {

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