File: login.t

package info (click to toggle)
prayer 1.3.5-dfsg1-6
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 6,576 kB
  • sloc: ansic: 43,161; makefile: 817; sh: 445; perl: 166
file content (107 lines) | stat: -rw-r--r-- 3,083 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
%# $Cambridge: hermes/src/prayer/templates/cam/login.t,v 1.4 2009/01/13 15:30:26 dpc22 Exp $
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="/static/layout.css" type="text/css" media="all" />
<link rel="stylesheet" href="/static/rssfeed.css" type="text/css" media="all" />
<link rel="icon" type="image/png"  href="/icons/msg-seen.png" />

<!-- change title and metadata for each page here -->
% IFDEF $g_service_name
<title><% $g_service_name |h %> Webmail Service</title>
% ELSE
<title>Prayer Webmail Service</title>
% ENDIF
<meta name="description" content="" />
<meta name="keywords" content="" />
<style type="text/css" title="text/css" media="all">
img.logo {padding:1em 1em 0 1em;}
label {font-weight: bold;}

form.lookup div div {border-top:none;}

table#login {padding:0; margin:0;}
table#login td {vertical-align: top; padding:0.15em 1.5em 0 0;
font-weight:bold; margin: 0.5em 0;}
table#login td label {font-size:0.9em;}
table#login td input {margin:0 0 0.5em 0;}
</style>
<script type="text/javascript">
 <!--
 var used = false; 
 function init(){
   if (self != top) top.location = self.location;
   if (!used) document.getElementById('credentials').username.focus();  }
 // -->
</script>
</head>
<body class="home" onload="init()">
<div id="skip"> <a
href="#skip-content" accesskey="2">Skip to content</a> </div>
<div id="header">
<div id="branding">
</div>
</div>
%
<div id="dept-title">
% IFDEF $login_banner
<h1><% $login_banner |h %></h1>
% ELSE
%   IFDEF $service_name
<h1><% $service_name |h %> Webmail Service</h1>
%   ELSE
<h1>Prayer Webmail Service</h1>
%   ENDIF
% ENDIF
</div>
%
<div id="container"> <a name="skip-content" id="skip-content"></a>
<div id="content">
  <div id="content-primary">
% IFDEF $ssl_available
<table>
<tr>
<td><strong>Warning:</strong></td><td>This is an insecure HTTP session.</td></tr>
<tr>
<td>&nbsp;</td>
<td>It is strongly recommended that you use SSL encryption if your browser supports it.
</td></tr>
<tr>
<td>&nbsp;</td>
<td><strong>
<a href="https://<% "${hostname}:${ssl_port}" |h %>">Click Here</a>
 for an SSL enabled login session.
</strong></td></tr>
</table>
% ENDIF
<form method="post" accept-charset="UTF-8" enctype="multipart/form-data"
      action="<% ${url_prefix} |n %>" class="lookup" id="credentials">
<fieldset>
<div>
<table id="login"><tr>
<td><label for="username">Username</label>
</td>
<td class="second">
<input id="username" name="username" value="<% $user |h %>" size="16"
       onfocus="used=true;" />
</td>
</tr><tr>
<td><label for="password">Password</label></td>
<td class="second">
<input type="password" id="password" name="password" size="16"
       onfocus="used=true;" />
 &nbsp;&nbsp;
<input type="submit" name="login" value="Login" /></td>
</tr></table>
</div>
</fieldset>
</form>
% IFDEF $motd
<% ${motd} |n %>
% ENDIF
</div>
</div>
</div>
</body></html>