View file letters/index.php

File size: 3.13Kb
<?php
#######################################################
#             За дополнениями обращайтесь:            #
#                   icq 46-92-90                      #
#               email: xmedia08@mail.ru               #
#######################################################
#  Автор: -=ШАХТЕР=-   Сайт: http://161r.Ru           #
#######################################################
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();
if($login['fsize'] == "medium") { $fsize1 = ""; $fsize2 = ""; }
elseif($login['fsize'] == "small") { $fsize1 = "<small>"; $fsize2 = "</small>"; }
elseif($login['fsize'] == "big") { $fsize1 = "<big>"; $fsize2 = "</big>"; }
print "<title>&#1055;&#1080;&#1089;&#1100;&#1084;&#1072;</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\">".$fsize1."&#1055;&#1080;&#1089;&#1100;&#1084;&#1072;".$fsize2."</div></div>";
if($login) {
print "".$fsize1."Письма хранятся неделю! Сохраняйте важные данные!".$fsize2."</div></div><div style=\"text-align: left\"><div class=\"contur\"><div class=\"header\">";
@mysql_query("DELETE FROM `".$px.$ltable."` WHERE `time` < ".(time() - 10*24*3600)." and ci='$ci';");
$q_letters_in = @mysql_query("select * from `".$px.$ltable."` where to_user='".$login['login']."' and ci='$ci' and new=1;");
$q_letters_to = @mysql_query("select * from `".$px.$ltable."` where from_user='".$login['login']."' and ci='$ci';");
$num_in = @mysql_num_rows($q_letters_in);
$num_to = @mysql_num_rows($q_letters_to);
print ''.$fsize1.'<a href="inbox.php?s='.$s.'&amp;ci='.$ci.'&amp;id='.$id.'&amp;pass='.$pass.'">&#8594; &#1042;&#1093;&#1086;&#1076;&#1103;&#1097;&#1080;&#1077;('.$num_in.')</a><br/>'.
'<a href="draft.php?s='.$s.'&amp;ci='.$ci.'&amp;id='.$id.'&amp;pass='.$pass.'">&#8594; &#1048;&#1089;&#1093;&#1086;&#1076;&#1103;&#1097;&#1080;&#1077;('.$num_to.')</a><br/>'.
'<a href="sendform.php?s='.$s.'&amp;ci='.$ci.'&amp;id='.$id.'&amp;pass='.$pass.'">&#8594; &#1053;&#1072;&#1087;&#1080;&#1089;&#1072;&#1090;&#1100;</a>'.$fsize2.'</div></div>';
print "<div style=\"text-align: center\">
<div class=\"contur_rek\"><div class=\"header_rek\">".$fsize1."<a href=\"../enter.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass\">&#1055;&#1088;&#1080;&#1093;&#1086;&#1078;&#1072;&#1103;</a>".$fsize2."<br/>";
                } else { print "&#1054;&#1096;&#1080;&#1073;&#1082;&#1072; &#1072;&#1074;&#1090;&#1086;&#1088;&#1080;&#1079;&#1072;&#1094;&#1080;&#1080;!<br/>"; }
print '</div></div></div></body></html>';
@mysql_close();
ob_end_flush();
?>