Просмотр файла kat_starwapru/kat_starwapru/pf.php

Размер файла: 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="&#x41F;&#x440;&#x43E;&#x444;&#x438;&#x43B;&#x44C;">
<p align="center">
<?php
//§ Їа®б ­  ўлЎ®а ¤ ­­ле Ї®«м§®ў вҐ«п
$q = mysql_query("select * from ".$px."users where  title='$title';");
$data = mysql_fetch_array($q);
if(empty($title))
print "&#x41B;&#x43E;&#x433;&#x438;&#x43D; &#x43F;&#x443;&#x441;&#x442;!<br/>";
	//Ґб«Ё ¤ ­­лҐ ўҐа­л, Ё¤Ґ¬ ¤ «миҐ
	if($pass==$data['pass']&&!(empty($pass))) {
		//ўе®¤ ўлЇ®«­Ґ­, ўлў®¤Ё¬ ¤ ­­лҐ
		print "&#x41D;&#x430;&#x437;&#x432;&#x430;&#x43D;&#x438;&#x435; &#x441;&#x430;&#x439;&#x442;&#x430;:<br/><u>$title</u><br/>&#x41D;&#x43E;&#x432;&#x44B;&#x439; &#x43F;&#x430;&#x440;&#x43E;&#x43B;&#x44C;:<br/>
		<input type=\"text\" name=\"pass$r\" maxlength=\"20\" value=\"".$data['pass']."\"/><br/>
		&#x410;&#x434;&#x440;&#x435;&#x441;:<br/>
		<input type=\"text\" name=\"link$r\" maxlength=\"50\" value=\"".$data['link']."\"/><br/>
		&#x41E;&#x43F;&#x438;&#x441;&#x430;&#x43D;&#x438;&#x435;:<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\">&#x421;&#x43E;&#x444;&#x442;</option>
<option value=\"info\">&#x42D;&#x440;&#x43E;&#x442;&#x438;&#x43A;&#x430;</option>
<option value=\"servisi\">&#x421;&#x435;&#x440;&#x432;&#x438;&#x441;&#x44B;</option>
<option value=\"mobily\">&#x41F;&#x43E;&#x440;&#x442;&#x430;&#x43B;&#x44B;</option>
<option value=\"obwenie\">&#x41E;&#x431;&#x449;&#x435;&#x43D;&#x438;&#x435;</option>
<option value=\"poleznoe\">&#x420;&#x430;&#x437;&#x432;&#x43B;&#x435;&#x447;&#x435;&#x43D;&#x438;&#x44F;</option>
<option value=\"lichnye\">&#x41F;&#x435;&#x440;&#x441;&#x43E;&#x43D;&#x430;&#x43B;&#x44C;&#x43D;&#x44B;&#x435;</option>
<option value=\"mastery\">Wap-&#x43C;&#x430;&#x441;&#x442;&#x435;&#x440;&#x443;</option>
<option value=\"raznoe\">&#x420;&#x430;&#x437;&#x43D;&#x43E;&#x435;</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 "&#x41F;&#x430;&#x440;&#x43E;&#x43B;&#x44C; &#x43D;&#x435;&#x432;&#x435;&#x440;&#x435;&#x43D;!<br/>"; }
?>
</p>
</card>
</wml>