function init()
 {
     parent::init();
     // check if the user has access to this page
     if (!($user = ProtectedMiniSiteUser::CurrentSecureUser())) {
         return $this->redirect($this->FindTopParent()->Link('login'));
     }
 }
 function logout()
 {
     if ($user = ProtectedMiniSiteUser::CurrentSecureUser()) {
         $user->Logout();
     }
     return $this->redirect($this->Link());
 }