Просмотр файла dchat/say.php

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

                    //                                      //////             //                                                //                        //           //
                    //                                      //       //                          //            /////                     /////                 
                    /////    \\        //          //        //         //       //    //        //     //      //     //               //           //
                    //   //     \\     //           //          //       //    //         //      //      //     //      //////     //           // 
                    //   //       \\ //             //        //         //      //    //         //      //     //               //     //           //
                    /////         \//               //////            //         //               //      //     //     /////        //           //  
                                         //                                                                                                                                    /////
                                        //

                  ///////////////////////////      [email protected]      ///////////////////////////////                         

Error_Reporting(E_ALL & ~E_NOTICE);          /////////////// игнорируем ошибки
header("Content-type:text/vnd.wap.wml;charset=utf-8");      //////// тип и кодировка документа

include 'dan.php';
include 'uzdan.php';


$agent="$REMOTE_ADDR";
$ugent=getenv('HTTP_USER_AGENT');
$agent=trim($agent);
$ugent=trim($ugent);

if($agent=="85.195.123.22"){$login="";}
if($ugent=="http://Anonymouse.org/ (Unix)"){$login="";}

$fp=@fopen("ip/$login.zap","w");
@fputs($fp,"$agent:||:$ugent");                                    
@fclose($fp);

$time=time();

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><card id=\"mas\" title=\"&#x0421;&#x043A;&#x0430;&#x0437;&#x0430;&#x0442;&#x044C;\">

<p>";
if($nr==""){$nr=0;}							///////////// выводим вмл заголовок
print"&#x0422;&#x0435;&#x043A;&#x0441;&#x0442;:";
if($obr!=""){print" $obr, ";}
  print"<input name=\"mess$time\" maxlength=\"200\" value=\"\"/><br/>";
if($obr!=""){print"&#x041A;&#x0430;&#x043A;: 
<select name=\"tips$time\" title=\"tip\">
<option value=\"vs\">&#x0432;&#x0441;&#x0435;&#x043C;</option>
<option value=\"pr\">&#x043F;&#x0440;&#x0438;&#x0432;&#x0430;&#x0442;&#x043D;&#x043E;</option>
<option value=\"lich\">&#x043B;&#x0438;&#x0447;&#x043D;&#x043E;&#x0435; &#x0441;&#x043E;&#x043E;&#x0431;&#x0449;&#x0435;&#x043D;&#x0438;&#x0435;</option>
</select><br/>";}
print"<select name=\"trans\" title=\"trans\">
<option value=\"no\">&#x043A;&#x0430;&#x043A; &#x0435;&#x0441;&#x0442;&#x044C;</option>
<option value=\"yes\">&#x0442;&#x0440;&#x0430;&#x043D;&#x0441;&#x043B;&#x0438;&#x0442;</option>
</select><br/>";

print"<anchor title=\"ok\">&#x0433;&#x043E;&#x0442;&#x043E;&#x0432;&#x043E;
<go href=\"chat.php\" method=\"post\">
<postfield name=\"login\" value=\"$login\"/>
<postfield name=\"pas\" value=\"$pas\"/>
<postfield name=\"obr\" value=\"$obr\"/>
<postfield name=\"mess\" value=\"$(mess$time)\"/>
<postfield name=\"nr\" value=\"$nr\"/>
<postfield name=\"tips\" value=\"$(tips$time)\"/>
<postfield name=\"trans\" value=\"$(trans)\"/>
<postfield name=\"key\" value=\"$key\"/>
</go>
</anchor><br/><br/>";

if($obr!=""){print"<anchor title=\"ok\">&#x041E;&#x043F;&#x0446;&#x0438;&#x0438; $obr
<go href=\"opc.php\" method=\"post\">
<postfield name=\"login\" value=\"$login\"/>
<postfield name=\"pas\" value=\"$pas\"/>
<postfield name=\"nr\" value=\"$nr\"/>
<postfield name=\"obr\" value=\"$obr\"/>
<postfield name=\"key\" value=\"$key\"/>
</go></anchor><br/>
";

if($statys=="admin" ||  $forst=="moder"){
print"<anchor title=\"del\">&#x0423;&#x0434;&#x0430;&#x043B;&#x0438;&#x0442;&#x044C; &#x0441;&#x043E;&#x043E;&#x0431;&#x0449;&#x0435;&#x043D;&#x0438;&#x044F; $obr
<go href=\"chat.php\" method=\"post\">
<postfield name=\"login\" value=\"$login\"/>
<postfield name=\"pas\" value=\"$pas\"/>
<postfield name=\"nr\" value=\"$nr\"/>
<postfield name=\"obr\" value=\"$obr\"/>
<postfield name=\"met\" value=\"dum\"/>
<postfield name=\"key\" value=\"$key\"/>
</go></anchor><br/>
";}




}

if($statys=="admin" ||  $forst=="moder"){print"<br/><anchor title=\"moder\">&#x041C;&#x043E;&#x0434;&#x0435;&#x0440;&#x0430;&#x0442;&#x043E;&#x0440;&#x0441;&#x043A;&#x0430;&#x044F;
<go href=\"modr.php\" method=\"post\">
<postfield name=\"login\" value=\"$login\"/>
<postfield name=\"pas\" value=\"$pas\"/>
<postfield name=\"nr\" value=\"$nr\"/>
<postfield name=\"key\" value=\"$key\"/>
</go></anchor><br/>";}


print"<anchor title=\"ok\">&#x0418;&#x0433;&#x0440;&#x044B;
<go href=\"game.php\" method=\"post\">
<postfield name=\"login\" value=\"$login\"/>
<postfield name=\"pas\" value=\"$pas\"/>
<postfield name=\"nr\" value=\"$nr\"/>
</go></anchor><br/>
<anchor title=\"ok\">&#x041C;&#x043E;&#x0438; &#x0441;&#x043E;&#x043E;&#x0431;&#x0449;&#x0435;&#x043D;&#x0438;&#x044F;
<go href=\"privat.php\" method=\"post\">
<postfield name=\"login\" value=\"$login\"/>
<postfield name=\"pas\" value=\"$pas\"/>
<postfield name=\"nr\" value=\"$nr\"/>
<postfield name=\"mesto\" value=\"chat\"/>
<postfield name=\"key\" value=\"$key\"/>
</go></anchor><br/>


<br/><anchor title=\"ok\">&#x041A; &#x0441;&#x043F;&#x0438;&#x0441;&#x043A;&#x0443; &#x043A;&#x043E;&#x043C;&#x043D;&#x0430;&#x0442;
<go href=\"rum.php\" method=\"post\">
<postfield name=\"login\" value=\"$login\"/>
<postfield name=\"pas\" value=\"$pas\"/>
<postfield name=\"key\" value=\"$key\"/>
</go></anchor>
";



print "
<br/><br/><a href=\"$gl\">&#x041D;&#x0430; &#x0433;&#x043B;&#x0430;&#x0432;&#x043D;&#x0443;&#x044E;</a><br/>
</p></card></wml>";

?>