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

Размер файла: 7.56Kb
<?php
if (strtok($_SERVER['HTTP_USER_AGENT'],'/')!="Mozilla") {
header("Content-type:application/vnd.wap.xhtml+xml; charset=utf-8");
}else{
header("Content-type:text/html; charset=utf-8");}
echo '<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru">
<head>
<meta http-equiv="Content-Type" content="application/vnd.wap.xhtml+xml; charset=UTF-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<link rel="shortcut icon" href="'.$config_home.'/themes/blue/site/favicon.ico" />';

if($config_rssicon==1){echo '<link rel="alternate" type="application/rss+xml" title="RSS" href="'.$config_home.'/news/rss_news.php" />';}

echo '<title>'.site_title($php_self).'</title>
<style type="text/css">
body { font-family: Calibri; font-size: 13px; margin: 2px; color: #FFFFFF;  
background: url('.$config_home.'/themes/blue/bg/bg.png); background-color: #FFFFFF; }
a:link, a:visited { text-decoration: underline; color : #CCCCCC }
a:hover { text-decoration: none; color : #FFFFFF; position: relative; top: 1px; left: 1px; }
.a {padding: 0px; text-align: center; border: 1px solid #CCCCCC; 
background: url('.$config_home.'/themes/blue/bg/bg1.gif); font-size: 17px; 
color: #CCCCCC;} 
.b { margin: 2px 0px; border: 1px dotted #3858CC; font-weight: bold;  padding: 2px;  
background: url('.$config_home.'/themes/blue/bg/bg2.png) repeat-x;  text-align: left; color: #FF0000; }
.c { padding: 0px; text-align: center; border: 1px solid #CCCCCC; border-collapse:collapse;
background: url('.$config_home.'/themes/blue/bg/bg1.gif); color: #CCCCCC;}
.d {background-color: #E2A58C; 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}
input,select,textarea{ border: 1px solid #000000; background-color: #CCCCCC; color: #000000;}
q {font-family: Times, serif;  font-style: italic; color: gold;quotes: "\00AB" "\00BB"}
</style>';
echo '<meta name="keywords" content="'.$config_keywords.'" />';
echo '<meta name="description" content="'.$config_description.'" />';
echo '</head><body bgcolor="white" text="gray">';
echo '<div class="a" id="up"><img src="'.$config_home.'/themes/blue/bg/logo.png" alt="" /></div>';

if($config_rekhead==1){include_once BASEDIR."local/datamain/reklama_head.dat";}

echo '<div>';

function myhtml($myhtml) {
$myhtml = str_replace("<img src=\"../smiles/","<img src=\"../images/smiles/",$myhtml);
$myhtml = str_replace("images/img/act1.gif","themes/blue/img/act.png",$myhtml);
$myhtml = str_replace("images/img/act2.gif","themes/blue/img/act.png",$myhtml);
$myhtml = str_replace("images/img/act3.gif","themes/blue/img/act.png",$myhtml);
$myhtml = str_replace("<b>"," ",$myhtml);
$myhtml = str_replace("</b>"," ",$myhtml);
$myhtml = str_replace("images/img/act.gif","themes/blue/img/act.png",$myhtml);
$myhtml = str_replace("images/img/homepage.gif","themes/blue/img/act.png",$myhtml);
$myhtml = str_replace("images/img/act_home.gif","themes/blue/img/act.png",$myhtml);
$myhtml = str_replace("images/img/back.gif","themes/blue/img/act.png",$myhtml);
$myhtml = str_replace("images/img/reload.gif","themes/blue/img/act.png",$myhtml);
$myhtml = str_replace("images/img/exit.gif","themes/blue/img/act.png",$myhtml);
$myhtml = str_replace("images/img/chel.gif","themes/blue/img/chel.png",$myhtml);
$myhtml = str_replace("images/img/rss.gif","themes/blue/img/act.png",$myhtml);
$myhtml = str_replace("images/img/panel.gif","themes/blue/img/act.png",$myhtml);
$myhtml = str_replace("images/img/mail.gif","themes/blue/img/act.png",$myhtml);
$myhtml = str_replace("images/img/mail2.gif","themes/blue/img/act.png",$myhtml);
$myhtml = str_replace("images/img/error.gif","themes/blue/img/act.png",$myhtml);
$myhtml = str_replace("images/img/stat.gif","themes/blue/img/act.png",$myhtml);
$myhtml = str_replace("images/img/many.gif","themes/blue/img/act.png",$myhtml);
$myhtml = str_replace("images/img/person.gif","themes/blue/img/act.png",$myhtml);
$myhtml = str_replace("images/img/partners.gif","themes/blue/img/partn.png",$myhtml);
$myhtml = str_replace("images/img/profiles.gif","themes/blue/img/partn.png",$myhtml);
$myhtml = str_replace("images/img/menu.gif","themes/blue/img/partn.png",$myhtml);
$myhtml = str_replace("images/img/mails.gif","themes/blue/img/partn.png",$myhtml);
$myhtml = str_replace("images/img/search.gif","themes/blue/img/act.png",$myhtml);
$myhtml = str_replace("images/img/motors.gif","themes/blue/img/partn.png",$myhtml);
$myhtml = str_replace("images/img/online.gif","themes/blue/img/act.png",$myhtml);
$myhtml = str_replace("images/img/faq.gif","themes/blue/img/act.png",$myhtml);
$myhtml = str_replace("images/img/forums.gif","themes/blue/img/file.png",$myhtml);
$myhtml = str_replace("images/img/files.gif","themes/blue/img/file.png",$myhtml);
$myhtml = str_replace("images/img/dir.gif","themes/blue/img/dir.png",$myhtml);
$myhtml = str_replace("images/img/opendir.gif","themes/blue/img/dir.png",$myhtml);
$myhtml = str_replace("images/img/top20_dir.gif","themes/blue/img/dir.png",$myhtml);
$myhtml = str_replace("images/img/new_dir.gif","themes/blue/img/dir.png",$myhtml);
$myhtml = str_replace("images/img/new.gif","themes/blue/img/act.png",$myhtml);
$myhtml = str_replace("images/img/new1.gif","themes/blue/img/act.png",$myhtml);
$myhtml = str_replace("images/img/new2.gif","themes/blue/img/act.png",$myhtml);
$myhtml = str_replace("images/img/new3.gif","themes/blue/img/act.png",$myhtml);
$myhtml = str_replace("images/img/zakr.gif","themes/blue/img/zakr.png",$myhtml);
$myhtml = str_replace("images/img/lock.gif","themes/blue/img/lock.png",$myhtml);
$myhtml = str_replace("images/img/close.gif","themes/blue/img/zakr.png",$myhtml);
$myhtml = str_replace("images/img/open.gif","themes/blue/img/lock.png",$myhtml);
$myhtml = str_replace("images/img/themes.gif","themes/blue/img/chat.png",$myhtml);
$myhtml = str_replace("images/img/chat.gif","themes/blue/img/act.png",$myhtml);
$myhtml = str_replace("images/img/edit.gif","themes/blue/img/file.png",$myhtml);
$myhtml = str_replace("images/img/edit2.gif","themes/blue/img/file.png",$myhtml);
$myhtml = str_replace("images/img/anonim.gif","themes/blue/img/anonim.png",$myhtml);
$myhtml = str_replace("images/img/security.gif","themes/blue/img/security.png",$myhtml);
$myhtml = str_replace("images/img/women.gif","themes/blue/img/women.png",$myhtml);
$myhtml = str_replace("images/img/down.gif","themes/blue/img/down.png",$myhtml);
$myhtml = str_replace("images/img/rating0.gif","themes/blue/img/raiting0.png",$myhtml);
$myhtml = str_replace("images/img/rating1.gif","themes/blue/img/raiting1.png",$myhtml);
$myhtml = str_replace("images/img/rating2.gif","themes/blue/img/raiting2.png",$myhtml);
$myhtml = str_replace("images/img/rating3.gif","themes/blue/img/raiting3.png",$myhtml);
$myhtml = str_replace("images/img/rating4.gif","themes/blue/img/raiting4.png",$myhtml);
$myhtml = str_replace("images/img/rating5.gif","themes/blue/img/raiting5.png",$myhtml);
$myhtml = str_replace("images/img/rating6.gif","themes/blue/img/raiting6.png",$myhtml);
$myhtml = str_replace("images/img/rating7.gif","themes/blue/img/raiting7.png",$myhtml);
$myhtml = str_replace("images/img/rating8.gif","themes/blue/img/raiting8.png",$myhtml);
$myhtml = str_replace("images/img/rating9.gif","themes/blue/img/raiting9.png",$myhtml);
$myhtml = str_replace("images/img/rating10.gif","themes/blue/img/raiting10.png",$myhtml);

return $myhtml; }
ob_start(myhtml);
?>