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

Размер файла: 5.3Kb
  1. <?php
  2. if (strtok($_SERVER['HTTP_USER_AGENT'],'/')!="Mozilla") {
  3. header("Content-type:application/vnd.wap.xhtml+xml; charset=utf-8");
  4. }else{
  5. header("Content-type:text/html; charset=utf-8");}
  6. echo '<?xml version="1.0" encoding="utf-8"?>
  7. <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
  8. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru">
  9. <head>
  10. <meta http-equiv="Content-Type" content="application/vnd.wap.xhtml+xml; charset=UTF-8" />
  11. <meta http-equiv="Content-Style-Type" content="text/css" />
  12. <link rel="shortcut icon" href="'.$config_home.'/favicon.ico" />';
  13.  
  14. if($config_rssicon==1){echo '<link rel="alternate" type="application/rss+xml" title="RSS" href="'.$config_home.'/news/rss_news.php" />';}
  15.  
  16. echo '<title>'.site_title($php_self).'</title>
  17. <style type="text/css">
  18. body { font-family: Calibri; font-size: 13px; margin: 2px; color: maroon;
  19. background-color: white; }
  20. a:link, a:visited { text-decoration: underline; color : purple; }
  21. a:hover { text-decoration: none; color: red; position: relative; top: 1px; left: 1px; }
  22. .a {padding: 0px; text-align: center; border: 2px dotted green;
  23. background-color: lightblue; font-size: 17px;
  24. color: purple;}
  25. .b { margin: 2px 0px; border: 2px solid purple; font-weight: 17px; padding: 2px;
  26. background-color: lightblue; text-align: left; color: blue; }
  27. .c { padding: 0px; text-align: center; border: 1px dotted blue; border-collapse:collapse;
  28. background-color: lightblue; color: #B57B29;}
  29. .d {background-color: #E3E5E3; border-style: dotted; border-width: 1px; border-color: #B8C1B7; padding: 10px; padding-left: 35px; background-image: url('.$config_home.'/images/img/code.gif); background-repeat: repeat-y; font-size: 11px}
  30. input,select,textarea{ border: 2px dotted maroon; background-color: white; color: purple;}
  31. q {font-family: Times, serif; font-style: italic; color: gold;quotes: "\00AB" "\00BB"}
  32. </style>';
  33. echo '<meta name="keywords" content="'.$config_keywords.'" />';
  34. echo '<meta name="description" content="'.$config_description.'" />';
  35. echo '</head><body bgcolor="white" text="gray">';
  36. echo '<div class="a" id="up" align="center"><img src="'.$config_home.'/themes/new_year/snow1.gif" alt=""/> <img src="'.$config_logotip.'" alt=""/> <img src="'.$config_home.'/themes/new_year/snow1.gif" alt=""/></br>'.$config_logos.' </div>';
  37.  
  38. if($config_rekhead==1){include_once BASEDIR."local/datamain/reklama_head.dat";}
  39.  
  40. echo '<div>';
  41.  
  42. function htmltoxhtml($skinxhtml) {
  43. $skinxhtml = str_replace("images/img/act1.gif","themes/new_year/snow.gif",$skinxhtml);
  44. $skinxhtml = str_replace("images/img/act2.gif","themes/new_year/snow.gif",$skinxhtml);
  45. $skinxhtml = str_replace("images/img/act3.gif","themes/new_year/snow.gif",$skinxhtml);
  46. $skinxhtml = str_replace("images/img/act.gif","themes/new_year/snow.gif",$skinxhtml);
  47. $skinxhtml = str_replace("images/img/dir.gif","themes/new_year/snow.gif",$skinxhtml);
  48. $skinxhtml = str_replace("images/img/dir.gif","themes/new_year/snow.gif",$skinxhtml);
  49. $skinxhtml = str_replace("images/img/news.gif","themes/new_year/snow.gif",$skinxhtml);
  50. $skinxhtml = str_replace("images/img/panel.gif","themes/new_year/snow.gif",$skinxhtml);
  51. $skinxhtml = str_replace("images/img/smenu.gif","themes/new_year/snow.gif",$skinxhtml);
  52. $skinxhtml = str_replace("images/img/mail.gif","themes/new_year/snow.gif",$skinxhtml);
  53. $skinxhtml = str_replace("images/img/menu.gif","themes/new_year/snow.gif",$skinxhtml);
  54. $skinxhtml = str_replace("images/img/wel.gif","themes/new_year/snow.gif",$skinxhtml);
  55. $skinxhtml = str_replace("images/img/partners.gif","themes/new_year/corn.png",$skinxhtml);
  56. $skinxhtml = str_replace("images/img/newmail.gif","themes/new_year/snow.gif",$skinxhtml);
  57. $skinxhtml = str_replace("images/img/board.gif","themes/new_year/snow.gif",$skinxhtml);
  58. $skinxhtml = str_replace("images/img/vote.gif","themes/new_year/snow.gif",$skinxhtml);
  59. $skinxhtml = str_replace("images/img/act_home.gif","themes/new_year/snow.gif",$skinxhtml);
  60. $skinxhtml = str_replace("images/img/stat.gif","themes/new_year/snow.gif",$skinxhtml);
  61. $skinxhtml = str_replace("images/img/games.gif","themes/new_year/snow.gif",$skinxhtml);
  62. $skinxhtml = str_replace("images/img/faq.gif","themes/new_year/snow.gif",$skinxhtml);
  63. $skinxhtml = str_replace("images/img/custom.gif","themes/new_year/snow.gif",$skinxhtml);
  64. $skinxhtml = str_replace("images/img/gallery.gif","themes/new_year/snow.gif",$skinxhtml);
  65. $skinxhtml = str_replace("images/img/forums.gif","themes/new_year/snow.gif",$skinxhtml);
  66. $skinxhtml = str_replace("images/img/lock.gif","themes/new_year/snow.gif",$skinxhtml);
  67. $skinxhtml = str_replace("images/img/chat.gif","themes/new_year/snow.gif",$skinxhtml);
  68. $skinxhtml = str_replace("images/img/chel.gif","themes/new_year/snow.gif",$skinxhtml);
  69. $skinxhtml = str_replace("<br>","<br />",$skinxhtml);
  70. $skinxhtml = str_replace("<div class=a>","<div class=\"a\">",$skinxhtml);
  71. $skinxhtml = str_replace("<div class=b>","<div class=\"b\">",$skinxhtml);
  72. $skinxhtml = str_replace("<div class=c>","<div class=\"c\">",$skinxhtml);
  73. $skinxhtml = str_replace("alt=\"\">","alt=\"\" />",$skinxhtml);
  74. $skinxhtml = str_replace("checked>","checked=\"checked\" />",$skinxhtml);
  75. $skinxhtml = str_replace("selected>","selected=\"selected\">",$skinxhtml);
  76. $skinxhtml = str_replace("<hr>","<hr />",$skinxhtml);
  77. return $skinxhtml; }
  78. ob_start(htmltoxhtml);
  79. ?>