Файл: in4at/chatmail.php
Строк: 69
<?php
##################################################################################################
## Script name : In4at ##
## Version : Final ##
## Made by : XPYCT(Сергей Мищенко) ##
## E-mail : bce-ok@bk.ru ##
## ICQ : 447-50-50-62 ##
## Site : http://vkontakte.ru/id31604521 ##
## Внимание! Скрипт распространяется бесплатно! Модификация W4at by XPYCT ##
##################################################################################################
define('REQ_2_chat', true);
require('4at_set.php');
require('db_con.php');
require('style.php');
if ($py !== spy_code) require('us_info.php');
if (isset($rm)) $wp.= "&rm=$rm";
if((time()<$row['kik']&&$rm!=9)||(time()<$row['kik']&&$rm==9&&$row['whokik']==$syst)){
echo head;
if ($vv!=0) echo '<div class="d0"><b>Стоп!</b></div>';
else echo "<card id="vypnut" title="Стоп!" ontimer="chat.php?id=$id&ps=$ps&rm=9&ref=$ref"><timer value="300"/><p align="center">";
echo $fsize1;
$tleft = $row['kik'] - time();
$whokik = $row['whokik'];
$whykik = $row['whykik'];
echo $whokik.' выпнул вас из чата. Разбан через '.$tleft.' (сек)<br/>';
echo 'Причина: '.$whykik.'<br/>';
echo $fsize2;
echo foot;
mysql_close($link);
exit;
}
$us=$row['user'];
$time = date("H:i");
echo head;
if ($vv!=0) echo '<div class="d0"><b>Ваши письма</b></div><div align="center">';
else echo '<card id="chatmail" title="Ваши письма"><p align="center">';
echo $fsize1;
echo '<b>[Пoчтaльoн]</b> ['.$time.']<br/>';
echo 'Дoбpo пoжaлoвaть, '.$us.'!<br/>';
echo 'Haпoмuнaю вaм, чтo пuсьмa нa пoчтe xpaнятся нeдeлю. Пpoсьбa сoxpaнять нyжнyю uнфopмaцuю.<br/>';
echo $fsize2;
if ($vv!=0) echo '</div>';
else echo '</p><p>';
echo $fsize1;
$a = mysql_fetch_array(mysql_query("select count(readd) as num from zapiski WHERE (idtowhom = '".$id."')and(readd = '0')and(ininc = '1')and(save!='1')"));
$inb = $a['num'];
$a = mysql_fetch_array(mysql_query("select count(readd) as num from zapiski WHERE (idwho = '".$id."')and(readd = '0')and(insend = '1')and(save!='1')"));
$out = $a['num'];
$a = mysql_fetch_array(mysql_query("select count(readd) as num from zapiski WHERE (idtowhom = '".$id."')and(ininc = '1')and(save!='1')"));
$inball = $a['num'];
$a = mysql_fetch_array(mysql_query("select count(readd) as num from zapiski WHERE (idwho = '".$id."')and(insend = '1')and(save!='1')"));
$outall = $a['num'];
$a = mysql_fetch_array(mysql_query("select count(readd) as num from zapiski WHERE (idtowhom = '".$id."')and(ininc = '1')and(save='1')"));
$svall = $a['num'];
mysql_close ($link);
echo "<a href="inbox.php?$wp">Входящие($inb|$inball)</a><br/>n";
echo "<a href="outbox.php?$wp">Отправленные($out|$outall)</a><br/>n";
echo "<a href="svbox.php?$wp">Сохраненые($svall)</a><br/>n";
$who="";
echo "<a href="send.php?$wp&towhom=$who">Написать письмо</a><br/>";
echo divide;
echo "<a href="friends.php?$wp">Список друзей</a><br/>n";
echo divide;
echo "<a href="delmsg.php?$wp&go=all">Удалить все письма</a><br/>n";
echo divide;
if (isset($rm)) echo "<a href="chat.php?$wp&rm=$rm">В чат</a><br/>";
echo '<a href="enter.php?'.$wp.'">Пpuxoжaя</a><br/>';
echo $fsize2;
echo foot;
?>