From 02bed7d91ae13c34eb9b883b0df3b538e3bc4c76 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Tue, 3 Feb 2004 23:02:09 +0000 Subject: Removed unneeded files, tweeked templates, added legend for multiple calendars. --- includes/calendar_nav.php | 234 --------------------------- includes/footer.inc.php | 17 -- includes/header.inc.php | 33 ---- includes/sidebar.php | 391 ---------------------------------------------- 4 files changed, 675 deletions(-) delete mode 100644 includes/calendar_nav.php delete mode 100644 includes/footer.inc.php delete mode 100644 includes/header.inc.php delete mode 100644 includes/sidebar.php (limited to 'includes') diff --git a/includes/calendar_nav.php b/includes/calendar_nav.php deleted file mode 100644 index f4e7285..0000000 --- a/includes/calendar_nav.php +++ /dev/null @@ -1,234 +0,0 @@ - 24) { - $cal_displayname2 = substr("$cal_displayname2", 0, 21); - $cal_displayname2 = $cal_displayname2 . "..."; - } - - $next_day = date("Ymd", strtotime("+1 day", $unix_time)); - $prev_day = date("Ymd", strtotime("-1 day", $unix_time)); - - // Get the real date to display as "go to today", not the date displayed in the calendar - $really_unix_time = strtotime(date('Ymd')); - $really_today_today = date ('Ymd', $really_unix_time); - - $fake_getdate_time = strtotime($this_year.'-'.$this_month.'-15'); - ?> -
- - - - - - - - - - - - - - - -
\"[$last_day_lang]\""; ?>\"[$next_day_lang]\""; ?>
- - - - -
- - - - - - - -
- - '; - for ($i=0; $i<7; $i++) { - $day_num = date("w", $start_day); - $day = $daysofweekreallyshort_lang[$day_num]; - echo ''; - $start_day = strtotime("+1 day", $start_day); - } - echo ''; - $minical_time = strtotime("-1 month", $fake_getdate_time); - $minical_month = date("m", $minical_time); - $minical_year = date("Y", $minical_time); - $first_of_month = $minical_year.$minical_month."01"; - $start_day = strtotime(dateOfWeek($first_of_month, $week_start_day)); - $i = 0; - $whole_month = TRUE; - $num_of_events = 0; - do { - $day = date ("j", $start_day); - $daylink = date ("Ymd", $start_day); - $check_month = date ("m", $start_day); - if ($check_month != $minical_month) $day = ''.$day.''; - if ($i == 0) echo "\n"; - if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) { - echo ''; - } else { - echo ''; - } - $start_day = strtotime("+1 day", $start_day); - $i++; - if ($i == 7) { - echo ''; - $i = 0; - $checkagain = date ("m", $start_day); - if ($checkagain != $minical_month) $whole_month = FALSE; - } - } while ($whole_month == TRUE); - ?> -
'.$day.'
'; - echo ''.$day.''; - echo ''; - echo ''.$day.''; - echo '
-
-
-
-
- - - - - - -
- - - - -
- '.$jump_lang.'
'; - echo '
'; - echo "
"; - include('./functions/list_icals.php'); - echo '
'; - include('./functions/list_years.php'); - echo '
'; - include('./functions/list_months.php'); - echo '
'; - include('./functions/list_weeks.php'); - echo '
'; - echo "
"; - echo '
'; - - ?> -
-
 - - - - -
- - - - - - - - - - - - -
 - $goday_lang
