Вход Регистрация
Файл: letters/inbox.php
Строк: 70
<?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>&#1042;&#1093;&#1086;&#1076;&#1103;&#1097;&#1080;&#1077;</title><link rel="StyleSheet" type="text/css" href="../style/0".$s.".css"></head><body>";
print 
"<div style="text-aligncenter">
<div class="
contur_rek"><div class="header_rek">&#1042;&#1093;&#1086;&#1076;&#1103;&#1097;&#1080;&#1077;
</div></div></div>"
;
print 
"<div style="text-alignleft"><div class="contur"><div class="header">";
if(
$login) {
if(empty(
$start)) $start 0;
if(
$start 0$start 0;
$pnumber 5;
$tot = @mysql_query("select count(*) from `".$px.$ltable."` where to_user='".$login['login']."' and ci='$ci';");
$lets = @mysql_query("select * from `".$px.$ltable."` where to_user='".$login['login']."' and ci='$ci' order by time desc limit ".$start.",".$pnumber.";");
if(
$tot && $lets) {
$total = @mysql_fetch_array($tot);
$count $total['count(*)'];
while(
$data = @mysql_fetch_array($lets))
{
$from=htmlspecialchars($data['from_user'], ENT_QUOTES);
$to=htmlspecialchars($data['to_user'], ENT_QUOTES);
$time=htmlspecialchars($data['time'], ENT_QUOTES);
$subject=htmlspecialchars($data['subject'], ENT_QUOTES);
$letter=htmlspecialchars($data['letter'], ENT_QUOTES);
$new=htmlspecialchars($data['new'], ENT_QUOTES);
$id_letter=htmlspecialchars($data['id'], ENT_QUOTES);
$time=date("d.m.Y H:i"$time);
if(
$new) {
        print 
"от: <b><a href="view.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass&amp;id_letter=$id_letter">$subject </a></b> &nbsp;<span style="color:#FAA134;">[$time]</span><br/>";
        
}
else {
        print 
"<a href="view.php?s=$s&amp;ci=$&amp;ci&amp;id=$id&amp;pass=$pass&amp;id_letter=$id_letter">$subject </a> &nbsp;<span style="color:#FAA134;">[$time]</span><br/>";
        
}
}
}
print 
"</div></div></div>";
if(
$start 0)
print 
"<br/></div><div class="smain"><a href="?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass&amp;room=$room&amp;start=".($start-$pnumber)."">&#1055;&#1088;&#1077;&#1076;&#1099;&#1076;&#1091;&#1097;&#1080;&#1077;</a>";
if(
$count $start $pnumber)
print 
"<a href="?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass&amp;room=$room&amp;start=".($start+$pnumber).""><br/>&#1057;&#1083;&#1077;&#1076;&#1091;&#1102;&#1097;&#1080;&#1077;</a>";
print 
"<div style="text-aligncenter">
<div class="
contur_rek"><div class="header_rek"><a href="../enter.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass">&#1055;&#1088;&#1080;&#1093;&#1086;&#1078;&#1072;&#1103;</a><br/>";
                } else { print 
"&#1055;&#1072;&#1088;&#1086;&#1083;&#1100; &#1085;&#1077; &#1087;&#1086;&#1076;&#1093;&#1086;&#1076;&#1080;&#1090;!"; }
print 
'</div></div></div></body></html>';
ob_end_flush();
?>
Онлайн: 0
Реклама