Просмотр файла send.php

Размер файла: 2.63Kb
<?
////////////////////////////////////////////////////////////
// Автор: Данилов Максим aka Wapmax  (Регистрация v.1.0)  //
// Сайт: http://wapmax.ru                                 //
// e-mail: [email protected]  &  [email protected]          // 
// Подробности по установке в readme.txt                  //
////////////////////////////////////////////////////////////

include('say.php');
Error_Reporting(E_ALL & ~E_NOTICE);       
header("Content-type:text/vnd.wap.wml;charset=utf-8");  
$br=getenv('HTTP_USER_AGENT');

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

$fp=fopen("log/$id.wapmaxru","w");                                                                  
fputs($fp,"$name, $br \r\n");
fclose($fp);  
chmod ("log/$id.wapmaxru", 0777);                                                                  
$text = "$pass";
$fp=fopen("pass/$id.wapmaxru","w");                                                                 
fputs($fp,"$pass \r\n");
fclose($fp);  
chmod ("pass/$id.wapmaxru", 0777);   

$text = "$site";
$fp=fopen("mail/$id.wapmaxru","w");                                                                  
fputs($fp,"$site \r\n");
fclose($fp);  
chmod ("mail/$id.wapmaxru", 0777);   

$text = "";
$fp=fopen("af/$id.txt","w");                                                                 
fputs($fp,"$name \r\n");
fclose($fp);  
chmod ("af/$id.txt", 0777);  
    
$text = "0";
$fp=fopen("cont/$id.dat","w");                                                                
fputs($fp,"$name \r\n");
fclose($fp);  
chmod ("cont/$id.dat", 0777);  


print "<?xml version=\"1.0\" encoding=\"utf-8\"?>
	<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.2//EN\" \"http://www.wapforum.org/DTD/wml12.dtd\">
	<wml><head><meta http-equiv=\"Cache-Control\" content=\"no-cache\" forua=\"true\"/></head><card id=\"mas\" title=\"$jar\"><p>";
print "&#x41F;&#x43E;&#x437;&#x434;&#x440;&#x430;&#x432;&#x43B;&#x44F;&#x44E;, &#x432;&#x44B; &#x437;&#x430;&#x440;&#x435;&#x433;&#x438;&#x441;&#x442;&#x440;&#x438;&#x440;&#x43E;&#x432;&#x430;&#x43D;&#x44B;, &#x432;&#x430;&#x448; &#x43B;&#x43E;&#x433;&#x438;&#x43D; &#x434;&#x43B;&#x44F; &#x432;&#x445;&#x43E;&#x434;&#x430; &#x432; &#x430;&#x434;&#x43C;&#x438;&#x43D;&#x43A;&#x443;: <b>$id</b>, &#x432;&#x430;&#x448; &#x43F;&#x430;&#x440;&#x43E;&#x43B;&#x44C;: <b>$pass</b><br/>";
print "<a href=\"admin.wml\">&#x430;&#x434;&#x43C;&#x438;&#x43D;&#x43A;&#x430;</a><br/>";
print "
<br/><a href=\"$gl\">&#x041D;&#x0430; &#x0433;&#x043B;&#x0430;&#x0432;&#x043D;&#x0443;&#x044E;</a><br/>
</p></card></wml>";

?>