Просмотр файла themes/wml/index.php

Размер файла: 2.09Kb
  1. <?php
  2. #-----------------------------------------------------#
  3. # ********* WAP-MOTORS ********* #
  4. # Made by : VANTUZ #
  5. # E-mail : vsem@pizdec.ru #
  6. # Site : http://pizdec.ru #
  7. # WAP-Site : http://visavi.net #
  8. # ICQ : 36-44-66 #
  9. # Вы не имеете право вносить изменения в код скрипта #
  10. #-----------------------------------------------------#
  11. header("Cache-Control: no-cache");
  12. header("Content-type:text/vnd.wap.wml; charset=utf-8");
  13. echo '<?xml version="1.0" encoding="utf-8"?>';
  14. echo '<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN" "http://www.wapforum.org/DTD/wml13.dtd">';
  15. echo '<wml><head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>';
  16. echo '<card id="index" title="'.site_title($php_self).'"><p><!--Themes by Vantuz-->';
  17.  
  18.  
  19.  
  20. function htmltowml($skinwml) {
  21. $skinwml = str_replace("images/img/act1.gif","themes/wml/act1.gif",$skinwml);
  22. $skinwml = str_replace("images/img/act2.gif","themes/wml/act2.gif",$skinwml);
  23. $skinwml = str_replace("images/img/act3.gif","themes/wml/act3.gif",$skinwml);
  24. $skinwml = str_replace("images/img/act_home.gif","themes/wml/act_home.gif",$skinwml);
  25.  
  26.  
  27. $skinwml = str_replace("&nbsp;"," ",$skinwml);
  28. $skinwml = str_replace("</div>","<br>",$skinwml);
  29. $skinwml = str_replace("</tr>","<br>",$skinwml);
  30. $skinwml = str_replace("<hr>","<br>--------------------<br>",$skinwml);
  31. $skinwml = strip_tags($skinwml, "<a><br><img><html><body><small><em><big><b><u><i><input><anchor><go><postfield><select><option>");
  32.  
  33. $skinwml = str_replace("alt=\"\">","alt=\"image\"/>",$skinwml);
  34. $skinwml = str_replace("alt=''>","alt='image'/>",$skinwml);
  35. $skinwml = str_replace("<br>","<br/>",$skinwml);
  36. $skinwml = str_replace("</body></html>","</p></card></wml>",$skinwml);
  37. $skinwml = str_replace("&#36;","&#36;&#36;",$skinwml);
  38.  
  39. return $skinwml; }
  40. ob_start(htmltowml);
  41.  
  42. if($config_rekhead==1){include_once BASEDIR."local/datamain/reklama_head.dat";}
  43. ?>