Файл: letters/view.php
Строк: 51
<?php
ini_set('display_errors', 'off');
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();
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">".$lang['not_perehod']."</div></div></div>";
print "<div class="contur"><div class="header">";
if($login) {
@mysql_query("update `".$px.$ltable."` set new=0 where id='$id_letter' and ci='$ci';");
$query = @mysql_query("select * from `".$px.$ltable."` where id='$id_letter' and ci='$ci';");
$letter = @mysql_fetch_array($query);
$time = date("d.m.Y H:i",$letter['time']);
$letter=str_replace(' ',' ',$letter);
print "[".$time."]<br/><u>От:</u> ".htmlspecialchars($letter['from_user'], ENT_QUOTES)."<br/><u>Тема:</u> ".htmlspecialchars($letter['subject'], ENT_QUOTES)."<br/><u>Письмо:</u> ".htmlspecialchars($letter['letter'], ENT_QUOTES);
print "<br/><a href="sendform.php?s=$s&ci=$ci&id=$id&pass=$pass&to=".htmlspecialchars($letter['from_user'], ENT_QUOTES)."">Ответить</a></div></div></div>";
print "<div style="text-align: center">
<div class="contur_rek"><div class="header_rek"><a href="../enter.php?s=$s&ci=$ci&id=$id&pass=$pass">Прихожая</a>";
} else { print "Ошибка авторизации!"; }
print '</div></div></div></p></body></html>';
@mysql_close();
ob_end_flush();
?>