Code Search for Developers
 
 
  

logout.html from AlphaMail at Krugle


Show logout.html syntax highlighted

% # vim: set syntax=mason: 
<%init>
my $user = Apache2::SiteControl->getCurrentUser($r);
if(!$user || !$user->isa('Apache2::SiteControl::User')) {
   $logger->error("Unable to find a user for the given session key.");
   $m->redirect("/");
}
my $success = 0;
my $c;
eval {
   $c = new AlphaMail::Middleware($user->getAttribute('imap'),
      $user->getUsername(), $user->getAttribute('password'), $config);
   $logger->info($user->getUsername() . " logged out.");
   $user->logout($r);
   $c->flush if($c); # Drop all cached entries
};
if($@) {
   $logger->error($user->getUsername() . ': Unable to process logout: user, $r, $m: ' . Dumper($user, $r, $m));
}
</%init>
<html>
   <head>
      <title>Logout complete</title>
      <link href="<% $base %>/static/default.css" rel="stylesheet" type="text/css" title="Default Stylesheet">
   </head>
   <body class="logout">
      <div class="title">Logout Complete</div>
      <div class="status">
         You were successfully logged out of the system. If you are using a
         public computer, you should exit the browser to insure your privacy.
         <br>
         <span class="important">IMPORTANT:</span> If you are using a
         Macintosh, closing the window is <em>not</em> enough. Choose Quit from
         the application menu instead.
      </div>
      <div class="navigation">
         <a href="<% $base %>/index.html">Return to login screen.</a>
      </div>
   </body>
</html>
<%once>
use Data::Dumper;
our $logger = Log::Log4perl->get_logger('alphamail');
our $base = $config->get('base_uri');
</%once>




See more files for this project here

AlphaMail

AlphaMail is an accelerated web mail interface with a C++ middleware layer that is more effective than an IMAP proxy which is a highly scalable (10k+ users). The interface includes modern features, Section 508 compliance, and universal browser support.

Project homepage: http://sourceforge.net/projects/alphamail
Programming language(s): C++,Java,JavaScript,Perl
License: other

  addressbook/
    edit.mhtml
    import.mhtml
    import_complete.html
    import_csv.html
    import_csv_save.html
    import_fname.html
    import_imho.html
    import_lname.html
    index.html
    lists.mhtml
    process_edit.html
    process_lists.html
    process_take.html
    take.html
  admin/
    autohandler
    guide.html
    index.html
    quotas.jpg
    show_stats.mhtml
    test.mhtml
  docs/
    faq/
      attach1.gif
      attach2.gif
      attach3.gif
      colors.gif
      dates1.gif
      drafts.gif
      filter.gif
      index.html
      notrash1.gif
      notrash2.gif
      notrash3.gif
      other.html
      sort.gif
      timeout.gif
    index.html
    new_features.html
  settings/
    add_filter.html
    altfolder_update.html
    altprefix_update.html
    edit_folders.html
    export.mhtml
    export_mail.html
    filters.mhtml
    folders.mhtml
    general.mhtml
    index.html
    share.mhtml
    sharing_agree.html
    signatures.mhtml
    update_folderlist.html
    update_general.html
    update_signatures.html
  viewers/
    excel.html
    html.html
    targz.html
    text.html
    word.html
    zip.html
  address_mail.html
  addresslist.html
  autohandler
  check_spelling.html
  compose.html
  feedback.html
  first_login.html
  fix_spelling.html
  folderlist.mhtml
  footer.mhtml
  get_attachment.html
  header.mhtml
  help.html
  index.html
  logout.html
  menu.mhtml
  other_folders.html
  process_compose.html
  process_first_login.html
  process_messages.html
  process_read_message.html
  process_search.html
  quota.html
  quota_graph.html
  raw.html
  read.html
  remove_attachment.html
  renew_session.html
  resume_compose.html
  sanitized.html
  share_options.html
  share_upload.html
  verify_password.html
  view_attachment.html