aboutsummaryrefslogtreecommitdiffstats
path: root/day.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 /day.php
parent7abcabed195eafe55c9973644cffc72c38b74c9c (diff)
downloadphpicalendar-911d0baa7862a6e1e0c9129ab4177ff9712a319c.tar.gz
phpicalendar-911d0baa7862a6e1e0c9129ab4177ff9712a319c.tar.bz2
phpicalendar-911d0baa7862a6e1e0c9129ab4177ff9712a319c.zip
Implemented user login via cookies and/or sessions with templates.
Diffstat (limited to 'day.php')
-rw-r--r--day.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/day.php b/day.php
index bfa8d4b..053e8e9 100644
--- a/day.php
+++ b/day.php
@@ -33,6 +33,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.'/day.tpl');
$page->replace_tags(array(
@@ -56,7 +62,12 @@ $page->replace_tags(array(
'next_day' => $next_day,
'prev_day' => $prev_day,
'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-2024 Faster IT GmbH | imprint | privacy policy