Вход Регистрация
Файл: region_clean/view_obiav.php
Строк: 52
<?
#######################################
## Mod By KoT (borispol) [76-75-072] ##
#######################################

require_once "start.php";
require_once 
"sid.php";

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

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

$mid intval($mid);
$q mysql_query("select * from obiav where id='".$mid."' order by id desc;");
$arr mysql_fetch_array($q);
$title $arr['title'];
$chit $arr['chit'];
$mchit $chit 1;
$mchit intval($mchit);
mysql_query("update `obiav` set chit='".$mchit."' WHERE `id` = '".$mid."'");

if (
$ver == "wml") {
echo 
$xml;
echo 
$dtd;
echo 
"<wml>n
      <card title="".
$title."">n
      <p align="
left">n";
} else {
echo 
"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      
<html xmlns="http://www.w3.org/1999/xhtml">
      <
head><link rel="stylesheet" type="text/css" href="css/$css.css"/>
      <
title>".$title."</title>
      <
meta http-equiv="Content-Type" content="text/html; charset=utf-8"/></head><body>
      <
div align="left">n";
}

echo 
$fsize1;
if (
$arr['dlja'] == 1  and $row['level'] <= 5) {
echo 'Это объявление только для Администрации!<br/>';
} else {
echo '<u>Содержание:</u> ' . 
$arr['content'];
echo '<br/><u>Разместил:</u> ' . col_n(
$arr['login']) . '<br/>';
$mid = intval($mid);
$arr2['id'] = intval($arr2['id']);
$q2 = mysql_query("select from obiav where id='$mid' order by id desc;");
$arr2 = mysql_fetch_array($q2);
$chit = $arr2['chit'];
echo '<font color="
#ff0000"><small>Прочитанно: ' . $chit . ' раз(а).</small></font><br/>';
$koms mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM `obiavkom` WHERE mid = '".$arr2['id']."'"));
echo 
"<a href="obiavkom.php?$ses&amp;mid=".$arr2['id']."">Комментарии</a>(".$koms[0].")<br/>n";
}
if (
$row['level'] >= 7) {
echo 
"<a href="apanel.php?$ses&amp;mid=$mid&amp;go=setob$takep">[Изм]</a><br/>";
}

echo 
$divide;
echo 
"<a href="enter.php?$ses&amp;ref=$ref">Прихожая</a><br/>";
echo 
$fsize2;
include_once 
"foot.php";
?>
Онлайн: 0
Реклама