From 3fee91025e67b32992575ca18e5845a382d56066 Mon Sep 17 00:00:00 2001 From: Jim Hu Date: Mon, 10 Apr 2006 02:21:07 +0000 Subject: encode version number in init.inc.php --- README | 4 +++- day.php | 1 + error.php | 1 + functions/init.inc.php | 2 +- month.php | 1 + preferences.php | 1 + print.php | 2 +- rss/index.php | 1 + search.php | 1 + templates/default/footer.tpl | 2 +- week.php | 1 + year.php | 1 + 12 files changed, 14 insertions(+), 4 deletions(-) diff --git a/README b/README index 6fe4924..b6deb32 100644 --- a/README +++ b/README @@ -82,7 +82,9 @@ COPYING for more information about our license. Changes: -------- cvs -2.22rc3 +2.22 + template.php will look in templates/default if a file is missing from templates/$template + add support for WKST and BYPOS tags change popup to not require reparsing cal files differentiate cookie names for different installs on the same host allow image tags in events diff --git a/day.php b/day.php index 7df5d05..a6079b0 100644 --- a/day.php +++ b/day.php @@ -53,6 +53,7 @@ $page->replace_files(array( )); $page->replace_tags(array( + 'version' => $phpicalendar_version, 'charset' => $charset, 'default_path' => '', 'template' => $template, diff --git a/error.php b/error.php index bdda046..dbf7026 100644 --- a/error.php +++ b/error.php @@ -35,6 +35,7 @@ function error($error_msg='There was an error processing the request.', $file='N )); $page->replace_tags(array( + 'version' => $phpicalendar_version, 'default_path' => $default_path.'/', 'template' => $template, 'cal' => $cal, diff --git a/functions/init.inc.php b/functions/init.inc.php index cebeda5..a1641f6 100644 --- a/functions/init.inc.php +++ b/functions/init.inc.php @@ -1,5 +1,5 @@ replace_files(array( )); $page->replace_tags(array( + 'version' => $phpicalendar_version, 'charset' => $charset, 'template' => $template, 'cal' => $cal, diff --git a/preferences.php b/preferences.php index 1bc5bd3..edd67e7 100644 --- a/preferences.php +++ b/preferences.php @@ -154,6 +154,7 @@ $page->replace_files(array( )); $page->replace_tags(array( + 'version' => $phpicalendar_version, 'charset' => $charset, 'template' => $template, 'default_path' => '', diff --git a/print.php b/print.php index cf09828..27230e6 100644 --- a/print.php +++ b/print.php @@ -7,7 +7,6 @@ $current_view ='print'; $start_week_time = strtotime(dateOfWeek($getdate, $week_start_day)); $end_week_time = $start_week_time + (6 * 25 * 60 * 60); $parse_month = date ("Ym", strtotime($getdate)); -$cal_displayname = str_replace("32", " ", $cal); $events_week = 0; $unix_time = strtotime($getdate); $printview = 'month'; @@ -55,6 +54,7 @@ $page->replace_files(array( )); $page->replace_tags(array( + 'version' => $phpicalendar_version, 'event_js' => '', 'charset' => $charset, 'default_path' => '', diff --git a/rss/index.php b/rss/index.php index 8d733ca..be435b1 100644 --- a/rss/index.php +++ b/rss/index.php @@ -74,6 +74,7 @@ $page->replace_files(array( )); $page->replace_tags(array( + 'version' => $phpicalendar_version, 'default_path' => $default_path.'/', 'template' => $template, 'cal' => $cal, diff --git a/search.php b/search.php index 0c3a2b7..37b5d93 100644 --- a/search.php +++ b/search.php @@ -291,6 +291,7 @@ $page->replace_files(array( $page->replace_tags(array( + 'version' => $phpicalendar_version, 'formatted_search' => $formatted_search, 'l_results' => $lang['l_results'], 'l_query' => $lang['l_query'], diff --git a/templates/default/footer.tpl b/templates/default/footer.tpl index 0ed0958..7d2ccab 100644 --- a/templates/default/footer.tpl +++ b/templates/default/footer.tpl @@ -1,4 +1,4 @@ -

{L_POWERED_BY} PHP iCalendar 2.22rc3
+

{L_POWERED_BY} PHP iCalendar {VERSION}

diff --git a/week.php b/week.php index 878161b..1709d9d 100644 --- a/week.php +++ b/week.php @@ -55,6 +55,7 @@ $page->replace_files(array( )); $page->replace_tags(array( + 'version' => $phpicalendar_version, 'charset' => $charset, 'default_path' => '', 'template' => $template, diff --git a/year.php b/year.php index 83a7756..a30ac89 100644 --- a/year.php +++ b/year.php @@ -53,6 +53,7 @@ $page->replace_files(array( )); $page->replace_tags(array( + 'version' => $phpicalendar_version, 'event_js' => '', 'current_view' => $current_view, 'template' => $template, -- cgit v1.2.3