Просмотр файла goroskop/tomorrow/telec.php

Размер файла: 703B
  1. <?
  2. $url = "http://wap.ngs.ru/horo/tomorrow/telec.wml";
  3. $data_start = '<b>';
  4. $data_end = '</p>';
  5. $data_new_start = '';
  6. $data_new_end ='';
  7. @eregi("$data_start(.*)$data_end",@fread(@fopen($url,"rb"),65536), $out);
  8. echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  9. <html>
  10. <head>
  11. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  12. <meta http-equiv="Cache-Control" content="no-cache" forua="true"/>
  13. <title>WestSide</title>
  14. </head>
  15.  
  16. <body bgcolor="#000000" text="#F39800" link="#B025BF" vlink="#B025BF" >
  17. <p><b>
  18. ';
  19. print "$data_new_start ".$out[1]." $data_new_end";
  20. echo '<a href="http://westside.org.ru">go home</a>
  21. </p>
  22. </body>
  23. </html>
  24. ';
  25. ?>