Code Search for Developers
 
 
  

index.html from AlphaMail at Krugle


Show index.html syntax highlighted

% # vim:set syntax=mason:
<%args>
$mx => ''
</%args>
<%once>
use AlphaMail::HTMLHelper qw(hyperlink);
use AlphaMail;
</%once>
<%init>
my $r = Apache->request;
my $logger = Log::Log4perl->get_logger('login');
my $uri;
my $reason = undef;
my $args;

if(!$mx) {
   $mx = $config->get('default_domain', '');
}

if($r->prev) {
   $uri = $r->prev->uri;
   $reason = $r->prev->subprocess_env("AuthCookieReason");
   $args = $r->prev->args;
}

if ($args) {
    $uri .= "?$args";
    $logger->debug("Previous URI with params: $uri");
}

my $imaps = $config->getIMAPServers;
my $base = $config->get('base_url');

$logger->debug("Reason was set to $reason") if($reason);
$logger->debug("Previous URI: $uri");
</%init>
<html>
   <head>
      <title><% $config->get('organization_name') %> Alpha Mail</title>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <meta http-equiv="pragma" content="no-cache">
      <link href="/static/d.css" rel="stylesheet" type="text/css" title="Default Stylesheet">
      <script type="text/javascript">
         <!--
         function getById(name)
         {
            var ele = 0;
            eval("ele = document.getElementById(name);");
            if(!ele)
               eval("ele = document.all[" + name + "];");

            return ele;
         }
         function check_form()
         {
            var login_field = getById("login");
            var password_field = getById("password");

            if(login_field && login_field.value == "") return false;
            if(password_field && password_field.value == "") return false;

            return true;
         }
         // -->
      </script>
   </head>
   <body class="login_screen" onLoad="document.forms[0].credential_0.focus();">
      <form name="login_form" method="post" action="<% $base %>/LOGIN"
            onsubmit="return check_form()">
         <input type="hidden" name="destination" 
                value="<% $base %>/mail/index.html">
         <table>
            <tr>
               <td> </td>
               <td>
                  <h1 class="login_title"><% $config->get('organization_name') %> Web Email</h1>
               </td>
            </tr>
            <tr>
               <td class="label">
                  Login:
               </td>
               <td>
                  <input type="text" id="login" name="credential_0" size="10" maxlength="10">
% my @servers = sort keys %$imaps;
% if(scalar(@servers) == 1) {
		  <input type="hidden" name="credential_2" value="<% $servers[0] |h %>">
% } else {
                  @<select name="credential_2">
%    for my $k (sort keys %$imaps) {
                     <option <% $mx eq $k ? "selected":"" %>><% $k |h %></option>
%    }
                  </select>
% }
               </td>
            </tr>
            <tr>
               <td class="label">
                  Password:
               </td>
               <td>
                  <input type="password" id="password" name="credential_1" size="10">
% if($reason =~ m/^bad_credential/i) {
                  <span class="error">Incorrect Login Information</span>
% }
               </td>
            </tr>
            <tr>
               <td class="label">
                  Interface:
               </td>
               <td>
                  <select name="credential_3">
                     <option value="std">Standard</option>
                     <option value="pda">Small Screen Mode</option>
                  </select>
               </td>
            </tr>
            <tr>
               <td>
               </td>
               <td>
                  <input type="submit" name="login" value="Login">
               </td>
            </tr>
               </td>
            </tr>
         </table>
         <input type="hidden" name="credential_4" value="0">
         <input type="hidden" name="credential_5" value="0">
         <input type="hidden" name="credential_6" value="0">
         <script language="JavaScript">
            <!--
            // Detect javascript support
            document.login_form.credential_4.value = 1;
            document.login_form.credential_5.value = navigator.userAgent;
            document.login_form.credential_6.value = navigator.appVersion;
            // -->
         </script>
      </form>
   <div class="smallprint">
      Running 
      <a target="_blank"
         href="http://www.uoregon.edu/~tkay/alphamail.html">
         AlphaMail Version <% $AlphaMail::VERSION %>
      </a>
   </div>
   </body>
</html>




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

  images/
  mail/
    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
    settings/
      altfolder_update.html
      edit_folders.html
      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.mhtml
    autohandler
    check_spelling.html
    compose.html
    error.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
    print.html
    process_compose.html
    process_first_login.html
    process_messages.html
    process_read_message.html
    quota.html
    quota_graph.html
    read.html
    remove_attachment.html
    renew_session.html
    sanitized.html
    share_options.html
    share_upload.html
    verify_password.html
    view_attachment.html
  static/
    rte/
      images/
        bgcolor.gif
        blackdot.gif
        bold.gif
        centre.gif
        copy.gif
        cut.gif
        email.gif
        hr.gif
        hyperlink.gif
        image.gif
        indent.gif
        insert_table.gif
        italic.gif
        justifyfull.gif
        left_just.gif
        list.gif
        numbered_list.gif
        outdent.gif
        paste.gif
        redo.gif
        right_just.gif
        smiley.gif
        spellcheck.gif
        textcolor.gif
        underline.gif
        undo.gif
      blank.htm
      html2xhtml.js
      insert_link.htm
      insert_table.htm
      multi.htm
      palette.htm
      richtext.js
      richtext_compressed.js
      rte.css
    amail_icon.jpg
    amail_large.jpg
    d.css
    wick.css
    wick.js
    wz_tooltip.js
  download.html
  filevault.html
  index.html