diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-10 03:17:56 +0000 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-10 03:17:56 +0000 |
| commit | 8858b957b05f9673ed29b6ad941cbeaefd29cd13 (patch) | |
| tree | 8f49449a575e065e1adac29270ebf3c4d0730dcf /core/controllers/album.php | |
| parent | 5e385398f00cd77ced7b91892c02c8c97db0848e (diff) | |
The start of the login functionality. It shows the login popup but doesn't do anything else. Just got tire of my changes being clobbered :-)
Diffstat (limited to 'core/controllers/album.php')
| -rw-r--r-- | core/controllers/album.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/controllers/album.php b/core/controllers/album.php index c94bcbef..47811fd2 100644 --- a/core/controllers/album.php +++ b/core/controllers/album.php @@ -35,6 +35,11 @@ class Album_Controller extends Item_Controller { $template->set_global('theme', $theme); $template->content = new View("album.html"); + $login_view = new View("login.html"); + $user = Session::instance()->get("user", null); + $login_view->logged_in = !empty($user); + $template->set_global("login", $login_view); + print $template->render(); } } |
