Файл: test.masteram.us/style/themes/lite/head.php
Строк: 29
<?
$set['web']=false;
session_start();
if (!isset($_COOKIE['v']))
setcookie('v','html',time()+86400,'/');
if ($_GET['v'] == 'wml'){
setcookie('v','wml',time()+1000000,'/');
header('Location: ?');
exit;
}
if ($_GET['v'] == 'html'){
setcookie('v','html',time()+1000000,'/');
header('Location: ?');
exit;
}
if ($_COOKIE['v']=='html'){
header("Content-type: text/html");
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>
<title>'.$set['title'].'</title>
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="stylesheet" href="/style/themes/'.$set['set_them'].'/style.css" type="text/css" />
<link rel="stylesheet" href="/style/css/cross.css" type="text/css" />
<link rel="stylesheet" href="/style/css/ny.css" type="text/css" />
</head>
<body>';
}else{
header("Content-type: text/html");
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>
<title>'.$set['title'].'</title>
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="stylesheet" href="/style/themes/'.$set['set_them'].'/wml.css" type="text/css" />
</head>
<body>';
}
?>