File size: 2.02Kb
<?php
$t = microtime(1);
$result =mysql_query("SELECT status FROM cats");
while ($row = mysql_fetch_array($result)) {
$row["status"]=trim(mysql_real_escape_string(str_replace("`",'',stripslashes(htmlspecialchars($row["status"], ENT_QUOTES)))));
}
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>
';
if(isset($user))
{
echo'<meta http-equiv="Content-Type" content="application/vnd.wap.xhtml+xml; charset=UTF-8"/>
<link rel="shortcut icon" href="'.$HOME.'/style/'.output($user['theme']).'/favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" href="'.$HOME.'/style/'.output($user['theme']).'/style.css" type="text/css"/>
<meta http-equiv="Content-Type" content="application/vnd.wap.xhtml+xml; charset=UTF-8"/>
<title>Бесплатный сайт</title>
</head>
<body>
<div class="sll">
<div class="head"><div class="logo">LOGO.RU</div></div>
<div class="title">Добавь в закладки http://'.$_SERVER['HTTP_HOST'].'</div>
<div class="adv">
<a href="'.$HOME.'/cabinet.php">Каб</a>/
<a href="'.$HOME.'/exit.php">Вых</a>
</div>
';
}
else
{
echo'<meta http-equiv="Content-Type" content="application/vnd.wap.xhtml+xml; charset=UTF-8"/>
<link rel="shortcut icon" href="'.$HOME.'/style/default/favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" href="'.$HOME.'/style/default/style.css" type="text/css"/>
<meta http-equiv="Content-Type" content="application/vnd.wap.xhtml+xml; charset=UTF-8"/>
<title>Бесплатный сайт</title>
</head>
<body>
<div class="sll">
<div class="head"><div class="logo">LOGO.RU</div></div>
<div class="title">Добавь в закладки http://'.$_SERVER['HTTP_HOST'].'</div>
<div class="adv">
<a href="'.$HOME.'/auth.php">Вход</a>/
<a href="'.$HOME.'/reg.php">Регистрация</a>
</div>
';
}