View file wapp_antifront.com/chat/adfoto.php

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

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




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=\"&#x041E;&#x043F;&#x0446;&#x0438;&#x0438;\"><p>";
                                                        ///////////// выводим вмл заголовок
if($login != ""){ if($statys=="admin" ||  $forst=="moder"){




$tts=0;
$fp=@fopen("$foto/$obr.foto","w");
@fputs($fp,"");
@fclose($fp);
@chmod ("$foto/$obr.foto", 0777);

while($tts<=$ts){
$nrazd[$tts]=str_replace(":||:",": || :",$nrazd[$tts]);
$nrazd[$tts]=str_replace("$","$$",$nrazd[$tts]);
$nrazd[$tts]=htmlspecialchars(stripslashes($nrazd[$tts]));
if($nrazd[$tts]!=""){
$fp=@fopen("$foto/$obr.foto","a");
@fputs($fp,"$tts:||:$nrazd[$tts]\r\n");
@fclose($fp);}
$tts=$tts+1;}


print"&#x0421;&#x043E;&#x0445;&#x0440;&#x0430;&#x043D;&#x0435;&#x043D;&#x043E;<br/>";





}}

print "<anchor title=\"ok\">&#x0412; &#x0447;&#x0430;&#x0442;
<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=\"key\" value=\"$key\"/>
</go></anchor>
<br/><br/><a href=\"$gl\">&#x041D;&#x0430; &#x0433;&#x043B;&#x0430;&#x0432;&#x043D;&#x0443;&#x044E;</a><br/>
</p></card></wml>";

?>