From ca2d5ebf3e4f0adc61cb7a546b46241e2fa4fbe5 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Wed, 11 Aug 2004 23:49:12 +0000 Subject: Added login langs to week and month, a fix for evolution. --- functions/ical_parser.php | 2 +- month.php | 15 ++++++++++++++- week.php | 10 ++++++++++ 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); -- cgit v1.2.3