Вход Регистрация
Файл: united2.inc.php
Строк: 182
<?php
if ($room == "intim"){
    print 
"<small>".$fsize1."<u><b>&#1047;&#1076;&#1077;&#1089;&#1100; &#1089;&#1077;&#1081;&#1095;&#1072;&#1089;:</u>".$fsize2." ";
    
$hq = @mysql_query("select `login` from `".$px.$utable."` where ltime>'".intval(time()-$offline)."' and `intimkey`='$key' and ci='$ci' and room='intim' order by ltime desc;;");
    while(
$keydata = @mysql_fetch_array($hq)) {
        
$zd $keydata['login'];
    print 
"$zd,";
    }

print 
''.$fsize1.'<div class="contur_rek"><div class="header_rek">small><a href="./united.php?s='.$s.'&amp;ci='.$ci.'&amp;id='.$id.'&amp;pass='.$pass.'&amp;key='.$key.'&amp;room='.$room.'&amp;r='.$r.'">&#1054;&#1073;&#1085;&#1086;&#1074;&#1080;&#1090;&#1100;</a>'.$fsize2.'';
}else{
    print 
'<div class="contur_rek"><div class="header_rek">'.$fsize1.'<a href="./united.php?s='.$s.'&amp;ci='.$ci.'&amp;id='.$id.'&amp;pass='.$pass.'&amp;room='.$room.'&amp;r='.$r.'">&#1054;&#1073;&#1085;&#1086;&#1074;&#1080;&#1090;&#1100;</a>'.$fsize2.'';
    }
@
mysql_query("DELETE FROM `".$px.$ltable."` WHERE `time` < ".(time() - 10*24*3600)." and ci='$ci';");
$q_letters_in = @mysql_query("select * from `".$px.$ltable."` where to_user='".$login['login']."' and ci='$ci' and new=1;");
$q_letters_to = @mysql_query("select * from `".$px.$ltable."` where from_user='".$login['login']."' and ci='$ci';");
$num_in = @mysql_num_rows($q_letters_in);
$num_to = @mysql_num_rows($q_letters_to);
print 
" ".$fsize1."| <a href="./letters/index.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass">".$lang['letters']."($num_in/$num_to)</a> |
       <a href="
./online.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass">".$lang['who_online']."</a> |
       <a href="
./faq.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass">".$lang['faq']."</a>".$fsize2."</div></div>";




if (
$room == "intim"){
print 
'<form action="united.php?s='.$s.'&amp;ci='.$ci.'&amp;id='.$id.'&amp;pass='.$pass.'&amp;room='.$room.'&amp;r='.$r.'" method="post">';
}else {
    print 
'<form action="united.php?s='.$s.'&amp;ci='.$ci.'&amp;id='.$id.'&amp;pass='.$pass.'&amp;room='.$room.'&amp;r='.$r.'" method="post">';
    }
print 
'<input type="text" class="do_button" name="msg" maxlength="1000"/>'.
'<input type="submit" class="button" value="'.$lang['say'].'"></form><div class="contur"><div class="header">';

$ignor "";
$qi = @mysql_query("select * from `".$px.$itable."` where loginid=".$login['id']." and ci='$ci';");
while(
$idata = @mysql_fetch_array($qi)) {
$ignor "".$idata['user']."";
}
if (
$ignor == "");
(
$ignor == "1");

if (
$act== "dell"){
        if(@
mysql_query("delete from `".$px.$unitable."` where `id`='$mid' ")) print $lang['dellmess'];
        else print 
$lang['errormess'];}

if(
$room=="vict") {
if(
$mod=="privat")
$que = @mysql_query("SELECT `login`,`msg`,`time`,`pr_to`,`pr_from` from `".$px.$vtable."` WHERE login != '".$ignor."' and ci= '$ci' and (pr_to=".$login['id']." or pr_from=".$login['id'].")  order by id desc limit $num_msgs;");
else
$que = @mysql_query("SELECT `login`,`msg`,`time`,`pr_to`,`pr_from` from `".$px.$vtable."` WHERE ((pr_to = '' AND pr_from = '') OR (pr_from = '".$login['id']."' OR pr_to = '".$login['id']."')) and login != '".$ignor."' and ci= '$ci' order by id desc limit $num_msgs;");
}else{
if(
$mod=="privat")
$que = @mysql_query("SELECT `login`,`msg`,`time`,`pr_to`,`pr_from` from `".$px.$mtable."` WHERE  room = '$room' and login != '".$ignor."' and ci= '$ci' and (pr_to=".$login['id']." or pr_from=".$login['id'].") order by time desc limit $num_msgs;");
else
$que = @mysql_query("SELECT `login`,`msg`,`time`,`pr_to`,`pr_from` from `".$px.$mtable."` WHERE  ((pr_to = '' AND pr_from = '') OR (pr_from = '".$login['id']."' OR pr_to = '".$login['id']."')) and room = '$room' and ci= '$ci' and login != '".$ignor."'   order by time desc limit $num_msgs;");
}
if (
$room=="united"){
if(
$mod=="privat")
$que = @mysql_query("SELECT `id`,`login`,`msg`,`time`,`pr_to`,`pr_from` from `".$px.$unitable."` WHERE  login != '".$ignor."' and (pr_to=".$login['id']." or pr_from=".$login['id'].") order by time desc limit $num_msgs;");
else
$que = @mysql_query("SELECT * from `".$px.$unitable."` WHERE  ((pr_to = '' AND pr_from = '') OR (pr_from = '".$login['id']."' OR pr_to = '".$login['id']."')) and login != '".$ignor."'   order by time desc limit $num_msgs;");
}
if (
$room=="intim") {
    
$que = @mysql_query("SELECT `login`,`msg`,`time`  from `".$px.$prtable."` WHERE   ci= '$ci' and `key`='$key'  order by time desc limit $num_msgs;");
    }

