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

Размер файла: 3.72Kb
<?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" />';

echo '<link rel="shortcut icon" href="'.$config['home'].'/themes/carbon/favicon.ico" />';echo '<link rel="alternate" type="application/rss+xml" title="RSS News" href="'.$config['home'].'/news/rss.php" />';echo '<meta name="keywords" content="%KEYWORDS%" />';echo '<meta name="description" content="%DESCRIPTION%" />';echo '<meta name="generator" content="Wap-Motor '.MOTOR_VERSION.'" />';
echo '<title>'.site_title($php_self).'</title>';

echo'<style type="text/css">
body { font-family: Calibri; font-size: 13px; margin: 2px; color: #FFF7FF;  
background: url('.$config_home.'/themes/carbon/bg.gif); background-color: #000000; }
a:link, a:visited { text-decoration: underline; color : #42F7CE }
a:hover { text-decoration: none; color : #31A584; position: relative; top: 1px; left: 1px; }
.a {padding: 0px; text-align: center; border: 1px solid #31A584;
background: url('.$config_home.'/themes/carbon/bg1.gif) repeat-x; font-size: 17px; color: #FF0000;} 
.b {margin: 2px 0px; border: 1px dotted #42F7CE; font-weight: bold; padding: 2px; 
background: url('.$config_home.'/themes/carbon/bg2.gif) repeat-x; text-align: left; color: #f00; }
.c {padding: 2px; text-align: center; border: 1px solid #31A584; border-collapse:collapse; 
background: url('.$config_home.'/themes/carbon/bg1.gif); color: #42F7CE;}
.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}
.form {color: #f00; padding : 3px; background: url('.$config_home.'/themes/carbon/bg1.gif); border: 1px dotted #4fc;}
.login {color: #f00; padding : 10px; margin : 10px 0 10px 0; background: url('.$config_home.'/themes/carbon/bg2.gif); border: 1px dotted #3a8;}
q {font-family: Times, serif;  font-style: italic; color: gold;quotes: "\00AB" "\00BB"}	
</style>
<meta name="keywords" content="'.$config_keywords.'">
<meta name="description" content="'.$config_description.'">
</head><body bgcolor="white" text="gray">';

echo '<div class="a" id="up"><img src="'.$config['logotip'].'" alt="image" /><br />'.$config['logos'].' </div>';if ($config['rekhead']==1){include_once DATADIR."datamain/reklama_head.dat";}include_once (BASEDIR."includes/isset.php");

echo '<div>';

function htmltoxhtml($skinxhtml) {
$skinxhtml = str_replace("images/img/act1.gif","themes/carbon/act1.gif",$skinxhtml);
$skinxhtml = str_replace("images/img/act2.gif","themes/carbon/act2.gif",$skinxhtml);
$skinxhtml = str_replace("images/img/act3.gif","themes/carbon/act3.gif",$skinxhtml);
$skinxhtml = str_replace("<br>","<br />",$skinxhtml);
$skinxhtml = str_replace("<div class=a>","<div class=\"a\">",$skinxhtml);
$skinxhtml = str_replace("<div class=b>","<div class=\"b\">",$skinxhtml);
$skinxhtml = str_replace("<div class=c>","<div class=\"c\">",$skinxhtml);
$skinxhtml = str_replace("alt=\"\">","alt=\"\" />",$skinxhtml);
$skinxhtml = str_replace("checked>","checked=\"checked\" />",$skinxhtml);
$skinxhtml = str_replace("selected>","selected=\"selected\">",$skinxhtml);
$skinxhtml = str_replace("<hr>","<hr />",$skinxhtml);
return $skinxhtml; }
ob_start(htmltoxhtml);
?>