File size: 3.02Kb
<?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>