<?php

/*** Freedom City | Check RPGBUNNY.COM for more Full RPG Sources | www.rpgbunny.com ***/include "antet.php"; include "func.php";

if (isset($_SESSION["user"][0]));
else {header('Location: login.php'); die();}
?>
<html>
<?php echo "<link rel='stylesheet' type='text/css' href='".$imgs.$fimgs."default.css'>"; ?>

<head>
<title><?php echo $title; ?> - <?php echo $lang['writeMsg'] ?></title>
</head>

<body class="q_body">

<link rel="stylesheet" type="text/css" href="layout/css/css/style.css"/>
<div align="left">

    <table class="q_table">

        <form name="form1" method="post" action="writemsg_.php">
          <p><?php echo $lang['recipient'] ?>:<br>
            <input class='textbox' name="recipient" type="text" id="recipient" value="<?php if (isset($_GET["name"])) echo $_GET["name"]; else if (isset($_GET["msg"])) {$msg=message($_GET["msg"]); $usr=user($msg[1]); echo $usr[1];} ?>">
</p>
          <p><?php echo $lang['subject'] ?>: <br>
            <input class='textbox' name="subject" type="text" size="45" value="<?php if (isset($_GET["msg"])) {$msg=message($_GET["msg"]); echo $msg[3];} else echo "no_subject"; ?>">
              </p>
          <p>
            <textarea class='textbox' name="contents" cols="95" rows="20"><?php if (isset($_GET["msg"])) {$msg=message($_GET["msg"]); echo "\r\n\r\n[".$msg[5]."]\r\n".$msg[4];} ?></textarea>
              </p>
            <p>
              <input class='button' type="submit" name="button" value="<?php echo $lang['send'] ?>">
            </p>
        </form>
        </td>
      </tr>
    </table>

</div>

</body>

</html>