list($author, $subject, $email, $body) = censor($author, $subject, $email, $body); if (!get_magic_quotes_gpc()) { $author = addslashes($author); $email = addslashes($email); $subject = addslashes($subject); $body = addslashes($body); } $datestamp = date("Y-m-d H:i:s"); $plain_author = stripslashes($author); $plain_subject = stripslashes(strip_tags($subject)); $plain_body = stripslashes(strip_tags($body)); $author = htmlspecialchars($author); $email = htmlspecialchars($email); $subject = htmlspecialchars($subject); $more = ""; if (!check_dup() && check_parent($parent)) { // generate a message id for the email if needed. $msgid = "<" . md5(uniqid(rand())) . "." . eregi("[^A-Z0-9]", "", $ForumName) . ">"; // add the users signature if requested if (isset($use_sig)) { $body .= "\n\n" . PHORUM_SIG_MARKER; } // This will add the message to the database, and email the // moderator if required. $id = post_to_database(); if (!$id) { echo $error; exit; } // mark this message as read in their cookies since they wrote it. $haveread_cookie = "phorum-haveread-{$ForumTableName}";
$body = addslashes($body); } $datestamp = date("Y-m-d H:i:s"); $plain_author = stripslashes($author); $plain_subject = stripslashes(strip_tags($subject)); $plain_body = stripslashes(strip_tags($body)); $author = htmlspecialchars($author); $email = htmlspecialchars($email); $subject = htmlspecialchars($subject); $checkfrozen = true; $threadflags = 0; if (!empty($phorum_user["moderator"])) { $checkfrozen = false; } $more = ""; if (!check_dup() && check_parent($parent, $thread, $checkfrozen)) { // check_parent will also set "$threadflags" // generate a message id for the email if needed. $msgid = "<" . md5(uniqid(rand())) . "." . eregi("[^A-Z0-9]", "", $ForumName) . ">"; // add the users signature if requested if (isset($use_sig)) { $body .= "\n\n" . PHORUM_SIG_MARKER; } // This will add the message to the database, and email the // moderator if required. $id = post_to_database(); if (!$id) { echo $error; exit; } // mark this message as read in their cookies since they wrote it.