Вход Регистрация
Файл: newserv.php
Строк: 70
<?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();

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."".$lang['newserv']."".$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_newserv` where id='$newsid' and ci='0' order by id desc;");

    
$arr = @mysql_fetch_array($q);

    print 
"".$fsize1."<small><u>Новость:</u> ".$arr['text']."
    <br/><u>Сообщил:</u> "
.$arr['otkogo']."</small>".$fsize2."";
    break;

    default:

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

    while(
$arr = @mysql_fetch_array($q)) {
print 
"".$fsize1."<a href="newserv.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="newserv.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass">&#1053;&#1086;&#1074;&#1086;&#1089;&#1090;&#1080;</a>";
    print 
"</div></div><div class="contur_rek"><div class="header_rek"><a href="./enter.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass">".$lang['holl']."</a>".$fsize2."</div></div><br/>";
    } else {
    switch(
$mod) {

    case 
'view':

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

    
$arr = @mysql_fetch_array($q);

    print 
"".$fsize1."<u>Новость:</u> ".$arr['text']."
    <br/><u>Сообщил:</u> "
.$arr['otkogo']."".$fsize2."";
    break;

    default:

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

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