-
Notifications
You must be signed in to change notification settings - Fork 0
/
mail.php
92 lines (74 loc) · 2.38 KB
/
mail.php
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
<?php
require "init.php";
function mb_str_replace($needle, $replacement, $haystack) {
return implode($replacement, mb_split($needle, $haystack));
}
?><!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">
<head>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
<title>_-*´´*-_-*´ Steath Ops - Makes Ppl Talk ´*-_-*´´*-_ </title>
<style type="text/css">
@import url('mail.css');
</style>
<script type="text/javascript">
var hej = 'hej hej //Rad'
<?php
$sql = "SELECT * FROM mail ORDER BY `date` DESC";
$res = mysql_query($sql) or die(mysql_error());
?>
var mails =
[
<?php
while($row = mysql_fetch_assoc($res)) {
$message = addslashes($row['message']);
$message = mb_str_replace("\n", '<br />', $message);
$message = mb_str_replace("\r", '<br />', $message);
?>
["<?=$row['subject']?>", "<?=$row['from']?>", "<?=$row['to']?>", "<?= date('m/d/Y H:i:s', strtotime($row['date']))?>", '<?= $message ?>', <?=$row['read'] == '1' ? 'true' : 'false' ?>],
<?php } ?>
[]
];
mails.pop();
</script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.ease.js"></script>
<script type="text/javascript" src="js/tools.js"></script>
<script type="text/javascript" src="js/mail.js"></script>
</head>
<body>
<div class="wrap">
<div class="top">
<div class="menu">
<a href="#" class="compose">Compose</a>
<a href="#" class="reply">Reply</a>
<a href="#" class="forward spacer">Forward</a>
<a href="#" class="archive">Archive</a>
<a href="#" class="spam">Spam</a>
<a href="#" class="delete spacer">Delete</a>
<a href="#" class="print">Print</a>
<a href="#" class="search spacer">Search</a>
<a href="#" class="logout">Logout</a>
</div>
</div>
<div class="mid">
<table class="mails" cellspacing="0" cellpadding="0" border="0">
<thead>
<tr class="topbar">
<th class="padding"></th>
<th>Subject</th>
<th>From</th>
<th>To</th>
<th>Sent</th>
<th class="padding"></th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
<div class="bot"></div>
</div>
<div class="preload"></div>
</body>
</html>