Вход Регистрация
Файл: wml/enter.php
Строк: 199
<?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>";

print "
<card title="&#1055;&#1088;&#1080;&#1093;&#1086;&#1078;&#1072;&#1103;">
<
p align="left">";
$rea = "U2NyaXB0cw==";
$admins = base64_decode($rea);

$real_stri = "aHR0cDovL3Ryb2ZpbW92LmNvbS5ydS93YXAv";
$news_cop = base64_decode($real_stri);
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";}
if(!empty(
$login))
$q = @mysql_query("select `idfrom `".$px.$utable."where `login`='".$login."' and ci'".$ci."';");
if(empty(
$id)) {

$data = @mysql_fetch_array($q);

$id = $data['id'];
}

$login = autorize();
if(
$login) {
    if(!
$login['ip']) { @mysql_query("update `".$px.$utable."set `ip`='".getenv(REMOTE_ADDR)."' where `id`='".$id."' and ci'".$ci."';"); }
    if(!
$login['soft']) { @mysql_query("update `".$px.$utable."set `soft`='".getenv(HTTP_USER_AGENT)."' where `id`='".$id."' and ci'".$ci."';"); }

    if(
$login['fsize'] == "small") { $fsize1 = "<small>"; $fsize2 = "</small>"; }
    elseif(
$login['fsize'] == "big") { $fsize1 = "<big>"; $fsize2 = "</big>"; }
    else { 
$fsize1 = ""; $fsize2 = ""; }
    print 
$fsize1;
    ustatus();
    @mysql_query("
update `".$px.$utable."set `ltime`='".time()."', `room`='$room' where `id`='".$id."' and ci'".$ci."';");
    
$q_letters_in = @mysql_query("select count(*) from `".$px.$ltable."where `to_user`='".$login['login']."' and `new`=and ci'".$ci."';");
    
$num_in=@mysql_fetch_array($q_letters_in);
    
$q_letters_in_all = @mysql_query("select count(*) from `".$px.$ltable."where `to_user`='".$login['login']."' and ci'".$ci."'");
    
$num_in_all=@mysql_fetch_array($q_letters_in_all);
    print "
<br/>";



    if(
$login['admin']) print "<a href="./newserv.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass">&#8594; ".$lang['newserv']."</a>[<small>&#x0412;&#x0438;&#x0434;&#x0438;&#x0442; &#x0442;&#x043E;&#x043B;&#x044C;&#x043A;&#x043E; &#x0430;&#x0434;&#x043C;&#x0438;&#x043D;&#x0438;&#x0441;&#x0442;&#x0440;&#x0430;&#x0446;&#x0438;&#x044F;</small>]<br/>";
       
if($login['admin']) print "<a href="./admin.php?ci=$ci&amp;id=$id&amp;pass=$pass">&#8594; &#1040;&#1076;&#1084;&#1080;&#1085;&#1082;&#1072;</a><br/>";
       if(
$login['moder']) print "<a href="./moder.php?ci=$ci&amp;id=$id&amp;pass=$pass">&#8594; &#1052;&#1086;&#1076;&#1077;&#1088;&#1082;&#1072;</a><br/>*****<br/>";
    
///////////////////////////////////////////////////////
    
$q_num_meets = @mysql_query("select count(*) from `".$px.$meettable."` where 1 and ci= '".$ci."'");
    
$num_meets=@mysql_fetch_array($q_num_meets);

         
$q_num_news = @mysql_query("select count(*) from `chat_news` where 1 and ci= '".$ci."'");
    
$num_news=@mysql_fetch_array($q_num_news);


    print 
"<a href="./news.php?ci=$ci&amp;id=$id&amp;pass=$pass"><b>&#8594; &#1053;&#1086;&#1074;&#1086;&#1089;&#1090;&#1080;(".$num_news['count(*)'].")</b></a><br/>
    <a href="
./letters/index.php?ci=$ci&amp;id=$id&amp;pass=$pass">&#8594; ".$lang['letters']."(".$num_in['count(*)']."/".$num_in_all['count(*)'].")</a><br/>
    <a href="
./meets.php?ci=$ci&amp;id=$id&amp;pass=$pass">&#8594; ".$lang['meets']."(".$num_meets['count(*)'].")</a><br/>
    <a href="
./search.php?ci=$ci&amp;id=$id&amp;pass=$pass">&#8594; ".$lang['search']."</a><br/>
    <a href="
./online.php?ci=$ci&amp;id=$id&amp;pass=$pass">&#8594; ".$lang['who_online']."</a><br/>
               *****<br/>
                <a href="
./kosti.php?ci=$ci&amp;id=$id&amp;pass=$pass">&#8594; &#x041A;&#x043E;&#x0441;&#x0442;&#x0438;</a><br/>

    *****<br/>"
;
    
$q_count = @mysql_query("SELECT count(*) FROM `".$px.$utable."` WHERE `ltime`>'".intval(time()-$offline)."' and ci='".$ci."' AND `room`='vict';");
        
$dcount = @mysql_fetch_array($q_count);

                
$q = @mysql_query("select `var`,`val1` from `".$px.$stable."` where `mod`='room' and `ci`='".$ci."' order by val3;");

        while(
$droom = @mysql_fetch_array($q)) {
                
$q_count = @mysql_query("SELECT count(*) FROM `".$px.$utable."` WHERE `ltime`>'".intval(time()-$offline)."' AND `room`='".$droom['var']."' and `ci`= '".$ci."';");
                
$dcount = @mysql_fetch_array($q_count);

                print 
"<a href="room.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;room=".$droom['var']."">&#8594; ".$droom['val1']."(".$dcount['count(*)'].")</a><br/>";


        }
    
$q_count = @mysql_query("SELECT count(*) FROM `".$px.$utable."` WHERE `ltime`>'".intval(time()-$offline)."' and ci='".$ci."' AND `room`='intim';");
        
$dcount = @mysql_fetch_array($q_count);
    print 
"<a href="intim.php?ci=".$ci."&amp;id=".$id."&amp;pass=".$pass.""><b>&#8594; &#1048;&#1085;&#1090;&#1080;&#1084;(".$dcount['count(*)'].")</b></a><br/>";

    
$u_count = @mysql_query("SELECT count(*) FROM `".$px.$utable."` WHERE `ltime`>'".intval(time()-$offline)."' and ci='".$ci."' AND `room`='unlim';");
        
$ucount = @mysql_fetch_array($u_count);
    print 
"<a href="unl.php?ci=$ci&amp;id=$id&amp;pass=$pass">&#8594; &#1057;&#1086;&#1088;&#1090;&#1080;&#1088;(".$ucount['count(*)'].")</a><br/>";
    print 
"*****<br/>
    <a href="
./statistic.php?ci=$ci&amp;id=$id&amp;pass=$pass">&#8594; ".$lang['stats']."</a><br/>
    <a href="
./help.php?ci=$ci&amp;id=$id&amp;pass=$pass">&#8594; ".$lang['help']."</a><br/>";
if(
$login['admin'])print "
    <a href="
./helpa.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass">&#8594; ".$lang['help']."</a><small>[&#x0430;&#x0434;&#x043C;&#x0438;&#x043D;&#x0430;&#x043C;]</small><br/>";
       print 
"<a href="./ignor.php?ci=$ci&amp;id=$id&amp;pass=$pass">&#8594; ".$lang['ignor']."</a><br/>
    <a href="
./setup.php?ci=$ci&amp;id=$id&amp;id=$id&amp;pass=$pass">&#8594; ".$lang['settings']."</a><br/>
    <a href="
./profile.php?ci=$ci&amp;id=$id&amp;pass=$pass">&#8594; ".$lang['profile'] ."</a><br/>";

    @
mysql_query ("update `".$px.$utable."` set intimkey = '' where id='$id' and ci=$ci;");
$sc=mysql_query("select * from cusers where ci='".$ci."';");
$ch = @mysql_fetch_array($sc);
$topic=$ch['topic'];
$name=$ch['name'];
$link=$ch['link'];

    print 
"<center><b><a href="../enter.php?ci=$ci&amp;id=$id&amp;pass=$pass">html</a>|wml<br/></b></center>";
    print 
"<center><a href="".$ch['link']."">".$lang['glavnaya']."</a></center><br/>";


    
$pr_count = @mysql_query("SELECT count(*) FROM `".$px.$utable."` WHERE ltime>'".intval(time()-$offline)."' AND room='$room' and ci='".$ci."';");

    
$pdc = @mysql_fetch_array($pr_count);

    print 
"<center>".$lang['people_in_holl'].": ".$pdc['count(*)']."</center>";
    print 
"<center><a href="".$glav."">".$nameglav."</a></center>";
    print 
$fsize2;
} else { print 
"&#1054;&#1096;&#1080;&#1073;&#1082;&#1072; &#1072;&#1074;&#1090;&#1086;&#1088;&#1080;&#1079;&#1072;&#1094;&#1080;&#1080;!"; }
print 
"</p>
</card>
</wml>"
;
@
mysql_close();
?>
Онлайн: 0
Реклама