Просмотр файла eforum25/memview.php

Размер файла: 1.71Kb
  1. <?php
  2. include "config.php";
  3. include "incl/head.inc";
  4.  
  5. if(!isset($us)){die('<title>...</title></head><body> </body></html>');}
  6.  
  7. $info='...';$member='...';$img='';
  8.  
  9. $fs=open_file($members_file);
  10. $fs=explode("\n",$fs);
  11.  
  12. for($i=1;$i<count($fs);$i++){
  13. if(strlen($fs[$i])>9){
  14. $row=explode(":|:",$fs[$i]);
  15.  
  16. if(strtolower($row[0])==strtolower($us)){
  17.  
  18. if(isset($row[4])&&$row[4]!=''&&$row[4]!='http://')
  19. {$img="<img src=\"$row[4]\" align=\"right\" border=\"1\" width=\"50\" height=\"50\" onclick=\"show_image(this,'$row[4]')\" vspace=\"4\" hspace=\"4\" onmouseover=\"this.style.cursor='hand'\" onmouseout=\"this.style.cursor='default'\" alt=\"$lang[42]\" title=\"$lang[42]\" />";}
  20.  
  21. $info=$row[3];$info=eregi_replace("([A-z0-9._-]+)@([A-z0-9._-]+)","<script type=\"text/javascript\">show_mail('\\1','\\2')</script>",$info);
  22. if(isset($row[5])&&$row[5]!='m'){$sex='s';}else{$sex='w';}
  23. $member="<img src=\"pics/".$sex."1.gif\" $size_img[1] alt=\"\" hspace=\"2\" border=\"0\" align=\"left\" />$us";
  24. $info="<img src=\"pics/t1.gif\" $size_img[2] alt=\"\" border=\"0\" align=\"left\" vspace=\"0\" />$info";
  25. }}}
  26. ?><title><?php print $lang[58];?></title></head><body>
  27. <table width="280" border="0" cellpadding="0" cellspacing="0" align="center"><tr><td class="q">
  28. <table width="100%" border="0" cellspacing="1" cellpadding="5">
  29. <tr class="c"><td><table width="100%" cellpadding="1" cellspacing="0"><tr><td nowrap="nowrap"><span class="c"><?php print $member;?></span></td><td align="right" nowrap="nowrap"><b><a style="color:#ffffff" href="memed.php?name=<?php print $us;?>"><?php print $lang[22];?></a></b></td></tr></table></td></tr>
  30. <tr class="a"><td class="s"><?php print "$img $info";?></td></tr></table></td></tr></table></body></html>