Размер файла: 1.41Kb
<?
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;
//return iconv("windows-1251","UTF-8",$s);
//return substr($s,0,101);
}
$r = GetRandom();
openDB();
$result = checkpass($nn,$pass,"profile");
$profile= mysql_result($result,0, "profile");
mysql_close();
require("headerwml.ssp");
echo "<card id=\"$MagMail\" title=\"$menu[7]\">";
echo "<onevent type=\"onenterforward\">\n";
echo "<refresh>\n";
echo "<setvar name=\"data\" value=\"\"/>\n";
echo "</refresh>\n";
echo "</onevent>\n";
echo "<p align=\"center\">";
list($label,$mess,$datalen)=explode("|",$ProfData[$num]);
echo "$mess:<br/>\n";
echo "<input name=\"data\" title=\"=\" emptyok=\"true\" type=\"text\" value=\"".GetProfItem($label)."\" maxlength=\"$datalen\"/>";
echo "</p><p>";
echo "<anchor>- $menu[12]";
echo "<go method=\"post\" href=\"saveprof.php?p=$r&nn=$nn&pass=$pass&num=$num\">\n";
echo "<postfield name=\"data\" value=\"$(data)\"/>\n";
echo "</go>\n";
echo "</anchor>\n";
echo "<br/><anchor>- $menu[8]";
echo "<prev/>";
echo "</anchor>\n";
echo "</p>";
include ("bottom.inc");
?>