require "constants.php" ?>
$title = "Anathema Online - Send Private Message" ?>
include "index-top.php" ?>
if ($user_name) {
if ($_POST['mode']) {
$user = $_POST['user'];
$user = str_replace('\\','',$_POST['user']);
echo $user;
$topic = $_POST['topic'];
$post = nl2br($_POST['post']);
if (!$user) $failure = "Please state who you wish to send the message to.";
if (!$topic) $failure = "Please set a topic.";
if (html($topic)) $failure = "Please remove the HTML from the topic.";
if (html_format($post)) $failure = "Please remove the HTML from the post.";
if (!$failure) sendMessage($user,$topic,$post,$user_name);
echo '';
echo '';
echo '';
echo '
';
echo '';
echo '| ';
if (!$failure) echo 'Your message was sent.';
else echo $failure.'';
echo ' | ';
echo '
';
echo '
';
echo '
';
} else {
$id = $_GET['id'];
echo '';
}
} else {
echo '
';
echo '| You are not allowed to view this. |
';
echo '
';
}
?>
include "index-bottom.php" ?>