3 if (!isset($_COOKIE['DMDM']) && !isset($_COOKIE['MDMD'])) {
4 header('location:index.php');
7 include('../encrypt.php');
9 $id = strip_tags(addslashes(trim($_POST['zxcvbnm'])));
10 $subj = strip_tags(addslashes(trim($_POST['subj'])));
11 $inf = strip_tags(addslashes(trim($_POST['msg'])));
13 $message = new Message
;
14 $sanitize = $message->BeSanitize($inf);
15 if ($sanitize<>false) {
16 $user = $message->FindUser($id,$id_mail_path);
17 $sender = $message->GetID($_COOKIE['DMDM'],$id_mail_path);
18 $write = $message->WriteMDB($user,$sanitize,$sender,$subj,$id);
23 echo "Error, please try again later";
26 echo "Content too long!";