aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2006-04-10 02:21:07 +0000
committerJim Hu <jimhu@users.sourceforge.net>2006-04-10 02:21:07 +0000
commit3fee91025e67b32992575ca18e5845a382d56066 (patch)
treead71d3ffadacbae9e4ba71f05ffaa1ceaad5f876
parent240a104388ebd633820826a4a732050dd9621596 (diff)
downloadphpicalendar-3fee91025e67b32992575ca18e5845a382d56066.tar.gz
phpicalendar-3fee91025e67b32992575ca18e5845a382d56066.tar.bz2
phpicalendar-3fee91025e67b32992575ca18e5845a382d56066.zip
encode version number in init.inc.php
-rw-r--r--README4
-rw-r--r--day.php1
-rw-r--r--error.php1
-rw-r--r--functions/init.inc.php2
-rw-r--r--month.php1
-rw-r--r--preferences.php1
-rw-r--r--print.php2
-rw-r--r--rss/index.php1
-rw-r--r--search.php1
-rw-r--r--templates/default/footer.tpl2
-rw-r--r--week.php1
-rw-r--r--year.php1
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 @@
<?php
-
+$phpicalendar_version = '2.22';
// uncomment when developing, comment for shipping version
//error_reporting (E_ERROR | E_WARNING | E_PARSE);
error_reporting(0);
diff --git a/month.php b/month.php
index 1ea839f..8b6d5de 100644
--- a/month.php
+++ b/month.php
@@ -61,6 +61,7 @@ $page->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 @@
-<center class="V9"><br />{L_POWERED_BY} <a class="psf" href="http://phpicalendar.net/">PHP iCalendar 2.22rc3</a><br />
+<center class="V9"><br />{L_POWERED_BY} <a class="psf" href="http://phpicalendar.net/">PHP iCalendar {VERSION}</a><br />
<!-- switch rss_valid on -->
<p>
<a style="color:gray" href="http://feeds.archive.org/validator/check?url={FOOTER_CHECK}">
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,

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