Просмотр файла magmail/data.php

Размер файла: 1.41Kb
  1. <?
  2. require("functionChat.ssp");
  3.  
  4.  
  5. function GetProfItem($Item)
  6. {
  7. global $profile;
  8. $start = strpos(" $profile","<$Item>");
  9. if ($start > 0)
  10. {
  11. $itemlen = strpos(" $profile","</$Item>") - $start - strlen("<$Item>");
  12. $s = substr(" $profile",$start+ strlen("<$Item>"),$itemlen);
  13. }
  14. else
  15. {
  16. $s="";
  17. }
  18. return $s;
  19. //return iconv("windows-1251","UTF-8",$s);
  20. //return substr($s,0,101);
  21. }
  22.  
  23. $r = GetRandom();
  24.  
  25. openDB();
  26.  
  27. $result = checkpass($nn,$pass,"profile");
  28. $profile= mysql_result($result,0, "profile");
  29. mysql_close();
  30.  
  31. require("headerwml.ssp");
  32.  
  33. echo "<card id=\"$MagMail\" title=\"$menu[7]\">";
  34.  
  35. echo "<onevent type=\"onenterforward\">\n";
  36. echo "<refresh>\n";
  37. echo "<setvar name=\"data\" value=\"\"/>\n";
  38. echo "</refresh>\n";
  39. echo "</onevent>\n";
  40. echo "<p align=\"center\">";
  41.  
  42. list($label,$mess,$datalen)=explode("|",$ProfData[$num]);
  43. echo "$mess:<br/>\n";
  44. echo "<input name=\"data\" title=\"=\" emptyok=\"true\" type=\"text\" value=\"".GetProfItem($label)."\" maxlength=\"$datalen\"/>";
  45.  
  46. echo "</p><p>";
  47. echo "<anchor>- $menu[12]";
  48. echo "<go method=\"post\" href=\"saveprof.php?p=$r&amp;nn=$nn&amp;pass=$pass&amp;num=$num\">\n";
  49. echo "<postfield name=\"data\" value=\"$(data)\"/>\n";
  50. echo "</go>\n";
  51. echo "</anchor>\n";
  52.  
  53. echo "<br/><anchor>- $menu[8]";
  54. echo "<prev/>";
  55. echo "</anchor>\n";
  56. echo "</p>";
  57. include ("bottom.inc");
  58. ?>