Файл: chats/inc/tape.php
Строк: 373
<?php
//////////////////////////////////////////
// CHAT POWERED : http://sim-sim.h2m.ru//
// ICQ : 378036650 //
// Email : olegarhi75@mail.ru //
// WEB SITE Version 1.0 www.waufon.ru //
$text = filtr($text);
function filtr($msg)
{
$msg = trim($msg);
$msg = str_replace("'", "", $msg);
$msg = htmlspecialchars($msg);
$msg = addslashes($msg);
$msg = strip_tags($msg);
$msg = mysql_escape_string($msg);
return $msg;
}
$priv = filtr($priv);
if ( isset( $priv ) )
{
$priv = check( $priv );
}
$prizrak = filtr($prizrak);
if ( isset( $prizrak ) )
{
$prizrak = check( $prizrak );
}
////////////////////////////////////////
if ( $msg )
{
$msg = check( $msg );
if ( $translit == 1 )
{
$msg = trun_to_rus( $msg );
}
if ( isset( $usn ) )
{
$emotions = check($emotions);
$msg = "<b>".check($usn)."</b>, {$msg}";
}
if ( 6 < $row['level'] )
{
$msg = eregi_replace( "[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", "<a href="\0">\0</a>", $msg );
}
else
{
$msg = eregi_replace( "[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", "[<b>Хачу штоб Админы меня оттрахали я ебатсо хачу.</b>]", $msg );
}
require( "sm/convert_to_smiles.php" );
$mysm = "s".$id.".gif";
if ( file_exists( "prsm/{$mysm}" ) )
{
$msg = str_replace( ".my.", "<img src="prsm/{$mysm}" alt=".my."/>", $msg );
}
if ( $rm == 10 )
{
$r = mysql_query( "SELECT msg FROM intim WHERE id_from = '".$id."' order by id desc LIMIT 1" );
}
else
{
$r = mysql_query( "SELECT msg FROM mess WHERE id_from = '".$id."' order by id desc LIMIT 1" );
}
$a = mysql_fetch_array( $r );
if ( $emotions =="1" )
{
}
if($login && $emotions) $msg = "$emotions ".$msg."";
if($login && $bold) $msg = "<b>".$msg."</b>";
if($login && $underline) $msg = "<u>".$msg."</u>";
if($login && $blink) $msg = "<blink>".$msg."</blink>";
if($login && $italic) $msg = "<i>".$msg."</i>";
if($login && $big) $msg = "<big>".$msg."</big>";
if($login && $small) $msg = "<small>".$msg."</small>";
if ( $col == "1" )
{
$msg = "<span style="color:#13007D;">".$msg."</span>";
}
else if ( $col == "2" )
{
$msg = "<span style="color:#00FF00;">".$msg."</span>";
}
else if ( $col == "3" )
{
$msg = "<span style="color:#00FFFF;">".$msg."</span>";
}
else if ( $col == "4" )
{
$msg = "<span style="color:#800000;">".$msg."</span>";
}
else if ( $col == "5" )
{
$msg = "<span style="color:#FFFF00;">".$msg."</span>";
}
else if ( $col == "6" )
{
$msg = "<span style="color:#000000;">".$msg."</span>";
}
else if ( $col == "7" )
{
$msg = "<span style="color:#FF0000;">".$msg."</span>";
}
else if ( $col == "8" )
{
$msg = "<span style="color:#FF00FF;">".$msg."</span>";
}
else if ( $col == "9" )
{
$msg = "<span style="color:#FF6600;">".$msg."</span>";
}
else if ( $col == "10" )
{
$msg = "<span style="color:#800080;">".$msg."</span>";
}
else if ( $col == "11" )
{
$msg = "<span style="color:#FFFFFF;">".$msg."</span>";
}
else if ( $col == "12" )
{
$msg = "<span style="color:#8a2be2;">".$msg."</span>";
}
else if ( $col == "13" )
{
$msg = "<span style="color:#006400;">".$msg."</span>";
}
else if ( $col == "14" )
{
$msg = "<span style="color:#006666;">".$msg."</span>";
}
else if ( $col == "15" )
{
$msg = "<span style="color:olive;">".$msg."</span>";
}
else if ( $col == "16" )
{
$msg = "<span style="color:#FF9900;">".$msg."</span>";
}
else if ( $col == "17" )
{
$msg = "<span style="color:#666666;">".$msg."</span>";
}
else if ( $col == "18" )
{
$msg = "<span style="color:Bisque;">".$msg."</span>";
}
else if ( $col == "19" )
{
$msg = "<span style="color:#ff1493;">".$msg."</span>";
}
else if ( $col == "20" )
{
$msg = "<span style="color:gold;">".$msg."</span>";
}
//if ( $prizrak == "1" ){ $login = ""; }
//require( "avator.php" );
##############--Цвет ника--#########
if ( $login == "Кот" ) { $login = "</form><span style="background-color:blue; color:yellow">К</span><span style="background-color:blue;color:red">о</span><span style="background-color:blue;color:#00FF00">т</span>"; }if ( $ncol == "1" ){ $login = "<span style="color:#0000FF;">".$login."</span>";}else if ( $ncol == "2" ){ $login = "<span style="color:#00FF00;">".$login."</span>";}else if ( $ncol == "3" ){$login = "<span style="color:#00FFFF;">".$login."</span>";}else if ( $ncol == "4" ){$login = "<span style="color:#800000;">".$login."</span>";}else if ( $ncol == "5" ){ $login = "<span style="color:#FFFF00;">".$login."</span>";}else if ( $ncol == "6" ){ $login = "<span style="color:#000000;">".$login."</span>"; } else if ( $ncol == "7" ) { $login = "<span style="color:#FF0000;">".$login."</span>";}else if ( $ncol == "8" ){$login = "<span style="color:#FF00FF;">".$login."</span>";} if ( $ncol == "9" ){$login = "<span style="color:#FF6600;">".$login."</span>";}if ( $ncol == "10" ){$login = "<span style="color:#800080;">".$login."</span>";} if ( $ncol == "11" ){$login = "<span style="color:#FFFFFF;">".$login."</span>";}else if ( $ncol == "12" ){ $login = "<span style="color:#8a2be2;">".$login."</span>";}else if ( $ncol == "13" ){ $login = "<span style="color:#006400;">".$login."</span>";}else if ( $ncol == "14" ){ $login = "<span style="color:#006666;">".$login."</span>";}else if ( $ncol == "15" ){ $login = "<span style="color:olive;">".$login."</span>";}else if ( $ncol == "16" ){ $login = "<span style="color:#FF9900;">".$login."</span>";}else if ( $ncol == "17" ){ $login = "<span style="color:#666666;">".$login."</span>";}else if ( $ncol == "18" ){ $login = "<span style="color:Bisque;">".$login."</span>";}else if ( $ncol == "19" ){ $login = "<span style="color:#ff1493;">".$login."</span>";}else if ( $ncol == "20" ){ $login = "<span style="color:gold;">".$login."</span>";}
##############--ШРИФТ ника--#########
if ( $shrift == "1" ){ $login = "<font face=agency fb><b>".$login."</b></font>";}else if ( $shrift == "2" ){ $login = "<font face=algerian>".$login."</font>";}else if ( $shrift == "3" ){$login = "<font face=arial>".$login."</font>";}else if ( $shrift == "4" ){$login = "<font face =baskerville>".$login."</font>";}else if ( $shrift == "5" ){ $login = "<font face=broadway>".$login."</font>";}else if ( $shrift == "6" ){ $login = "<font face=calibri>".$login."</font>"; } else if ( $shrift == "7" ) { $login = "<font face=candara>".$login."</font>";}else if ( $shrift == "8" ){$login = "<font face=castellar>".$login."</font>";} else if ( $shrift == "9" ){$login = "<font face=centaur>".$login."</font>";}else if ( $shrift == "10" ){$login = "<font face=century>".$login."</font>";} else if ( $shrift == "11" ){$login = "<font face=chiller>".$login."</font>";}else if ( $shrift == "12" ){$login = "<font face=consolas>".$login."</font>";}else if ( $shrift == "13" ){$login = "<font face=constantia>".$login."</font>";}else if ( $shrift == "14" ){$login = "<font face=corbel>".$login."</font>";}else if ( $shrift == "15" ){$login = "<font face=corbel>".$login."</font>";}else if ( $shrift == "16" ){$login = "<font face=elephant>".$login."</font>";}else if ( $shrift == "17" ){$login = "<font face=forte>".$login."</font>";}else if ( $shrift == "18" ){$login = "<font face=garamond>".$login."</font>";}else if ( $shrift == "19" ){$login = "<font face=georgia>".$login."</font>";}else if ( $shrift == "20" ){$login = "<font face=gigi>".$login."</font>";}else if ( $shrift == "21" ){$login = "<font face=harrington>".$login."</font>";}else if ( $shrift == "22" ){$login = "<font face=impact>".$login."</font>";}else if ( $shrift == "23" ){$login = "<font face=jokerman>".$login."</font>";}else if ( $shrift == "24" ){$login = "<font face=mistral>".$login."</font>";}else if ( $shrift == "25" ){$login = "<font face=modern>".$login."</font>";}else if ( $shrift == "26" ){$login = "<font face=onyx>".$login."</font>";}else if ( $shrift == "27" ){$login = "<font face=papyrus>".$login."</font>";}else if ( $shrift == "28" ){$login = "<font face=perpetua>".$login."</font>";}else if ( $shrift == "29" ){$login = "<font face=playbill>".$login."</font>";}else if ( $shrift == "30" ){$login = "<font face=pristina>".$login."</font>";}else if ( $shrift == "31" ){$login = "<font face=promtimperial>".$login."</font>";}else if ( $shrift == "32" ){$login = "<font face=raavi>".$login."</font>";}else if ( $shrift == "33" ){$login = "<font face=ravie>".$login."</font>";}else if ( $shrift == "34" ){$login = "<font face=rockwell>".$login."</font>";}else if ( $shrift == "35" ){$login = "<font face=roman>".$login."</font>";}else if ( $shrift == "36" ){$login = "<font face=script>".$login."</font>";}else if ( $shrift == "37" ){$login = "<font face=shruti>".$login."</font>";}else if ( $shrift == "38" ){$login = "<font face=stencil>".$login."</font>";}else if ( $shrift == "39" ){$login = "<font face=symbol>".$login."</font>";}else if ( $shrift == "40" ){$login = "<font face=tahoma>".$login."</font>";}
###################################################
if ( $a['msg'] !== $msg )
{
$time = time( );
$posts = $row['posts'];
++$posts;
$prt = intval( $prt );
if ( $rm == 10 )
{
mysql_query( "Insert into intim set id=0, login='".$login."', msg='".$msg."', id_from='".$id."', id_to='{$prt}', wtime='".time( )."', pwd='".$pwd."'" );
}
else
{
mysql_query( "Insert into mess set id=0, login='".$login."', msg='".$msg."', id_from='".$id."', id_to='{$prt}', wtime='".time( )."', room='".$room."'" );
}
mysql_query( "Update users set posts='".$posts."' where id ='".$id."'" );
}
}
?>