<?php
ini_set('display_errors', 'off');
$r = rand(0,100000);
header ("Content-type: text/html; charset=utf-8");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-cache, must-relative");
print '<?xml version="1.0" encoding="utf-8"?>';
print "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"><html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">";
include "../ini.php";
$login = autorize();
if($login['fsize'] == "medium") { $fsize1 = ""; $fsize2 = ""; }
elseif($login['fsize'] == "small") { $fsize1 = "<small>"; $fsize2 = "</small>"; }
elseif($login['fsize'] == "big") { $fsize1 = "<big>"; $fsize2 = "</big>"; }
print "<title>Написать</title><link rel=\"StyleSheet\" type=\"text/css\" href=\"../style/0".$s.".css\"></head><body>";
print "<div style=\"text-align: center\">
<div class=\"contur_rek\"><div class=\"header_rek\">Отправка письма
</div></div></div>";
if($login) {
print '<div class="contur"><div class="header">'.$fsize1.'<form action="send.php?s='.$s.'&ci='.$ci.'&id='.$id.'&pass='.$pass.'" method="post">Кому:<br/>'.
'<input type="text" class="do_button" name="to" value="'.$to.'"/><br/>'.
'Тема:<br/>'.
'<input type="text" class="do_button" name="subject"/><br/>'.
'Письмо:<br/>'.
'<input type="text" class="do_button" name="letter"/><br/><input type="submit" class="button" value="Отправить"></form></div></div>';
print "<div style=\"text-align: center\">
<div class=\"contur_rek\"><div class=\"header_rek\">".$fsize1."<a href=\"../enter.php?s=$s&ci=$ci&id=$id&pass=$pass\">Прихожая</a>".$fsize2."<br/>";
echo $fsize2;
} else { print "Ошибка авторизации!"; }
print '</div></div></div></body></html>';
@mysql_close();
ob_end_flush();
?>