View file forum/otvet.php

File size: 1.67Kb
<?
Error_Reporting(E_ALL & ~E_NOTICE);         
header("Content-type:text/vnd.wap.wml;charset=utf-8");      

include 'config.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=\"$zag\"><p>";
							

$text = @file("profil/$log.prof"); 
if ($text!=""){
$udata = explode(":||:",$text[0]);
$provpar=trim($udata[1]);}

if($par!=$provpar) {$log="";}


if($log=="") {print"&#x0432;&#x0430;&#x0448;&#x0435; &#x0438;&#x043C;&#x044F;:
<br/>
<input name=\"name\" value=\"$k\"/><br/>";}
print"&#x0441;&#x043E;&#x043E;&#x0431;&#x0449;&#x0435;&#x043D;&#x0438;&#x0435;:
<br/>
<input name=\"mess\" value=\"$k\"/><br/>
&#x0442;&#x0440;&#x0430;&#x043D;&#x0441;&#x043B;&#x0438;&#x0442;:
<select name=\"tr\" title=\"tr\">
<option value=\"1\">&#x043D;&#x0435;&#x0442;</option>
<option value=\"5\">&#x0434;&#x0430;</option>
</select><br/>

<anchor title=\"ok\">&#x043E;&#x0442;&#x043F;&#x0440;&#x0430;&#x0432;&#x0438;&#x0442;&#x044C;
<go href=\"add.php?razd=$razd&amp;prazd=$prazd&amp;tem=$tem&amp;log=$log&amp;par=$par\" method=\"post\">
<postfield name=\"name\" value=\"$(name)\"/>
<postfield name=\"mess\" value=\"$(mess)\"/>
<postfield name=\"tr\" value=\"$(tr)\"/>
</go>
</anchor>";


print "
<br/>---<br/>";
if($log!="") {print"
<img src=\"st/67.gif\" alt =\"+\"/>
<a href=\"profil.php?mest=index&amp;log=$log&amp;par=$par\"><font color=\"blue\">[$log]</font></a>";} else {print"
<img src=\"st/48.gif\" alt =\"+\"/>
<a href=\"vxod.php?mest=index\"><font color=\"blue\">[$sktext[1]]</font></a>";}	
print"";



print "</p></card></wml>";

?>