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
|
<?php
include("top.php");
?>
<table width=600 cellspacing=0 cellpadding=0 border=0 class=bordercolor><tr><td>
<table width=100% cellspacing=1 cellpadding=5 border=0>
<tr><td class=oben>Private Nachrichten</td></tr>
<tr><td class=g><table width=100% cellspacing=0 cellpadding=15 border=0>
<tr><td class=g width=100% valign=top align="center">
<center>
<HTML>
<HEAD>
<TITLE>Private Mitteilungen</TITLE>
<meta http-equiv="expires" content="0">
<?
if ($_SESSION['Benutzername'] == '')
{
show_error('ERROR_WRONG_LOGIN');
}
$datum= strftime("%d.%m.%y - %H:%M");
$check= $_POST["ok"];
$name= $_SESSION['Benutzername'];
$to= $_POST['to'];
$betreff= $_POST['betreff'];
$text= $_POST['text'];
$text = wordwrap( $text, 120, "<br />",$text);
$text = str_replace("\n", "<br>", $text);
$text = str_replace("Arsch","*Bluuuubb*",$text);
$text = str_replace("arsch","*Bluuuubb*",$text);
$text = str_replace("Scheiße","*Bluuuubb*",$text);
$text = str_replace("scheiße","*Bluuuubb*",$text);
$text = str_replace("fuck","*Bluuuubb*",$text);
$text = str_replace("behindert","*Bluuuubb*",$text);
$text = str_replace("Behindert","*Bluuuubb*",$text);
$text = stripslashes($text);
$betreff =format_xml($betreff);
$text =format_xml($text);
$text = preg_replace("/\<(.*)\>/Usi", "",$text);
$betreff = preg_replace("/\<(.*)\>/Usi", "",$betreff);
$text = preg_replace("!\[b\](.*)\[/b\]!isU","<b>$1</b>",$text);
$text = preg_replace("!\[u\](.*)\[/u\]!isU","<u>$1</u>",$text);
$text = preg_replace("!\[i\](.*)\[/i\]!isU","<i>$1</i>",$text);
$text = preg_replace_callback("/\[img\](.*)\[\/img\]/isU", 'picSize', $text);
$text = preg_replace("/\[size=(.*?)\](.*?)\[\/size\]/", "<font size=\"\\1\">\\2</font>", $text);
$text = preg_replace("(\[font=(.+?)\](.+?)\[\/font\])","<span style=\"font-family: $1;\">$2</span>",$text);
$text = eregi_replace("\\[color=([^\\[]*)\\]([^\\[]*)\\[/color\\]","<font color=\\1>\\2</font>",$text);
$text = preg_replace("/\[email\](.*?)\[\/email\]/si", "<a href=\"mailto:\\1\">\\1</a>", $text);
$text = preg_replace("/\[email=(.*?)\](.*?)\[\/email\]/si", "<a href=\"mailto:\\1\">\\2</a>", $text);
$text = preg_replace("/\[URL\]www.(.*?)\[\/URL\]/si", "<a target=\"_blank\" href=\"http://www.\\1\">www.\\1</a>", $text);
$text = preg_replace("/\[URL\](.*?)\[\/URL\]/si", "<a target=\"_blank\" href=\"\\1\">\\1</a>", $text);
function picSize($treffer)
{
$size = @getimagesize($treffer[1]);
if ($size[0] > 200) {
$width = 200;
// Höhe berechnen
$height = ($size[1]/$size[0])*$width;
return " <img src=\"".$treffer[1]."\" width=\"".$width."\" height=\"".$height."\" border=\"0\"> ";
}
else
return " <img src=\"".$treffer[1]."\" border=\"0\"> ";
}
if($check== "ok")
{
echo "<meta http-equiv=refresh content='3; url=pmlesen.php'>";
echo "<center>Ihre Nachricht wurde erfolgreich gesendet!</center>";
$fp = fopen("data/pm/".$to."pm.txt" ,"a");
fputs($fp,"$name|-|$datum|-|$betreff|-|$text|-|\n\r");
fclose($fp);
$fp2 = fopen("msg.txt" ,"a+");
fputs($fp2,"\n $datum <b>>System Bot<</b> $to hat von $name eine Pn erhalten.<br>");
fclose($fp2);
}
else
{
echo ' <center><b><u><h1>FEHLER:</h1></u></b><br> Bitte senden Sie Private Nachrichten, über das Forumular!<br><br>Wen sie der Meinung sind es bestehe hier ein Fehler in unserem <br> PN System, kontaktieren Sie einen Administrator des Forums.</center>';
}
?>
</table>
</td></tr></table>
</td></tr></table>
<p><table width=600 cellspacing=0 cellpadding=0 border=0 class=bordercolor><tr><td>
<table width=100% cellspacing=1 cellpadding=5 border=0>
<tr><td class=g><center>PM-System 1.0.1 © 2009 by Pranox <font face="Verdana" size="2"><small>(<a target="_blank" href="http://www.engeldoor.de">www.engeldoor.de</a>)</td></tr>
</td></tr>
</td></tr>
</center></td></tr>
</table>
</td></tr></table>
<?PHP
// Include bottom
include("bottom.php");
?>
|