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

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

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/>";

$mess= trim($mess);
$af = trim($af);
  

if ($mess==$af) 
{$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");                                                                  ////////////// измени название деректории rekord
fputs($fp,"$text \r\n");
fclose($fp);  
chmod ("rek/$id=$nom.txt", 0777);                                                                                  //////////////// измени название дериктории rekord

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


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



 };

    


header("Content-type:text/vnd.wap.wml;charset=utf-8");
print "<?xml version=\"1.0\"?>
<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.2//EN\" \"http://www.wapforum.org/DTD/wml12.dtd\">
<wml>
<card id=\"tes\" title=\"Mobilka.Us GB\" ontimer=\"guest.php?new=$id&amp;nom=$nom\" > 
<timer value=\"10\"/>

<p>
&#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=\"guest.php?new=new&amp;nom=$nom\">&#x041F;&#x043E;&#x0447;&#x0438;&#x0442;&#x0430;&#x0442;&#x044C; &#x0433;&#x043E;&#x0441;&#x0442;&#x0435;&#x0432;&#x0443;&#x044E;</a><br/>
<a href=\"$glav\">&#x041D;&#x0430; &#x0433;&#x043B;&#x0430;&#x0432;&#x043D;&#x0443;&#x044E;</a><br/>




</p>

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

?>