aboutsummaryrefslogtreecommitdiffstats
path: root/week.php
diff options
context:
space:
mode:
authorWesley Miaw <josuah@users.sourceforge.net>2004-05-14 21:09:16 +0000
committerWesley Miaw <josuah@users.sourceforge.net>2004-05-14 21:09:16 +0000
commit911d0baa7862a6e1e0c9129ab4177ff9712a319c (patch)
tree4748165c6c77d70701406e28a30d4482f8cfcb30 /week.php
parent7abcabed195eafe55c9973644cffc72c38b74c9c (diff)
downloadphpicalendar-911d0baa7862a6e1e0c9129ab4177ff9712a319c.zip
phpicalendar-911d0baa7862a6e1e0c9129ab4177ff9712a319c.tar.gz
phpicalendar-911d0baa7862a6e1e0c9129ab4177ff9712a319c.tar.bz2
Implemented user login via cookies and/or sessions with templates.
Diffstat (limited to 'week.php')
-rw-r--r--week.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/week.php b/week.php
index 1bf410d..42a74ef 100644
--- a/week.php
+++ b/week.php
@@ -36,6 +36,12 @@ $list_weeks = list_weeks();
$list_jumps = list_jumps();
$list_calcolors = list_calcolors();
+// login/logout
+$is_logged_in = ($username != '' && !$invalid_login) ? true : false;
+$show_user_login = (!$is_logged_in && $allow_login);
+$login_querys = login_querys();
+$logout_querys = logout_querys();
+
$page = new Page(BASE.'templates/'.$template.'/week.tpl');
$page->replace_tags(array(
@@ -61,7 +67,12 @@ $page->replace_tags(array(
'prev_day' => $prev_day,
'prev_week' => $prev_week,
'show_goto' => '',
- 'is_logged_in' => '',
+ 'show_user_login' => $show_user_login,
+ 'invalid_login' => $invalid_login,
+ 'login_querys' => $login_querys,
+ 'is_logged_in' => $is_logged_in,
+ 'username' => $username,
+ 'logout_querys' => $logout_querys,
'list_icals' => $list_icals,
'list_years' => $list_years,
'list_months' => $list_months,

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