aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2004-08-11 23:49:12 +0000
committerChad Little <clittle@users.sourceforge.net>2004-08-11 23:49:12 +0000
commitca2d5ebf3e4f0adc61cb7a546b46241e2fa4fbe5 (patch)
treef1f98d1b7cccd50b0f5645af139f7688cfdc7029
parent1ff107c46e8e493f006c9ad8f2af7628d6581eeb (diff)
downloadphpicalendar-ca2d5ebf3e4f0adc61cb7a546b46241e2fa4fbe5.tar.gz
phpicalendar-ca2d5ebf3e4f0adc61cb7a546b46241e2fa4fbe5.tar.bz2
phpicalendar-ca2d5ebf3e4f0adc61cb7a546b46241e2fa4fbe5.zip
Added login langs to week and month, a fix for evolution.
-rw-r--r--functions/ical_parser.php2
-rw-r--r--month.php15
-rw-r--r--week.php10
3 files changed, 25 insertions, 2 deletions
diff --git a/functions/ical_parser.php b/functions/ical_parser.php
index 9dd8e8f..44080f5 100644
--- a/functions/ical_parser.php
+++ b/functions/ical_parser.php
@@ -906,7 +906,7 @@ foreach ($cal_filelist as $filename) {
// End VTODO Parsing
case 'DTSTART':
- $field = str_replace ('/softwarestudio.org/Olson_20011030_5/', '', $field);
+ $data = str_replace ('/softwarestudio.org/Olson_20011030_5/', '', $data);
$zulu_time = false;
if (substr($data,-1) == 'Z') $zulu_time = true;
$data = str_replace('T', '', $data);
diff --git a/month.php b/month.php
index 45b15ea..432db57 100644
--- a/month.php
+++ b/month.php
@@ -94,7 +94,20 @@ $page->replace_tags(array(
'l_this_site_is' => $lang['l_this_site_is']
));
-$page->monthbottom($this->page);
+if ($allow_login == 'yes') {
+ $page->replace_tags(array(
+ 'l_invalid_login' => $lang['l_invalid_login'],
+ 'l_password' => $lang['l_password'],
+ 'l_username' => $lang['l_username'],
+ 'l_login' => $lang['l_login'],
+ 'l_logout' => $lang['l_logout']
+ ));
+}
+
+
+if ($this_months_events == 'yes') {
+ $page->monthbottom($this->page);
+}
$page->draw_subscribe($this->page);
$page->output();
diff --git a/week.php b/week.php
index c9b3d38..29e1b22 100644
--- a/week.php
+++ b/week.php
@@ -97,6 +97,16 @@ $page->replace_tags(array(
'l_this_site_is' => $lang['l_this_site_is']
));
+if ($allow_login == 'yes') {
+ $page->replace_tags(array(
+ 'l_invalid_login' => $lang['l_invalid_login'],
+ 'l_password' => $lang['l_password'],
+ 'l_username' => $lang['l_username'],
+ 'l_login' => $lang['l_login'],
+ 'l_logout' => $lang['l_logout']
+ ));
+}
+
$page->draw_week($this->page);
$page->tomorrows_events($this->page);
$page->get_vtodo($this->page);

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