Вход Регистрация
Файл: wml/letters/index.php
Строк: 45
<?php

header 
("Content-type:text/vnd.wap.wml; charset=utf-8");

print 
'<?xml version="1.0" encoding="utf-8"?>'.
'<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"'.
' "http://www.wapforum.org/DTD/wml_1.1.xml">'.
'<wml><head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>';

include 
"../ini.php";

$login autorize();

print 
'<card title="&#1055;&#1080;&#1089;&#1100;&#1084;&#1072;">'.
'<p>';

if(
$login) {
print 
'&#1055;&#1080;&#1089;&#1100;&#1084;&#1072;, &#1087;&#1088;&#1086;&#1083;&#1077;&#1078;&#1072;&#1074;&#1096;&#1080;&#1077; &#1085;&#1072; &#1089;&#1077;&#1088;&#1074;&#1077;&#1088;&#1077; &#1073;&#1086;&#1083;&#1077;&#1077; &#1086;&#1076;&#1085;&#1086;&#1081; &#1085;&#1077;&#1076;&#1077;&#1083;&#1080;, &#1091;&#1076;&#1072;&#1083;&#1103;&#1102;&#1090;&#1089;&#1103;! &#1057;&#1086;&#1093;&#1088;&#1072;&#1085;&#1103;&#1081;&#1090;&#1077; &#1074;&#1072;&#1078;&#1085;&#1099;&#1077; &#1076;&#1072;&#1085;&#1085;&#1099;&#1077;!<br/>';
@
mysql_query("DELETE FROM `".$px.$ltable."` WHERE `time` < ".(time() - 7*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 
'<a href="inbox.php?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?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?ci='.$ci.'&amp;id='.$id.'&amp;pass='.$pass.'">&#8594; &#1053;&#1072;&#1087;&#1080;&#1089;&#1072;&#1090;&#1100;</a><br/>';
print 
"<br/><a href="../enter.php?ci=$ci&amp;id=$id&amp;pass=$pass">&#8594; &#1055;&#1088;&#1080;&#1093;&#1086;&#1078;&#1072;&#1103;</a><br/>";
        } else { print 
"&#1054;&#1096;&#1080;&#1073;&#1082;&#1072; &#1072;&#1074;&#1090;&#1086;&#1088;&#1080;&#1079;&#1072;&#1094;&#1080;&#1080;!<br/>"; }
print 
'</p>'.
'</card>'.
'</wml>';

@
mysql_close();
ob_end_flush();
?>
Онлайн: 0
Реклама