aboutsummaryrefslogtreecommitdiffstats
path: root/print.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2004-05-24 01:39:42 +0000
committerChad Little <clittle@users.sourceforge.net>2004-05-24 01:39:42 +0000
commitc6b16ef0bf6e62ede566ffe457281f38c2cda232 (patch)
tree6d9bafe72fb925da7ef895999a18862b7bbc0c2e /print.php
parente08fe020bc4643c7ea3b50b89e9c1717ec0a13aa (diff)
downloadphpicalendar-c6b16ef0bf6e62ede566ffe457281f38c2cda232.tar.gz
phpicalendar-c6b16ef0bf6e62ede566ffe457281f38c2cda232.tar.bz2
phpicalendar-c6b16ef0bf6e62ede566ffe457281f38c2cda232.zip
Start of admin wiring. Removed unneeded things from print.
Diffstat (limited to 'print.php')
-rw-r--r--print.php16
1 files changed, 1 insertions, 15 deletions
diff --git a/print.php b/print.php
index e899222..5143e0f 100644
--- a/print.php
+++ b/print.php
@@ -4,11 +4,6 @@ define('BASE', './');
require_once(BASE.'functions/ical_parser.php');
require_once(BASE.'functions/list_functions.php');
require_once(BASE.'functions/template.php');
-$cal_displayname2 = $calendar_name . " $calendar_lang";
-if (strlen($cal_displayname2) > 24) {
- $cal_displayname2 = substr("$cal_displayname2", 0, 21);
- $cal_displayname2 = $cal_displayname2 . "...";
-}
$start_week_time = strtotime(dateOfWeek($getdate, $week_start_day));
$end_week_time = $start_week_time + (6 * 25 * 60 * 60);
@@ -16,15 +11,12 @@ $parse_month = date ("Ym", strtotime($getdate));
$printview = $HTTP_GET_VARS['printview'];
$cal_displayname = str_replace("32", " ", $cal);
$events_week = 0;
-$unix_time = strtotime("$getdate");
+$unix_time = strtotime($getdate);
if ($printview == 'day') {
$display_date = localizeDate ($dateFormat_day, strtotime($getdate));
$next = date("Ymd", strtotime("+1 day", $unix_time));
$prev = date("Ymd", strtotime("-1 day", $unix_time));
- $zero_events = $no_events_day_lang;
- $print_next_nav = $next_day_lang;
- $print_prev_nav = $last_day_lang;
$week_start = '';
$week_end = '';
} elseif ($printview == 'week') {
@@ -35,16 +27,10 @@ if ($printview == 'day') {
$week_end = date("Ymd", $end_week_time);
$next = date("Ymd", strtotime("+1 week", $unix_time));
$prev = date("Ymd", strtotime("-1 week", $unix_time));
- $zero_events = $no_events_week_lang;
- $print_next_nav = $next_week_lang;
- $print_prev_nav = $last_week_lang;
} elseif ($printview == 'month') {
$display_date = localizeDate ($dateFormat_month, strtotime($getdate));
$next = date("Ymd", strtotime("+1 month", $unix_time));
$prev = date("Ymd", strtotime("-1 month", $unix_time));
- $zero_events = $no_events_month_lang;
- $print_next_nav = $next_month_lang;
- $print_prev_nav = $last_month_lang;
$week_start = '';
$week_end = '';
}

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