-
Notifications
You must be signed in to change notification settings - Fork 0
/
inbox.jsp
128 lines (116 loc) · 4.83 KB
/
inbox.jsp
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<%@ page import="Appn.*;" %>
<%! Appn.MsgForm[] mf; %>
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<link href="default.css" rel="stylesheet" type="text/css" />
<title>username
signout</title>
<script type="text/javascript">
onload = function() {
if (!document.getElementsByTagName || !document.createTextNode) return;
var rows = document.getElementById('table1').getElementsByTagName('tbody')[0].getElementsByTagName('tr');
for (i = 1; i < rows.length; i++) {
rows[i].onclick = function() {
var v=""+this.rowIndex;
document.forms[0].index.value=v;
document.forms[0].action="Msg";
document.forms[0].submit();
}
}
}
</script>
</head>
<body>
<div id="header">
<div id="logo">
<h1><a href="#">Pshark</a></h1>
<p></p>
</div>
</div>
<form method="get">
<!--<div style="position: absolute; width: 45px; height: 48px; z-index: 2; left:710px; top:181px" id="layer2">
<div style="position: absolute; width: 834px; height: 100px; z-index: 1; left: -731px; top: -184px" id="layer3">
<div style="position: absolute; width: 172px; height: 28px; z-index: 1; left: 329px; top: 49px" id="layer7">
<b><font size="7" color="#FFFFFF" face="Chiller">Global Mail</font></b></div>
<img src="image/in.jpg"></div>
</div>-->
<p><font color="#970000">
</font>
<font color="#970000"></font></a></font></p>
<div style="position: absolute; width: 669px; height: 129px; z-index: 1; left:1px; top:159px" id="layer1">
<blockquote>
<blockquote>
<blockquote>
<h1><b><font size="7" color="#99FF66" face="Chiller">Inbox</font></b><font color="#000080" face="French Script MT"><b>
<font face="Chiller" color="#800000" size="6">
<input type=hidden name="index" size="20"></font></b></font>
</h1>
</blockquote>
<div style="position: absolute; width: 317px; height: 59px; z-index: 1; left: 699px; top: 8px" id="layer5">
<div style="position: absolute; width: 55px; height: 24px; z-index: 1; left: 129px; top: 36px" id="layer6">[<b><font size="2" color="#ff0000">
<a href="logout.jsp">Logout</a> </font></b>]</div><center>
<font size="4" face="Bell MT" color="#000080"><%=session.getAttribute("user")%></font></center>
</div>
</blockquote>
</blockquote>
<p>
</p>
<!--<table width="663">
<tr><td>-->
<table width="778" border=0 align="center">
<tr><td width="772" background="image/b11.jpg" height="50">
<blockquote>
<center>
<blockquote>
<blockquote>
<pre><font face="Baskerville Old Face"><b><a href="inbox.jsp" ><font size="4" color="#800080">Inbox</font></a></b></font><font size="5"><font color="#800080"> </font></font><b></b><font color="#800080" size="5"> </font><b><a href="compose.jsp"><font size="4" color="#800080" face="Baskerville Old Face">Compose Mail</font></a><font size="4" color="#800080" face="Baskerville Old Face"> </font></b></pre>
</blockquote>
</blockquote>
</center>
<!--<td>-->
</blockquote>
</tr>
<tr>
<td height="136">
<blockquote>
<p> </p>
<table border="1" width="85%" id="table1" cellspacing="1">
<tr>
<th width="27"><font color="#AA6600" size="4">
<input type="checkbox" name="C1" value="ON" style="font-weight: 700"></font></th>
<th width="246"><b><font size="4" color="#008000">Sender</font></b></th><th><b><font size="4" color="#008000">Subject</font></b></th><th><b><font size="4" color="#008000">Date</font></b></th></tr><%Appn.Mail m=new Appn.Mail(); %>
<% mf=m.receive((String)application.getInitParameter("mailserver"),(String)session.getAttribute("user"),(String)session.getAttribute("pwd")); %>
<% session.setAttribute("allmsg",mf) ; %>
<% for(int i=0;i<mf.length;i++){ %>
<% String fr=mf[i].from; %>
<%boolean ok=true; %>
<%if(!(mf[i].sp).equals("")){ %>
<%fr=mf[i].sp; %>
<% ok=false; %>
<%} %>
<% if(ok){%>
<% fr=fr.replace("@"+(String)application.getInitParameter("mailserver"),"@pshark.com"); %>
<%} %>
<%String status[]={"Phising Mail","Possible of Phising","Not Phising"}; %>
<%int s=0; %>
<% String domain=fr.substring(fr.lastIndexOf("@")+1,fr.lastIndexOf(".")); %>
<%Appn.Analyzer ob=new Appn.Analyzer();%>
<%s=ob.analyze(mf[i].msg,(String)application.getInitParameter("server"),domain)+1;%>
<%mf[i].msg=ob.changeLink(mf[i].msg,(String)application.getInitParameter("server"),domain);%>
<tr>
<td width="27">
<p align="center"><font color="#D27E00" size="3">
<input type="checkbox" name="C1" value="ON" style="font-weight: 700"></font></td>
<td width="246"><b><font color="#D27E00"><%=fr%></font></b></td><td><b><font color="#D27E00"><%=mf[i].subject %></font></b></td>
<td width="169"><b><font color="#D27E00"><%=mf[i].date %></font></b></td></tr><% } %>
</table>
</blockquote>
<!--</tr>
</table>-->
</tr>
</table>
</form>
</body>
</html>