File size: 2.14Kb
<?php
$r=rand(0,10000);
//ўЄ«оз Ґ¬ ¤®Ї®«ЁвҐ«лҐ д ©«л;
include "config.php";
//®Ўа Ў влў Ґ¬ Ї®«гзҐлҐ д ©«л
$title=cyr(htmlspecialchars(stripslashes(trim($title))));
$pass=cyr(htmlspecialchars(stripslashes(trim($pass))));
// з «® wml д ©«
header ("Content-type:text/vnd.wap.wml; charset=utf-8");
print "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml><head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>
<card title="Џа®дЁ«м <? print $title; ?>">
<p>
<?php
//§ Їа®б ўлЎ®а ¤ ле Ї®«м§®ў ⥫п
$q = mysql_query("select * from ".$px."users where title='$title';");
$data = mysql_fetch_array($q);
if(empty($title))
print "‹®ЈЁ Їгбв!<br/>";
//Ґб«Ё ¤ лҐ ўҐал, Ё¤Ґ¬ ¤ «миҐ
if($pass==$data['pass']&&!(empty($pass))) {
//ўе®¤ ўлЇ®«Ґ, ўлў®¤Ё¬ ¤ лҐ
print "Ќ®ўл© Ї а®«м:<br/>
<input type=\"text\" name=\"pass$r\" maxlength=\"20\" value=\"".$data['pass']."\"/><br/>
Ђ¤аҐб:<br/>
<input type=\"text\" name=\"link$r\" maxlength=\"50\" value=\"".$data['link']."\"/><br/>
ЋЇЁб ЁҐ:<br/>
<input type=\"text\" name=\"about$r\" maxlength=\"100\" value=\"".$data['about']."\"/><br/>
Њл«®:<br/>
<input type=\"text\" name=\"email$r\" maxlength=\"50\" value=\"".$data['email']."\"/><br/>
<select name=\"k\">
<option value=\"portaly\">Џ®ав «л</option>
<option value=\"mobily\">„«п ¬®ЎЁ«</option>
<option value=\"info\">€д®а¬ жЁп</option>
<option value=\"poleznoe\">Џ®«Ґ§®Ґ</option>
<option value=\"lichnye\">‹Ёз®Ґ</option>
<option value=\"raznoe\">ђ §®Ґ</option></select><br/>
<anchor>OK
<go href=\"reg.php?act=edit\" method=\"post\">
<postfield name=\"title\" value=\"$(title)\"/>
<postfield name=\"pass\" value=\"$(pass$r)\"/>
<postfield name=\"about\" value=\"$(about$r)\"/>
<postfield name=\"email\" value=\"$(email$r)\"/>
<postfield name=\"link\" value=\"$(link$r)\"/>
<postfield name=\"k\" value=\"$(k)\"/>
</go></anchor>";
} else { print "Џ а®«м ҐўҐаҐ!<br/>"; }
print '<img src="http://pslink.ru/b.php?id=780" alt="PSLink"/><br/>';
?>
</p>
</card>
</wml>