Вход Регистрация
Файл: vstrechi.php
Строк: 62
<?

header
('Cache-Control: no-store, no-cache, must-revalidate');    // HTTP/1.1
if ($ver=="wml")header ("Content-type:text/vnd.wap.wml; charset=utf-8");
else 
header("Content-Type:text/html; charset=UTF-8");

require(
"inc.php"); 
$link connect_db();
list(
$row$id$ps$fsize1$fsize2) = check_login($link); 
require(
"version.php");

$mid intval($mid);

switch(
$mod) {

case 
'meet':
$q=@mysql_query("select title,content,organizatory,login from vstrechi where id='$mid';");
$arr=@mysql_fetch_array($q);
if (
$ver=="wml"){
echo 
$xml;
echo 
$dtd;
echo 
"<wml>n";
echo 
"<card title="".$arr['title']."">n";
echo 
"<p align="center">n";
}else{
echo 
"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">";
echo "<html xmlns="http://www.w3.org/1999/xhtml">";
echo "<head><link rel="stylesheet" type="text/css" href="css/css.css"/>";
echo 
"<title>".$arr['title']."</title>";
echo 
"<meta http-equiv="Content-Type" content="text/htmlcharset=utf-8"/></head><body>";
echo 
"<div align="center">";
}
        echo 
$fsize1;
        echo 
"<b> ".$arr['title'];
        echo 
"</b><br/>".$arr['content'];
        echo 
"<br/><b>Организаторы:</b> ".$arr['organizatory'];
        echo 
"<br/><b>Разместил(a):</b> ".$arr['login'];
        echo 
"<br/>";
        echo 
$fsize2;
break;


default:
if (
$ver=="wml"){
echo 
$xml;
echo 
$dtd;
echo 
"<wml>n";
echo 
"<card title="($t)Встречи">n";
echo 
"<p align="center">n";
}else{
echo 
"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">";
echo "<html xmlns="http://www.w3.org/1999/xhtml">";
echo "<head><link rel="stylesheet" type="text/css" href="css/css.css"/>";
echo 
"<title>($t)Встречи</title>";
echo 
"<meta http-equiv="Content-Type" content="text/htmlcharset=utf-8"/></head><body>";
echo 
"<div align="center">";
}
echo 
$fsize1;
$q=mysql_query("select id,title from vstrechi order by id desc;");
if (
mysql_affected_rows() == 0) {
echo 
"Встреч нет(<br/>";
}
while(
$arr=mysql_fetch_array($q)) {
echo 
"<a href="vstrechi.php?$ses&amp;mid=".$arr['id']."&amp;mod=meet&amp;ref=$ref">".$arr['title']."</a><br/>"
}
echo 
$fsize2;
break;
}
echo 
$fsize1;
echo 
$divide;
if(
$mod) {
echo 
"<a href="vstrechi.php?$ses&amp;ref=$ref">&#8592; Встречи</a><br/>";
}
echo 
"<a href="cabinet.php?$ses&amp;ref=$ref">&#8592; Личное</a><br/>";
echo 
"<a href="enter.php?$ses&amp;ref=$ref">&#8592; На улицу</a>";
echo 
$fsize2;
if (
$ver=="wml")echo "</p></card></wml>";
else echo 
"</div></body></html>";
mysql_close($link);
?>
Онлайн: 1
Реклама