Source for file logout.php

Documentation is available at logout.php

  1. <?php
  2. /**
  3. * Thank the user for using the system.
  4. *
  5. @author    Stuart Prescott
  6. @copyright  Copyright Stuart Prescott
  7. @license    http://opensource.org/licenses/gpl-license.php GNU Public License
  8. @version    $Id$
  9. @package    Bumblebee
  10. @subpackage Actions
  11. *
  12. *  path (bumblebee root)/inc/actions/logout.php
  13. */
  14.  
  15. /** Load ancillary functions */
  16. require_once 'inc/typeinfo.php';
  17.  
  18. /** parent object */
  19. require_once 'inc/actions/actionaction.php';
  20.  
  21. /**
  22. * Thank the user for using the system.
  23. *
  24. * Destruction of login credentials is undertaken by the class BumblebeeAuth
  25. @package    Bumblebee
  26. @subpackage Actions
  27. */
  28. class ActionLogout extends ActionAction {
  29.  
  30.   /**
  31.   * Initialising the class
  32.   *
  33.   * @param  BumblebeeAuth $auth  Authorisation object
  34.   * @param  array $pdata   extra state data from the call path
  35.   * @return void nothing
  36.   */
  37.   function ActionLogout($auth$pdata{
  38.     parent::ActionAction($auth$pdata);
  39.     $this->auth->logout();
  40.   }
  41.  
  42.   function go({
  43.     $url makeURL('');
  44.     echo '<h2>'.T_('Successfully logged out').'</h2>'
  45.         .'<p>'.T_('Thank you for using Bumblebee!').'</p>'
  46.         ."<p>(<a href='$url'>T_('login''</a>)</p>';
  47.     echo "<script type='text/javascript'>self.setTimeout('window.document.location.href=\"$url\"', 2000);</script>";
  48.   }
  49. }
  50.  
  51. ?>

Documentation generated on Tue, 06 Mar 2007 10:01:44 +0000 by phpDocumentor 1.3.0