Просмотр файла wapp_antifront.com/chat/add.php

Размер файла: 2.52Kb
<? 


$time=time();


if($mess!=""){


if($mat[$nr]=="on"){
$ss = @file("$rek/mat.txt");
$strok = sizeof($ss);
$x=0;
while($x<=$strok){
$textm=@file("$rek/mat.txt");
$mte[$x]=trim($textm[$x]);
$mtez[$x]="(---)";
$x=$x+1;}
$mess=str_replace($mte,$mtez,$mess);

}

if($trans=="yes"){
include 'artran.php';
$mess=str_replace($trans1,$trans2,$mess);
}

$mess=htmlspecialchars(stripslashes($mess));

include 'arsmile.php';
$mess=str_replace($conv1,$conv2,$mess);

if($trans=="yes"){
$mess=str_replace($trans2,$trans3,$mess);
}

$provfl=@file("$rek/$nr.rum");
$provfl=explode(":||:",$provfl[0]);
$provfl=trim($provfl[4]);
if($mess==$provfl){$mess="";}



if($mess!=""){
if($tips!="lich"){
if($tips==""){$tips="vs";}
$textzap[0]="$tips:||:$login:||:$obr:||:$time:||:$mess\r\n";
$textzap[0]=str_replace("$","$$",$textzap[0]);
$h=0;
$rs=1;
while($h<=$kme){
$text=@file("$rek/$nr.rum");
$textzap[$rs]=$text[$h];
$h=$h+1;
$rs=$rs+1;}

$fp=@fopen("$rek/$nr.rum","w");
@fputs($fp,"");
@fclose($fp);
@chmod ("$rek/$nr.rum", 0777);

$rs=0;
while($rs<=$kme){
$fp=@fopen("$rek/$nr.rum","a");
@fputs($fp,"$textzap[$rs]");
@fclose($fp);
$rs=$rs+1;}

$ksoc=$ksoc+1;
$textrek="$login:||:$pas:||:$sex:||:$let:||:$zhivet:||:$osebe:||:$orent:||:$mail:||:$sajt:||:$zvanie:||:$forst:||:$ksoc:||:$privat:||:$kss:||:$timeobn";
$fp=@fopen("$uzer/$login.log","w");
@fputs($fp,"$textrek \r\n");
@fclose($fp);
@chmod ("$uzer/$login.log", 0777);

}

else{$nmes[0]="$time:||:$login:||:$mess";
$nmes[0]="$nmes[0]\r\n";
$nmes[0]=str_replace("$","$$",$nmes[0]);
$ss = @file("$papkap/$obr.zap");
$strok = sizeof($ss);

$text=@file("$papkap/$obr.zap");
$ts=0;
while($ts<$lichmes){
$uts=$ts+1;
$nmes[$uts]=$text[$ts];
$ts=$ts+1;}

$fp=@fopen("$papkap/$obr.zap","w");
@fputs($fp,"");
@fclose($fp);
@chmod ("$papkap/$obr.zap", 0777);

$tzap=0;
while($tzap<=$lichmes){
$fp=@fopen("$papkap/$obr.zap","a");
@fputs($fp,"$nmes[$tzap]");
@fclose($fp);
$tzap=$tzap+1;}

$text=@file("$uzer/$obr.log");
$text=explode(":||:",$text[0]);
$text[12]=$text[12]+1;
$zap="$text[0]:||:$text[1]:||:$text[2]:||:$text[3]:||:$text[4]:||:$text[5]:||:$text[6]:||:$text[7]:||:$text[8]:||:$text[9]:||:$text[10]:||:$text[11]:||:$text[12]:||:$text[13]:||:$text[14]";
$fp=@fopen("$uzer/$obr.log","wb");
@fputs($fp,"$zap\r\n");
@fclose($fp);

print"<b>!&#x0421;&#x043E;&#x043E;&#x0431;&#x0449;&#x0435;&#x043D;&#x0438;&#x0435; &#x043E;&#x0442;&#x043F;&#x0440;&#x0430;&#x0432;&#x043B;&#x0435;&#x043D;&#x043E;!</b><br/>";
}
}

}



?>