Просмотр файла mini_wp_1.0/test.php

Размер файла: 1.98Kb
  1. <?php
  2.  
  3. ///////////////////////////////////////////////////////////////////////////////////////////
  4. /////
  5. ///// ********* MINI WP 1.0 *********
  6. /////
  7. ///////////////////////////////////////////////////////////////////////////////////////////
  8.  
  9. ///////////////////////////////////////////////////////////////////////////////////////////
  10. /////
  11. ///// Made by : TRIGER
  12. ///// E-mail : ama6600@rambler.ru
  13. ///// Site : http://wup.hoha.ru/web/
  14. ///// WAP-Site : http://wup.hoha.ru
  15. ///// ICQ : 252 756 447
  16. /////
  17. ///////////////////////////////////////////////////////////////////////////////////////////
  18.  
  19. ///////////////////////////////////////////////////////////////////////////////////////////
  20. /////
  21. ///// ВНИМАНИЕ! ВЫ НЕ ИМЕЕТЕ ПРАВО УДАЛЯТЬ КОПИРАЙТЫ!
  22. /////
  23. ///////////////////////////////////////////////////////////////////////////////////////////
  24.  
  25. function unicode ($s) {
  26. if ( (ord($s)>=192) & (ord($s)<=255) ) $hexvalue=dechex(ord($s)+848);
  27. if ($s=="Ё") $hexvalue="401"; if ($s=="ё") $hexvalue="451"; return("&#x0".$hexvalue.";");}
  28. function utf($s) {return(preg_replace("/[А-яЁё]/e","unicode('\\0')",$s));}
  29.  
  30. $text = file("img/db.dat");
  31. $top = rand (0,count($text)-1);
  32. $out = explode("|",$text[$top]);
  33.  
  34. $rand1=rand(0,1038);
  35. $rand2=rand(0,1038);
  36. $mat=@file("mat/susch.txt");
  37. $mat1=@file("mat/pril.txt");
  38.  
  39. header("Content-type:text/vnd.wap.wml");
  40. header("Cache-control: no-store,no-cache,must-revalidate");
  41. print "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  42. <!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">
  43. <wml><card id=\"card0\" title=\"You Name Site\"><div align=\"left\">";
  44.  
  45. include ("header.txt");
  46.  
  47. include ("text.php");
  48.  
  49. print utf("<small>Тест...</small><br/>");
  50.  
  51. include ("foter.txt");
  52.  
  53. print "</card></wml>";
  54.  
  55. ?>