Просмотр файла banners.ru/www/users/view.php

Размер файла: 2.13Kb
<?
error_reporting(E_ALL ^ E_NOTICE);            //<--
session_start();
require ('../data/config.php');
require ('../data/mysql.php');
require ('../data/functions.php');
if (!authenticateUser( $cookie_user, $cookie_passwd))
        {
        header("Location:/index.php?err=falce");
        exit();
        }
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>'; ?>
<card title="<?print " $site_title";?>">
<p>




<?require ('../html/up_user.php');?>

     <?    /* <?require ('left.tpl');?>   */
     $find_user=mysql_query("SELECT * FROM accounts WHERE user_login='$cookie_user'");
$row=mysql_fetch_array($find_user);
$login=$row['user_login'];
$id=$row['id'];


 echo "<small>\n";
$query=mysql_query("select * from `letters` where `id`='$id_letter' and `to_user`='$login'");
$query=mysql_query("select * from `letters` where `id`='$id_letter' limit 1");
$letter=mysql_fetch_array($query);
$to=$letter['to_user'];
$from=$letter['from_user'];
if (($to==$login) or ($from==$login)) {
mysql_query("update letters set new='0' where  id='$id_letter' ");
$time=date("d.m.Y H:i",$letter['time']);
print "[".$time."]<br/><u>От(ID):</u>".$letter['from_user']."<br/><u>Тема:</u>".$letter['subject']."<br/><u>Письмо:</u>".$letter['letter'];
$letter['from_user'] = UrlEncode($letter['from_user']);
print "<br/><a href=\"sendform.php?id=$id&amp;pass=$pass&amp;to=".$letter['from_user']."\">Ответить</a><br/>";
print " &#8226;&#8226;&#8226;&#8226;&#8226;&#8226;&#8226;&#8226;&#8226;&#8226;";
if ($to==$login) { print "<br/><a href=\"delmes.php?id=$id&amp;id_letter=$id_letter\">&#x423;&#x434;&#x430;&#x43B;&#x438;&#x442;&#x44C;</a><br/>"; }
//print "<br/>";
}

else { print "Xaker? xexe)))<br/>"; }


   ?>



 <a href="index.php">&#x0423;&#x043F;&#x0440;&#x0430;&#x0432;&#x043B;&#x0435;&#x043D;&#x0438;&#x0435; &#x0430;&#x043A;&#x043A;&#x0430;&#x0443;&#x043D;&#x0442;&#x043E;&#x043C;</a> <br/> 
</small>    </p>
 <?require ('../html/down.php');?>
</card>
</wml>