-
Notifications
You must be signed in to change notification settings - Fork 0
/
message.php
66 lines (54 loc) · 2.71 KB
/
message.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
<?php
require("header.php");
require("moderate.php");
// = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
// TextfileBB
// Website: http://tfbb.jcink.com
//
// Modify freely, as long as you're not turning the forum
// into a board service of any form. Please ask for permission
// first to redistribute any of the TextfileBB code.
//
// Thanks.
//
// ----------------------------------------------------------------------------------------
// Module: message.php - Last update: Nov 19, 2005
// ----------------------------------------------------------------------------------------
//
// Sanitised and Dereglobed OK
// = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
if(!isset($_COOKIE['storedcookie_textfileBB_id'])) error("You must login to access your inbox.");
if(!is_numeric($_GET[messageid])) die();
$linecount = '1';
require("forum_conf.php");
$messageid=$_GET[messageid];
?>
<title><?php echo "$forum_name - Your Inbox" ?></title>
<div class=tableborder><table width=100% cellpadding='4' cellspacing='1'><td class=arcade1><a href=index.php><?php echo "$forum_name"; ?></a> » <a href=inbox.php>Inbox</a> » Viewing Message</td></table></div>
<br>
<br>
<div class='tableborder'><table width=100%% cellpadding='4' cellspacing='1'><td width=15%% align=center class=headertableblock>User Info</td><td width=60%% align=center class=headertableblock>Inbox Message</td><tr>
<?php
if (file_exists("./accounts/{$acfile}_outbox/{$messageid}.php")) {
$info = @file("./accounts/{$acfile}_outbox/{$messageid}.php");
} else {
$info = @file("./accounts/{$acfile}_inbox/{$messageid}.php");
}
if(!$info) die();
$replace = str_replace("<?php die(); ?>", "", $info[0]);
$memberfile = file("./id_data/member_names_num.txt");
$thiseh = rtrim($info[1]);
$postsofsomething = $info[3];
$postsofsomething = bbcodeize($postsofsomething);
$sig = bbcodeize($sig);
?>
<tr><td class=arcade1 valign=top><b><?php echo $memberfile[$thiseh]; ?></b><br><br><br><br><br><br><br></td><td class=arcade1 valign=top><?php echo $postsofsomething; ?><br><br>-----------------<br></td></tr><tr><td class=headertableblock><font size=-5>Date: <?php echo $info[2]; ?></font></td><td class=headertableblock><div align=right><a href="mail.php?replysubject=Re: <?php echo $replace; ?>&replyname=<?php echo $memberfile[$thiseh]; ?>&action=do">[Reply]</a> · <a href="inbox.php?delete=<?php echo $messageid; ?>&action=do">[Delete]</a></div></td></tr>
<?php
if ($_GET['read'] == "1") {
@rename("./accounts/{$acfile}_inbox/{$messageid}.php", "./accounts/{$acfile}_outbox/{$messageid}.php");
}
?>
</table>
</div>
<br>
<?php require("footer.php"); ?>