Файл: header.php
Строк: 110
<?
$agent2=$HTTP_ACCEPT;
$agent3=$HTTP_USER_AGENT;
//
function consumer3($agent3)
{
if (ereg("^Mozilla.*",$agent3)) return "oslik";
}
include ("func/ini.php");
//
$ie=consumer3($agent3);
if (ereg("application/vnd.wap.xhtml+xml",$agent2)){
$c_type = "application/vnd.wap.xhtml+xml";
} elseif (ereg("application/xhtml+xml",$agent2)) {
$c_type = "application/xhtml+xml";
} elseif (ereg("text/html",$agent2)) {
$c_type = "text/html";
}else{
$c_type = "text/vnd.wap.wml";
}
if ($ie=="oslik") {
$c_type = "text/html";
}
if ($t=="wml") {
$c_type = "text/vnd.wap.wml";
}
if ($t=="html") {
$c_type = "application/xhtml+xml";
}
//
if (empty($_SESSION['wap'])) {
if ($c_type=="text/vnd.wap.wml")
{
$_SESSION['wap']="xml";
}
else
{
$_SESSION['wap']="xml";
}
}
if (!empty($_GET['wap'])) { $_SESSION['wap']=$_GET['wap']; }
if ($_SESSION['wap']=="xml")
{
header("Content-type: application/xhtml+xml; charset=utf-8");
header("Cache-Control: no-cache");
echo '
<!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">
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8"/>
<meta http-equiv="Content-Style-Type" content="text/css"/>
<meta http-equiv="keywords" content="Партперская программа, Зароботок в сети, Заработок в интернете, Супер зароботок, Лучшая партнерка 2008 года!, Заработай свой первый миллион, Все деньги здесь, Заработай на своем сайте, Работаем без минималки!"/>
<link rel="shortcut icon" href="/icon.ico" />
<title>'.$title.'</title>
<style type="text/css">
body{
font-size: 10px;
background-color: #A7E289;
margin: 3px;
max-width:260px;
margin: 3px auto;
font-family: Arial;
color: #AAAAAA;
}a{ text-decoration: none; color: #007700;
}a:hover{ text-decoration: none; color : #ffffff;
background-color: #6aab50;
}div{
margin: 0px 0px 0px 0px;
padding: 0px 0px 0px 0px;
font-size: 10px;
}div.im{
margin: 0px;
font-size: 16px;
font-family: Papyrus;
border: 0px solid #ffc000;
background-color:#3D9D05;
text-align: center;
font-weight: normal;
}div.img{
margin: 0px;
font-size: 12px;
border: 0px solid #ffc000;
background-color:#3D9D05;
text-align: center;
font-weight: normal;
}.okcent{
padding: 2px 2px 2px 2px;
border-style: none solid none;
background-color: #ffffff;
border-width: 5px;
border-color: #3D9D05;
}div.gif{
margin: 0px;
font-size: 10px;
border: 0px solid #ffc000;
text-align: left;
font-weight: normal;
}div.ten{
margin: 1px;
font-size: 10px;
border: 1px solid #6aab50;
text-align: left;
font-weight: normal;
}input.ibutton {
color: #fff;
background-color: #6aab50;
border-top: 1px solid black;
border-left: 1px solid black;
border-right: 1px solid black;
border-bottom: 1px solid black;
padding: 2px;
}
</style>
</head>
<body>';
include ("func/tags.php");
}
else
{
header("Content-type: text/vnd.wap.wml; charset=utf-8");
header("Cache-Control: no-cache");
echo '<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="main" title=".:Traffiky.net:."><p align="left"><small>';
}
?>