aboutsummaryrefslogtreecommitdiffstats
path: root/day.php
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2008-12-15 17:25:27 +0000
committerJim Hu <jimhu@users.sourceforge.net>2008-12-15 17:25:27 +0000
commitcb1509c1c670974f54ed67d2076fef39e0d20812 (patch)
tree7f7f64c60ad63cf884cf5562565f46cffd3f9597 /day.php
parent99cfde6479207ba9349d8c4a093ef14a1026154d (diff)
downloadphpicalendar-cb1509c1c670974f54ed67d2076fef39e0d20812.tar.gz
phpicalendar-cb1509c1c670974f54ed67d2076fef39e0d20812.tar.bz2
phpicalendar-cb1509c1c670974f54ed67d2076fef39e0d20812.zip
big changes to recurrence; trying to get closer to the spec
Diffstat (limited to 'day.php')
-rw-r--r--day.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/day.php b/day.php
index 0e109d4..7ed31ea 100644
--- a/day.php
+++ b/day.php
@@ -1,20 +1,21 @@
<?php
+$current_view = 'day';
+if (!defined('BASE')) define('BASE', './');
+require_once(BASE.'functions/init.inc.php');
+header("Content-Type: text/html; charset=$phpiCal_config->charset");
if (isset($_GET['jumpto_day'])) {
$jumpto_day_time = strtotime($_GET['jumpto_day']);
if ($jumpto_day_time == -1) {
- $getdate = date('Ymd', time() + $second_offset);
+ $getdate = date('Ymd', time() + $phpiCal_config->second_offset);
} else {
$getdate = date('Ymd', $jumpto_day_time);
}
}
-$current_view = 'day';
-if (!defined('BASE')) define('BASE', './');
require_once(BASE.'functions/ical_parser.php');
require_once(BASE.'functions/list_functions.php');
require_once(BASE.'functions/template.php');
-header("Content-Type: text/html; charset=$charset");
-if ($minical_view == 'current') $minical_view = 'day';
+if ($phpiCal_config->minical_view == 'current') $minical_view = 'day';
$weekstart = 1;
$unix_time = strtotime($getdate);
@@ -24,7 +25,7 @@ $prev_day = date('Ymd', strtotime("-1 day", $unix_time));
$display_date = localizeDate($dateFormat_day, $unix_time);
$sidebar_date = localizeDate($dateFormat_week_list, $unix_time);
-$start_week_time = strtotime(dateOfWeek($getdate, $week_start_day));
+$start_week_time = strtotime(dateOfWeek($getdate, $phpiCal_config->week_start_day));
// select for calendars

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