View file themes/wml/index.php

File size: 5.2Kb
<?php
#-----------------------------------------------------#
#     **** WAP-MOTORS AutoDetect XHTML/WML ****       #
#-----------------------------------------------------#
#     Original Made by  :  VANTUZ                     #
#               E-mail  :  [email protected]             #
#                 Site  :  http://pizdec.ru           #
#             WAP-Site  :  http://visavi.net          #
#                  ICQ  :  36-44-66                   #
#-----------------------------------------------------#
#   AutoDetect Made by  :  X-ray (Юрий)               #
#               E-mail  :  [email protected]           #
#                 Site  :  http://zugdidi.us          #
#             WAP-Site  :  http://geowap.mobi         #
#-----------------------------------------------------#
#  Вы не имеете право вносить изменения в код скрипта #
#-----------------------------------------------------#
header("Cache-Control: no-cache");
header("Content-type:text/vnd.wap.wml; charset=utf-8");
echo '<?xml version="1.0" encoding="utf-8"?>';
echo '<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN" "http://www.wapforum.org/DTD/wml13.dtd">';
echo '<wml><head>
<meta name="verify-v1" content="pGB90Or2gM2yKJaWb1DpLPHDrBqDXTGMIUt3aIYZiQU=" />
<meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>';
echo '<card id="index" title="'.$config_title.$my_title.'"><p>';


function htmltowml($skinwml) {
$skinwml = str_replace("<img src=\"../smiles/","<img src=\"../images/smiles/",$skinwml);
$skinwml = str_replace("<img src=\"images/img/act1.gif\" alt=\"\"> ","&#187;",$skinwml);
$skinwml = str_replace("<img src=\"images/img/act2.gif\" alt=\"\"> ","&#187;",$skinwml);
$skinwml = str_replace("<img src=\"images/img/act3.gif\" alt=\"\"> ","&#187;",$skinwml);
/*$skinwml = str_replace("images/img/act_home.gif","themes/wml/act_home.gif",$skinwml);
$skinwml = str_replace("<img src=\"images/img/files2.gif\" alt=\"\"> ","&#187;",$skinwml);
$skinwml = str_replace("<img src=\"images/img/dir.gif\" alt=\"\"> ","&#187;",$skinwml);
$skinwml = str_replace("<img src=\"images/img/download.gif\" alt=\"\"> ","&#187;",$skinwml);
$skinwml = str_replace("<img src=\"images/img/java.png\" alt=\"\"> ","&#187;",$skinwml);
$skinwml = str_replace("<img src=\"images/smiles/heart.gif\" alt=\"\"> ","&#187;",$skinwml);
$skinwml = str_replace("<img src=\"images/img/sms.gif\" alt=\"\"> ","&#187;",$skinwml);
$skinwml = str_replace("<img src=\"images/img/forums.gif\" alt=\"\"> ","&#187;",$skinwml);
$skinwml = str_replace("<img src=\"images/img/love.gif\" alt=\"\"> ","&#187;",$skinwml);
$skinwml = str_replace("<img src=\"images/img/config.gif\" alt=\"\"> ","&#187;",$skinwml);
$skinwml = str_replace("<img src=\"images/img/chel.gif\" alt=\"\"> ","&#187;",$skinwml);
$skinwml = str_replace("<img src=\"images/img/chat.gif\" alt=\"\"> ","&#187;",$skinwml);
$skinwml = str_replace("<img src=\"images/img/board.gif\" alt=\"\"> ","&#187;",$skinwml);
$skinwml = str_replace("<img src=\"images/img/movie.gif\" alt=\"\"> ","&#187;",$skinwml);
$skinwml = str_replace("<img src=\"images/img/games.gif\" alt=\"\"> ","&#187;",$skinwml);
$skinwml = str_replace("<img src=\"images/img/btn2.gif\" alt=\"\"> ","&#187;",$skinwml);
$skinwml = str_replace("<img src=\"images/img/stat.gif\" alt=\"\"> ","&#187;",$skinwml);
$skinwml = str_replace("<img src=\"images/img/faq.gif\" alt=\"\"> ","&#187;",$skinwml);
$skinwml = str_replace("<img src=\"images/img/picker.gif\" alt=\"\"> ","&#187;",$skinwml);
$skinwml = str_replace("<img src=\"images/img/many.gif\" alt=\"\"> ","&#187;",$skinwml);
$skinwml = str_replace("<img src=\"images/img/reload.gif\" alt=\"\"> ","&#187;",$skinwml);
$skinwml = str_replace("<img src=\"images/img/mail2.gif\" alt=\"\"> ","&#187;",$skinwml);
$skinwml = str_replace("<img src=\"images/img/yes.gif\" alt=\"\"> ","&#187;",$skinwml);
$skinwml = str_replace("<img src=\"images/img/edit.gif\" alt=\"\"> ","&#187;",$skinwml);
$skinwml = str_replace("<img src=\"images/img/edit2.gif\" alt=\"\"> ","&#187;",$skinwml);
$skinwml = str_replace("<img src=\"images/img/edit.gif\" alt=\"\"> ","&#187;",$skinwml);
$skinwml = str_replace("<img src=\"images/img/chain3.gif\" alt=\"\"> ","&#187;",$skinwml);
$skinwml = str_replace("<img src=\"images/img/gogreen.gif\" alt=\"\"> ","&#187;",$skinwml);
$skinwml = str_replace("<img src=\"images/img/34.gif\" alt=\"\"> ","&#187;",$skinwml);
$skinwml = str_replace("<img src=\"images/img/7.gif\" alt=\"\"> ","&#187;",$skinwml);*/

$skinwml = str_replace("&nbsp;"," ",$skinwml);
$skinwml = str_replace("</div>","<br>",$skinwml);
$skinwml = str_replace("</tr>","<br>",$skinwml);
$skinwml = str_replace("<hr>","<br>--------------------<br>",$skinwml);
$skinwml = strip_tags($skinwml, "<a><br><img><html><body><small><em><big><b><u><i><input><anchor><go><postfield><select><option>");

$skinwml = str_replace("alt=\"\">","alt=\"image\"/>",$skinwml);
$skinwml = str_replace("alt=''>","alt='image'/>",$skinwml);
$skinwml = str_replace("<br>","<br/>",$skinwml);
$skinwml = str_replace("<br />","<br/>",$skinwml);
$skinwml = str_replace("</body></html>","</p></card></wml>",$skinwml);

return $skinwml; }
ob_start(htmltowml);
echo '<img src="'.$config_logotip.'" alt=""><br>';
?>