Просмотр файла gbb/add2.php

Размер файла: 3.27Kb
<?
Error_Reporting(E_ALL & ~E_NOTICE);

$brayz = "$REMOTE_ADDR ";
$u1=getenv('HTTP_USER_AGENT');
$ipad=strtok($u1,'/');

$glav = @implode("",@file("konfig/$nom.dionisij"));
$glav = trim("$glav");


if ($tr==5) {
	
$trans1= array("CH","SH","IU","IA","A","B","V","G","D","E","ZH","Z","I","K","L","M","N","O","P","R","S","T","U","F","H","C","Y","ch","sh","iu","ia","a","b","v","g","d","e","zh","z","i","k","l","m","n","o","p","r","s","t","u","f","h","c","'","y","J","j"	
		);
	
	
$trans2= array("&#x0427;","&#x0428;","&#x042E;","&#x042F;","&#x0410;","&#x0411;","&#x0412;","&#x0413;","&#x0414;","&#x0415;","&#x0416;","&#x0417;","&#x0418;","&#x041A;","&#x041B;","&#x041C;","&#x041D;","&#x041E;","&#x041F;","&#x0420;","&#x0421;","&#x0422;","&#x0423;","&#x0424;","&#x0425;","&#x0426;","&#x042B;","&#x0447;","&#x0448;","&#x044E;","&#x044F;","&#x0430;","&#x0431;","&#x0432;","&#x0433;","&#x0434;","&#x0435;","&#x0436;","&#x0437;","&#x0438;","&#x043A;","&#x043B;","&#x043C;","&#x043D;","&#x043E;","&#x043F;","&#x0440;","&#x0441;","&#x0442;","&#x0443;","&#x0444;","&#x0445;","&#x0446;","&#x044C;","&#x044B;","&#x0419;","&#x0439;"
		);

$mess=str_replace($trans1,$trans2,$mess);		
	};



$currHour=date("H",time());
	$currDate=date("dS F, Y", time());
	$currTime=date("$currHour:i:s", time());


$yv=$obr;
$obr = $login;
$af = @implode("",@file("af/$nom.txt"));   
if ($yv!="") {$yv="$yv, ";};
$text = "$currDate<br/>
$currTime<br/>
<b>
<a href=\"obr.php?nom=$nom&amp;obr=$obr\">$login</a>
</b><br/>
$yv $mess<br/>mail:$mail
<br/>
<a href=\"http://$wsite\">$wsite</a>
<br/>
<small>$brayz $ipad</small>

<br/>======<br/>";


   $stringaf = strlen($af);
  $stringmes = strlen($mess);
  $stringaf=$stringaf-3;

if ($stringaf==$stringmes) 
{$mess=$pus;};

if ($mess != "") {



$counter_array = file("cont/$nom.dat");
$id = $counter_array[0]+1;
$fp = @fopen("cont/$nom.dat","wb");
@fputs($fp,$id);
@fclose($fp);






$fp=fopen("rek/$id=$nom.txt","w");                                                               
fputs($fp,"$text \r\n");
fclose($fp);  
chmod ("rek/$id=$nom.txt", 0777);                                                                                 
$fp=fopen("af/$nom.txt","w");
fputs($fp,"$mess \r\n");
fclose($fp); 


$delfile = $id - 30;
   if ($id>31)    { unlink ("rek/$delfile=$nom.txt"); };  



 };

    



print "<html>
<head>
<title>Mobilka.Us GB</title>
<meta http-equiv=\"Content-Type\" content=\"text/html\; charset=utf-8\">
</head>
<body bgcolor=\"#000000\">
<p align=\"left\"><font color=\"#FFFF00\">
&#x0412;&#x0430;&#x0448;&#x0435; &#x0441;&#x043E;&#x043E;&#x0431;&#x0449;&#x0435;&#x043D;&#x0438;&#x0435; &#x0431;&#x044B;&#x043B;&#x043E; &#x0443;&#x0441;&#x043F;&#x0435;&#x0448;&#x043D;&#x043E; &#x0434;&#x043E;&#x0431;&#x0430;&#x0432;&#x043B;&#x0435;&#x043D;&#x043E;!
<br/>
<a href=\"guest2.php?new=new&amp;nom=$nom\"><font color=\"#F206FF\">&#x041F;&#x043E;&#x0447;&#x0438;&#x0442;&#x0430;&#x0442;&#x044C; &#x0433;&#x043E;&#x0441;&#x0442;&#x0435;&#x0432;&#x0443;&#x044E;</a><br/>
<a href=\"$glav\"><font color=\"#F206FF\">&#x041D;&#x0430; &#x0433;&#x043B;&#x0430;&#x0432;&#x043D;&#x0443;&#x044E;</a><br/>




</p>    
</body>
</html>";                          ///////////////// последняя ссылка - на главную

?>