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

header 
("Content-type:text/vnd.wap.wml; charset=utf-8");

print 
"<?xml version="1.0" encoding="utf-8"?>";
print 
'<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"'.
' "http://www.wapforum.org/DTD/wml_1.1.xml">'.
'<wml><head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>';

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 
'<card title="&#1053;&#1086;&#1074;&#1086;&#1089;&#1090;&#1080; &#1095;&#1072;&#1090;&#1072;">'.
'<p>';
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 
"<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>";
    break;
    
    default:
    
    
$q = @mysql_query("select * from `chat_news` where ci='$ci' order by id desc;");
    
    while(
$arr = @mysql_fetch_array($q)) {
print 
"<a href="news.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;newsid=".$arr['id']."&amp;mod=view">".$arr['title']."</a><br/>"; }
    break;
    }
    if(
$mod)
    print 
"<br/><a href="news.php?ci=$ci&amp;id=$id&amp;pass=$pass">&#1053;&#1086;&#1074;&#1086;&#1089;&#1090;&#1080;</a>";
    print 
"<br/><a href="./enter.php?ci=$ci&amp;id=$id&amp;pass=$pass">".$lang['holl']."</a><br/>";
    } else { print 
$lang['not_loged']; }
mysql_close();
ob_end_flush();
?>
</p>
</card>
</wml>
Онлайн: 0
Реклама