\n"; - echo "$goweek_lang
\n"; - echo "$gomonth_lang
\n"; - echo "$goyear_lang
\n"; - echo "$goprint_lang
\n"; - if ($allow_preferences != 'no') echo "$preferences_lang
\n"; - if ($cal != $ALL_CALENDARS_COMBINED && $subscribe_path != '' && $download_filename != '') echo "$subscribe_lang | $download_lang\n"; - if ($username != '') { - $querys = preg_replace("/action=[^&]+/", "action=logout", $QUERY_STRING); - if ($querys == $QUERY_STRING) $querys .= "&action=logout"; - $querys = preg_replace("/(username|password)=[^&]+/", "", $querys); - echo "Logout $username
\n"; - } - ?> -
-
-
-
- - - - -
- - - - - - - -
- - '; - for ($i=0; $i<7; $i++) { - $day_num = date("w", $start_day); - $day = $daysofweekreallyshort_lang[$day_num]; - echo ''; - $start_day = strtotime("+1 day", $start_day); - } - echo ''; - $minical_time = strtotime("+1 month", $fake_getdate_time); - $minical_month = date("m", $minical_time); - $minical_year = date("Y", $minical_time); - $first_of_month = $minical_year.$minical_month."01"; - $start_day = strtotime(dateOfWeek($first_of_month, $week_start_day)); - $i = 0; - $whole_month = TRUE; - $num_of_events = 0; - do { - $day = date ("j", $start_day); - $daylink = date ("Ymd", $start_day); - $check_month = date ("m", $start_day); - if ($check_month != $minical_month) $day = ''.$day.''; - if ($i == 0) echo "\n"; - if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) { - echo ''; - } else { - echo ''; - } - $start_day = strtotime("+1 day", $start_day); - $i++; - if ($i == 7) { - echo ''; - $i = 0; - $checkagain = date ("m", $start_day); - if ($checkagain != $minical_month) $whole_month = FALSE; - } - } while ($whole_month == TRUE); - ?> -
'.$day.'
'; - echo ''.$day.''; - echo ''; - echo ''.$day.''; - echo '
-
-
-
-
diff --git a/includes/footer.inc.php b/includes/footer.inc.php deleted file mode 100644 index 63c0ee4..0000000 --- a/includes/footer.inc.php +++ /dev/null @@ -1,17 +0,0 @@ -
$powered_by_lang PHP iCalendar 1.2"; -if ($enable_rss == 'yes') { - echo "
\n"; - if ((isset($current_view)) && ($current_view == 'rssindex')) { - echo '[Valid RSS]'; - } else { - echo $this_site_is_lang.' RSS-Enabled'; - } -} -echo ''; - -?> - - - diff --git a/includes/header.inc.php b/includes/header.inc.php deleted file mode 100644 index 0eb1538..0000000 --- a/includes/header.inc.php +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - <?php echo $calendar_name; ?><?php if ($display_date != '') echo " - $display_date"; ?> - "> - "; - } - if (isset($master_array['-2'])) include (BASE.'functions/todo.js'); - include (BASE.'functions/event.js'); - - ?> - - - diff --git a/includes/sidebar.php b/includes/sidebar.php deleted file mode 100644 index 72bf3eb..0000000 --- a/includes/sidebar.php +++ /dev/null @@ -1,391 +0,0 @@ - 24) { - $cal_displayname2 = substr("$cal_displayname2", 0, 21); - $cal_displayname2 = $cal_displayname2 . "..."; -} - -$search_box = '
'; - -?> - - - - - - - - - - -
\"[$prev_lang]\""; ?>\"[$next_lang]\""; ?>
- '; - echo ''.$cal_displayname2.'
'; - echo ''; - echo "$goday_lang
\n"; - echo "$goweek_lang
\n"; - echo "$gomonth_lang
\n"; - echo "$goyear_lang
\n"; - echo "$goprint_lang
\n"; - if ($allow_preferences != 'no') echo "$preferences_lang
\n"; - if ($cal != $ALL_CALENDARS_COMBINED && $subscribe_path != '' && $download_filename != '') echo "$subscribe_lang | $download_lang\n"; - if ($username != '') { - $querys = preg_replace("/action=[^&]+/", "action=logout", $QUERY_STRING); - if ($querys == $QUERY_STRING) $querys .= '&action=logout'; - $querys = preg_replace("/(username|password)=[^&]+/", "", $querys); - echo "
\nLogout $username\n"; - } - echo '
'; - ?> -
-
- - - - - - - -
- '; - echo '
'; - include('./functions/list_icals.php'); - echo '
'; - include('./functions/list_years.php'); - echo '
'; - include('./functions/list_months.php'); - echo '
'; - include('./functions/list_weeks.php'); - echo '
'; - echo '
'; - if ($show_search == 'yes') { - echo $search_box; - } - if ($display_custom_goto == "yes") { - echo '
'; - echo ''; - echo ''; - echo ''; - echo '
'; - } - echo ''; - ?> -
-
- - 0) { ?> - - - - - - - - - - -
- - - - - - \n"; - echo ""; - echo "\n"; - echo "\n"; - ?> -
\"\n"; - foreach ($master_array[("$tomorrows_date")] as $event_times) { - foreach ($event_times as $val) { - $event_text = stripslashes(urldecode($val["event_text"])); - $event_text = strip_tags($event_text, ''); - if ($event_text != "") { - $event_text2 = rawurlencode(addslashes($val['event_text'])); - $description = addslashes(urlencode($val['description'])); - $event_end = @$val["event_end"]; - $event_calna = @$val["calname"]; - $event_url = @$val["url"]; - $event_start = date ($timeFormat, $val['start_unixtime']); - $event_end = date ($timeFormat, @strtotime ($event_end)); - $event_text = word_wrap($event_text, 21, $tomorrows_events_lines); - - if (!isset($val["event_start"])) { - $event_start = $all_day_lang; - $event_end = ''; - openevent($event_calna, $event_start, $event_end, $val, $tomorrows_events_lines, 21, '', '', 'psf', $event_url); - echo "
\n"; - } else { - openevent($event_calna, $event_start, $event_end, $val, $tomorrows_events_lines, 21, '• ', '', 'psf', $event_url); - echo "
\n"; - } - - - - } - } - } - echo "
-
-
- - - - - - - - - - - - -
- - - - - - \n"; - echo ""; - echo "\n"; - echo "\n"; - ?> -
\"\n"; - echo "\n"; - foreach ($master_array['-2'] as $vtodo_times) { - foreach ($vtodo_times as $val) { - $vtodo_text = stripslashes(urldecode($val["vtodo_text"])); - if ($vtodo_text != "") { - if (isset($val["description"])) { - $description = urldecode($val["description"]); - } else { - $description = ""; - } - $completed_date = $val['completed_date']; - $event_calna = $val['calname']; - $status = $val["status"]; - $priority = $val['priority']; - $start_date = $val["start_date"]; - $due_date = $val['due_date']; - $vtodo_array = array( - 'cal' => $event_calna, - 'completed_date'=> $completed_date, - 'description' => $description, - 'due_date' => $due_date, - 'priority' => $priority, - 'start_date' => $start_date, - 'status' => $status, - 'vtodo_text' => $vtodo_text); - - $vtodo_array = base64_encode(serialize($vtodo_array)); - - $vtodo_text = word_wrap(strip_tags(str_replace('
',' ',$vtodo_text), ''), 21, $tomorrows_events_lines); - $vtodo_link = ""; - - if ($status == 'COMPLETED' || (isset($val['completed_date']) && isset($val['completed_time']))) { - if ($show_completed == 'yes') { - $vtodo_text = "$vtodo_text"; - echo "\n"; - echo "\n"; - } - } elseif (isset($val['priority']) && ($val['priority'] != 0) && ($val['priority'] <= 5)) { - echo "\n"; - echo "\n"; - } else { - echo "\n"; - echo "\n"; - } - } - } - } - echo "
$vtodo_link\"$vtodo_link $vtodo_text
$vtodo_link\"$vtodo_link $vtodo_text
$vtodo_link\"$vtodo_link $vtodo_text
\n"; - echo "
-
-
- - - - - - - - -
- - '; - for ($i=0; $i<7; $i++) { - $day_num = date("w", $start_day); - $day = $daysofweekreallyshort_lang[$day_num]; - echo ''; - $start_day = strtotime("+1 day", $start_day); - } - echo ''; - $minical_time = strtotime("-1 month", $fake_getdate_time); - $minical_month = date("m", $minical_time); - $minical_year = date("Y", $minical_time); - $first_of_month = $minical_year.$minical_month."01"; - $start_day = strtotime(dateOfWeek($first_of_month, $week_start_day)); - $i = 0; - $whole_month = TRUE; - $num_of_events = 0; - do { - $day = date ("j", $start_day); - $daylink = date ("Ymd", $start_day); - $check_month = date ("m", $start_day); - if ($check_month != $minical_month) $day = ''.$day.''; - if ($i == 0) echo "\n"; - if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) { - echo ''; - } else { - echo ''; - } - $start_day = strtotime("+1 day", $start_day); - $i++; - if ($i == 7) { - echo ''; - $i = 0; - $checkagain = date ("m", $start_day); - if ($checkagain != $minical_month) $whole_month = FALSE; - } - } while ($whole_month == TRUE); - ?> -
'.$day.'
'; - echo ''.$day.''; - echo ''; - echo ''.$day.''; - echo '
-
-
-
- - - - - - - -
- - '; - for ($i=0; $i<7; $i++) { - $day_num = date("w", $start_day); - $day = $daysofweekreallyshort_lang[$day_num]; - echo ''; - $start_day = strtotime("+1 day", $start_day); - } - echo ''; - $minical_time = $fake_getdate_time; - $minical_month = date("m", $minical_time); - $minical_year = date("Y", $minical_time); - $first_of_month = $minical_year.$minical_month."01"; - $start_day = strtotime(dateOfWeek($first_of_month, $week_start_day)); - $i = 0; - $whole_month = TRUE; - $num_of_events = 0; - do { - $day = date ("j", $start_day); - $daylink = date ("Ymd", $start_day); - $check_month = date ("m", $start_day); - if ($check_month != $minical_month) $day = ''.$day.''; - if ($i == 0) echo "\n"; - if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) { - echo ''; - } else { - echo ''; - } - $start_day = strtotime("+1 day", $start_day); - $i++; - if ($i == 7) { - echo ''; - $i = 0; - $checkagain = date ("m", $start_day); - if ($checkagain != $minical_month) $whole_month = FALSE; - } - } while ($whole_month == TRUE); - ?> -
'.$day.'
'; - echo ''.$day.''; - echo ''; - echo ''.$day.''; - echo '
-
-
-
- - - - - - - -
- - '; - for ($i=0; $i<7; $i++) { - $day_num = date("w", $start_day); - $day = $daysofweekreallyshort_lang[$day_num]; - echo ''; - $start_day = strtotime("+1 day", $start_day); - } - echo ''; - $minical_time = strtotime("+1 month", $fake_getdate_time); - $minical_month = date("m", $minical_time); - $minical_year = date("Y", $minical_time); - $first_of_month = $minical_year.$minical_month."01"; - $start_day = strtotime(dateOfWeek($first_of_month, $week_start_day)); - $i = 0; - $whole_month = TRUE; - $num_of_events = 0; - do { - $day = date ("j", $start_day); - $daylink = date ("Ymd", $start_day); - $check_month = date ("m", $start_day); - if ($check_month != $minical_month) $day = ''.$day.''; - if ($i == 0) echo "\n"; - if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) { - echo ''; - } else { - echo ''; - } - $start_day = strtotime("+1 day", $start_day); - $i++; - if ($i == 7) { - echo ''; - $i = 0; - $checkagain = date ("m", $start_day); - if ($checkagain != $minical_month) $whole_month = FALSE; - } - } while ($whole_month == TRUE); - ?> -
'.$day.'
'; - echo ''.$day.''; - echo ''; - echo ''.$day.''; - echo '
-
-
-- cgit v1.2.3