Вход Регистрация
Файл: news.php
Строк: 61
<?php
ini_set
('display_errors''off');
header ("Content-type: text/html; charset=utf-8");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-cache, must-relative");

print 
'<?xml version="1.0" encoding="utf-8"?>';
print 
"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">";
include "./ini.php";
mysql_query ("select * from bannedib WHERE ci='$ci' AND (ip = '".getenv(REMOTE_ADDR)."')and(browser = '".getenv(HTTP_USER_AGENT)."')");
                        if(
mysql_affected_rows()!=0){include "b.php";}

$login autorize();
if(
$login['fsize'] == "medium") { $fsize1 ""$fsize2 ""; }
elseif(
$login['fsize'] == "small") { $fsize1 "<small>"$fsize2 "</small>"; }
elseif(
$login['fsize'] == "big") { $fsize1 "<big>"$fsize2 "</big>"; }

print 
"<title>".$lang['news']."</title><link rel="StyleSheet" type="text/css" href="style/0".$s.".css"></head><body>";
print 
"<div style="text-aligncenter">
<div class="
contur_rek"><div class="header_rek">".$fsize1."&#x041D;&#x043E;&#x0432;&#x043E;&#x0441;&#x0442;&#x0438; &#x043D;&#x0430;&#x0448;&#x0435;&#x0433;&#x043E; &#x0447;&#x0430;&#x0442;&#x0430;".$fsize2."</div></div></div>";
print 
"<div style="text-alignleft"><div class="contur"><div class="header">";
if(
$login) {
    switch(
$mod) {

    case 
'view':

    
$q = @mysql_query("select * from `chat_news` where id='$newsid' and ci='$ci' order by id desc;");

    
$arr = @mysql_fetch_array($q);

    print 
"".$fsize1."<small><u>&#1053;&#1086;&#1074;&#1086;&#1089;&#1090;&#1100;:</u> ".$arr['text']."
    <br/><u>&#1057;&#1086;&#1086;&#1073;&#1097;&#1080;&#1083; &#1085;&#1086;&#1074;&#1086;&#1089;&#1090;&#1100;:</u> "
.$arr['otkogo']."</small>".$fsize2."";
    break;

    default:

    
$q = @mysql_query("select * from `chat_news` where ci='$ci' order by id desc;");

    while(
$arr = @mysql_fetch_array($q)) {
print 
"".$fsize1."<a href="news.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass&amp;newsid=".$arr['id']."&amp;mod=view">".$arr['title']."</a>".$fsize2."<br/>"; }
    break;
    }
    if(
$mod)
    print 
"<br/>".$fsize1."<a href="news.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass">&#1053;&#1086;&#1074;&#1086;&#1089;&#1090;&#1080;</a>".$fsize2."";
    print 
"</div></div><div class="contur_rek"><div class="header_rek">".$fsize1."<a href="./enter.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass">".$lang['holl']."</a>".$fsize2."</div></div><br/>";
    } else { print 
$lang['not_loged']; }
mysql_close();
ob_end_flush();
?>
</body></html>
Онлайн: 4
Реклама