Размер файла: 1.99Kb
<?
require("functionChat.ssp");
function GetProfItem($Item)
{
global $profile;
$start = strpos(" $profile","<$Item>");
if ($start > 0)
{
$itemlen = strpos(" $profile","</$Item>") - $start - strlen("<$Item>");
$s = substr(" $profile",$start+ strlen("<$Item>"),$itemlen);
}
else
{
$s="";
}
return $s;
}
openDB();
$r = GetRandom();
$sqlSel="select * from users where nick='$to'";
$result=mysql_query($sqlSel) or die(mysql_error());
$Count=mysql_num_rows($result);
if ($Count == 0)
{
LogResult($ErrorMess,$InvProfileMess,"prev");
}
$nick = mysql_result($result,0, "nick");
$sent = mysql_result($result,0, "sent");
$regtime = mysql_result($result,0, "regtime");
$profile = mysql_result($result,0, "profile");
$lastrefr = mysql_result($result,0, "lastrefr");
mysql_close();
require("headerwml.ssp");
echo "<card id=\"$MagMail\" title=\"$menu[7]\">";
echo "<p>";
echo "<b>$menu[0]: </b>".NoClones($nick)."<br/>\n";
$foto = strtolower($to);
if (!file_exists($GLOBALS["DOCUMENT_ROOT"]."/foto/$foto.jpg")) echo "NO FOTO";
else echo "<a href=\"show.php?foto=$foto&login=$login&pass=$pass\">FOTO</a>";
echo "<br/><b>$menu[18]: </b>".date("d M y",$regtime)."<br/>\n";
echo "<b>$menu[20]: </b>$sent<br/>\n";
for ($i=0; $i<count($ProfData); $i++)
{
list($label,$mess,$datalen)=explode("|",$ProfData[$i]);
$ItemVal = GetProfItem($label);
$ItemText = $mess;
if ($label=="sex")
{
$ItemText = $menu[26];
if ($ItemVal == 1)
{
$ItemVal = $menu[24];
}
else
{
if ($ItemVal == 2)
{
$ItemVal = $menu[25];
}
else
{
$ItemVal = "";
}
}
}
If ($ItemVal != "") {echo "<b>$ItemText: </b>$ItemVal<br/>\n";}
}
echo "<anchor>- $menu[8]";
echo "<prev/>";
echo "</anchor>\n";
echo "<do type=\"prev\" label=\"$menu[8]\">\n";
echo "<prev/>\n";
echo "</do>\n";
echo "</p>";
include ("bottom.inc");
?>