File size: 2.28Kb
<?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="Профиль">
<p align="center">
<?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/><u>$title</u><br/>Новый пароль:<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/>
E-mail:<br/>
<input type=\"text\" name=\"email$r\" maxlength=\"50\" value=\"".$data['email']."\"/><br/>
<select name=\"k\">
<option value=\"portaly\">Софт</option>
<option value=\"info\">Рротика</option>
<option value=\"servisi\">Сервисы</option>
<option value=\"mobily\">Порталы</option>
<option value=\"obwenie\">Общение</option>
<option value=\"poleznoe\">Развлечения</option>
<option value=\"lichnye\">Персональные</option>
<option value=\"mastery\">Wap-мастеру</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/>"; }
?>
</p>
</card>
</wml>