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/photo.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/photo.php')
| -rw-r--r-- | core/controllers/photo.php | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/core/controllers/photo.php b/core/controllers/photo.php index 55ab6247..87d76e5e 100644 --- a/core/controllers/photo.php +++ b/core/controllers/photo.php @@ -30,6 +30,11 @@ class Photo_Controller extends Item_Controller {      $template->set_global('theme', $theme);      $template->content = new View("photo.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();    }  } | 