$pr_to 0;
$pr_from 0;
while(
$m = @mysql_fetch_array($que)) {
$dbchat $m['ci'];
$nikcolor $m['color'];
$dblogin $m['login'];
$dbmsg $m['msg'];
$idmess $m['id'];
$dbtime = ($m['time']);
if (
$room == "intim"){
$pr_to == "";
$pr_from == "";
} else {
$pr_to $m['pr_to'];
$pr_from $m['pr_from'];}
$dbmsg str_replace("http://","[реклама]",$dbmsg);
$dbmsg str_replace(".ru","[реклама]",$dbmsg);
$dbmsg str_replace(".com","[реклама]",$dbmsg);
$dbmsg str_replace(".wen","[реклама]",$dbmsg);
$dbmsg str_replace(".wab","[реклама]",$dbmsg);
$dbmsg str_replace(".kmx","[реклама]",$dbmsg);
$dbmsg str_replace(".net","[реклама]",$dbmsg);
$dbmsg str_replace(".su","[реклама]",$dbmsg);
$dbmsg str_replace("<a href=","[реклама]",$dbmsg);
$dbmsg str_replace("`","[реклама]",$dbmsg);
$dbmsg str_replace("'","[реклама]",$dbmsg);
$query_users = @mysql_query("select * from `".$px.$utable."` where login='".$dblogin."';");
$data = @mysql_fetch_array($query_users);
$qdblogin = @mysql_query("select `id` from `".$px.$utable."` where `login`='$dblogin'");
$db = @mysql_fetch_array($qdblogin);
if(
$data['sex']=="zh") { $sex "<img src='/images/pol_0.gif' alt='Ж'>"; } else { $sex "<img src='/images/pol_1.gif' alt='М'>"; }
if(!empty(
$pr_to)&&!empty($pr_from)){
if(
$login['zmoder']>0) print "".$fsize1."[<a href="united.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass&amp;room=$room&amp;r=$r&amp;act=dell&amp;mid=$idmess">x</a>]".$fsize2."";
 print 
"".$fsize1."$sex<a href="unuser.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass&amp;room=$room&amp;dbid=".$db['id']."&amp;r=$r&amp;mod=$mod">";
?><SCRIPT language=JavaScript>
gradient("<?echo "$dblogin";?>","<?echo "".$data['color'].", ".$data['color2'].", ".$data['color3']."";?>");
</SCRIPT><?echo "</a><font style="color#FF0000; font-weight: bold;">[приват]</font><font style="color: #FAA134; font-weight: bold">[Чат$dbchat][".date("H:i:s",$dbtime)."]</font>".$dbmsg."".$fsize2."<br/>";
}else{
if (
$room == "intim"){
if(
$login['zmoder']>0) print "".$fsize1."[<a href="united.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass&amp;room=$room&amp;r=$r&amp;act=dell&amp;mid=$idmess">x</a>]".$fsize2."";
    print 
"".$fsize1."$sex<a href="./unuser.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass&amp;key=$key&amp;room=$room&amp;dbid=".$db['id']."&amp;r=$r">";?><SCRIPT language=JavaScript>
gradient("<?echo "$dblogin";?>","<?echo "".$data['color'].", ".$data['color2'].", ".$data['color3']."";?>");
</SCRIPT><?echo "</a><font style="color#FAA134; font-weight: bold">[Чат$dbchat][".date("H:i:s",$dbtime)."]</font>".$dbmsg."".$fsize2."<br/>";
    
}else{
if(
$login['zmoder']>0) print "".$fsize1."[<a href="united.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass&amp;room=$room&amp;r=$r&amp;act=dell&amp;mid=$idmess">x</a>]".$fsize2."";
print 
"".$fsize1."$sex<a href="./unuser.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass&amp;room=$room&amp;dbid=".$db['id']."&amp;&amp;mid=".$idmess."&amp;r=$r">";?><SCRIPT language=JavaScript>
gradient("<?echo "$dblogin";?>","<?echo "".$data['color'].", ".$data['color2'].", ".$data['color3']."";?>");
</SCRIPT><?echo "</a><font style="color#FAA134; font-weight: bold">[Чат$dbchat][".date("H:i:s",$dbtime)."]</font>".$dbmsg."".$fsize2."<br/>";
}}}
if(
$mod=="privat")
print 
"<br/><div class="smain">".$fsize1."<a href="./unhistory.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass&amp;room=$room&amp;start=$num_msgs&amp;&amp;mod=$mod&amp;r=$r">&#1048;&#1089;&#1090;&#1086;&#1088;&#1080;&#1103;</a>".$fsize2."</div>";
?>
Онлайн: 3
Реклама