From c6b16ef0bf6e62ede566ffe457281f38c2cda232 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Mon, 24 May 2004 01:39:42 +0000 Subject: Start of admin wiring. Removed unneeded things from print. --- print.php | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'print.php') 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 = ''; } -- cgit v1.2.3