Просмотр файла banners.ru/www/forum/profile.php

Размер файла: 9.27Kb
<?
require "consts.php";
$conn=mysql_connect(my_host, my_user, my_password);
mysql_select_db(my_db, $conn);


header("Content-Type: text/vnd.wap.wml; charset=utf-8");
echo '<?xml version="1.0" encoding="utf-8"?>';
echo '<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN"';
echo ' "http://www.wapforum.org/DTD/wml1.2.dtd">';
echo '<wml>';
echo '<head>';
echo '<meta http-equiv="Cache-Control" content="no-store" forua="true"/>';
echo '</head>';
echo '<card id="registration" title="&#x0410;&#x043D;&#x043A;&#x0435;&#x0442;&#x0430;">';
echo '<p>';



if(isset($HTTP_GET_VARS['UIN']))
{
$name1=$HTTP_GET_VARS['UIN'];
}
else
{
$name1="Guest";
}
$UIN=$name1;




if(isset($HTTP_GET_VARS['pass']))
{
$pass=$HTTP_GET_VARS['pass'];
}
else
{
$pass="Guest";
}






$sql="select pass from users where id='$name1'";
$res=mysql_query($sql);
$row=mysql_fetch_object($res);
if ($pass!=$row->pass)
{
$name1="Guest";
}





$sql="select * from users where id='$name1'";
$result=mysql_query($sql);
$row=mysql_fetch_object($result);


$row->imya=translate($row->imya);
$row->about=translate($row->about);
$row->otkuda=translate($row->otkuda);
?>
&#x0418;&#x043C;&#x044F;:(*)<br/>
<input type="text" title="&#x0418;&#x043C;&#x044F;" value="<?=$row->imya?>" maxlength="30" name="name" emptyok="false"/><br/>
&#x041E; &#x0441;&#x0435;&#x0431;&#x0435;:(*)<br/>
<input type="text" title="&#x041E; &#x0441;&#x0435;&#x0431;&#x0435;" value="<?=$row->about?>" maxlength="240" name="about" emptyok="false"/><br/>

&#x0426;&#x0435;&#x043B;&#x044C; &#x0437;&#x043D;&#x0430;&#x043A;&#x043E;&#x043C;&#x0441;&#x0442;&#x0432;&#x0430;:(*)<br/>
<input type="text" title="Text" value="<?=$row->find?>" maxlength="250" name="who" emptyok="false"/><br/>

&#x0421;&#x043F;&#x043E;&#x0441;&#x043E;&#x0431; &#x0441;&#x0432;&#x044F;&#x0437;&#x0438;:(*)<br/>
<input type="text" title="Text" value="<?=$row->sposob?>" maxlength="250" name="sposob" emptyok="false"/><br/>


&#x0412;&#x043E;&#x0437;&#x0440;&#x0430;&#x0441;&#x0442;:(*)<br/>
<input type="text" title="&#x0412;&#x043E;&#x0437;&#x0440;&#x0430;&#x0441;&#x0442;" value="<?=$row->age?>" maxlength="2" format="NN" name="age" emptyok="false"/><br/>
&#x0414;&#x0430;&#x0442;&#x0430; &#x0440;&#x043E;&#x0436;&#x0434;&#x0435;&#x043D;&#x0438;&#x044F;:(*)<br/>
<select name="chislo">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select><br/>
<select name="mes">
<option value="jan">&#x042F;&#x043D;&#x0432;&#x0430;&#x0440;&#x044C;</option>
<option value="feb">&#x0424;&#x0435;&#x0432;&#x0440;&#x0430;&#x043B;&#x044C;</option>
<option value="mar">&#x041C;&#x0430;&#x0440;&#x0442;</option>
<option value="apr">&#x0410;&#x043F;&#x0440;&#x0435;&#x043B;&#x044C;</option>
<option value="may">&#x041C;&#x0430;&#x0439;</option>
<option value="jun">&#x0418;&#x044E;&#x043D;&#x044C;</option>
<option value="jul">&#x0418;&#x044E;&#x043B;&#x044C;</option>
<option value="aug">&#x0410;&#x0432;&#x0433;&#x0443;&#x0441;&#x0442;</option>
<option value="sep">&#x0421;&#x0435;&#x043D;&#x0442;&#x044F;&#x0431;&#x0440;&#x044C;</option>
<option value="oct">&#x041E;&#x043A;&#x0442;&#x044F;&#x0431;&#x0440;&#x044C;</option>
<option value="nov">&#x041D;&#x043E;&#x044F;&#x0431;&#x0440;&#x044C;</option>
<option value="dec">&#x0414;&#x0435;&#x043A;&#x0430;&#x0431;&#x0440;&#x044C;</option>
</select><br/>

&#x0420;&#x043E;&#x0441;&#x0442;:<br/>
<input type="text" title="&#x0420;&#x043E;&#x0441;&#x0442;"  value="<?=$row->rost?>" maxlength="3" format="NNN" name="rost" emptyok="true"/><br/>


&#x0412;&#x0435;&#x0441;:<br/>
<input type="text" title="&#x0412;&#x0435;&#x0441;"  value="<?=$row->ves?>" maxlength="3" format="*N" name="ves" emptyok="true"/><br/>









&#x0421;&#x0442;&#x0440;&#x0430;&#x043D;&#x0430;:<br/>


<?
if (($co=="") and ($ct==""))
{
$sql="select country, city from users where id='$UIN'";
$result=mysql_query($sql);
$row=mysql_fetch_object($result);
$sql="select * from country where id='$row->country' order by id";
$res=mysql_query($sql);
$row2=mysql_fetch_object($res);
$country=translate($row2->name);

$sql="select * from city where id='$row->city' order by id";
$res2=mysql_query($sql);
$row3=mysql_fetch_object($res2);
$city=translate($row3->name);

?>

<u><?=$country?></u><br/> 
&#x0413;&#x043E;&#x0440;&#x043E;&#x0434;:<br/>
<u><?=$city?></u><br/>
<a href="country.php?UIN=<?=$UIN?>&amp;pass=<?=$pass?>">[&#x0418;&#x0437;&#x043C;&#x0435;&#x043D;&#x0438;&#x0442;&#x044C;]</a><br/><br/>
<?

}
else
{




$sql="select * from country where id='$co' order by id";
$res=mysql_query($sql);
$row2=mysql_fetch_object($res);
$country=translate($row2->name);

$sql="select * from city where id='$ct' order by id";
$res2=mysql_query($sql);
$row3=mysql_fetch_object($res2);
$city=translate($row3->name);

?>

<u><?=$country?></u><br/> 
&#x0413;&#x043E;&#x0440;&#x043E;&#x0434;:<br/>
<u><?=$city?></u><br/>
<a href="country.php?UIN=<?=$UIN?>&amp;pass=<?=$pass?>">[&#x0418;&#x0437;&#x043C;&#x0435;&#x043D;&#x0438;&#x0442;&#x044C;]</a><br/><br/>
<?

}









if ($hc=="")
{
$sql="select hair_color from users where id='$UIN'";
$result=mysql_query($sql);
$row=mysql_fetch_object($result);
$sql="select * from hair_color where id='$row->hair_color' order by id";
$res=mysql_query($sql);
$row2=mysql_fetch_object($res);
$hair_color=translate($row2->name);
?>
&#x0426;&#x0432;&#x0435;&#x0442; &#x0432;&#x043E;&#x043B;&#x043E;&#x0441;:<br/>
<u><?=$hair_color?></u><br/> 
<a href="hair_color.php?UIN=<?=$UIN?>&amp;pass=<?=$pass?>">[&#x0418;&#x0437;&#x043C;&#x0435;&#x043D;&#x0438;&#x0442;&#x044C;]</a><br/><br/>
<?

}
else
{

if ($hc!="0")
{
$sql="update users set hair_color='$hc' where id='$UIN'";
mysql_query($sql);
}

$sql="select * from hair_color where id='$hc' order by id";
$res=mysql_query($sql);
$row2=mysql_fetch_object($res);
$hair_color=translate($row2->name);
?>
&#x0426;&#x0432;&#x0435;&#x0442; &#x0432;&#x043E;&#x043B;&#x043E;&#x0441;:<br/>
<u><?=$hair_color?></u><br/> 
<a href="hair_color.php?UIN=<?=$UIN?>&amp;pass=<?=$pass?>">[&#x0418;&#x0437;&#x043C;&#x0435;&#x043D;&#x0438;&#x0442;&#x044C;]</a><br/>
<?

}



if ($ic=="")
{
$sql="select iye_color from users where id='$UIN'";
$result=mysql_query($sql);
$row=mysql_fetch_object($result);
$sql="select * from iye_color where id='$row->iye_color' order by id";
$res=mysql_query($sql);
$row2=mysql_fetch_object($res);
$iye_color=translate($row2->name);
?>
&#x0426;&#x0432;&#x0435;&#x0442; &#x0433;&#x043B;&#x0430;&#x0437;:<br/>
<u><?=$iye_color?></u><br/> 
<a href="iye_color.php?UIN=<?=$UIN?>&amp;pass=<?=$pass?>">[&#x0418;&#x0437;&#x043C;&#x0435;&#x043D;&#x0438;&#x0442;&#x044C;]</a><br/><br/>
<?

}
else
{
if ($ic!="0")
{
$sql="update users set iye_color='$ic' where id='$UIN'";
mysql_query($sql);
}


$sql="select * from iye_color where id='$ic' order by id";
$res=mysql_query($sql);
$row2=mysql_fetch_object($res);
$iye_color=translate($row2->name);
?>
&#x0426;&#x0432;&#x0435;&#x0442; &#x0433;&#x043B;&#x0430;&#x0437;:<br/>
<u><?=$iye_color?></u><br/> 
<a href="iye_color.php?UIN=<?=$UIN?>&amp;pass=<?=$pass?>">[&#x0418;&#x0437;&#x043C;&#x0435;&#x043D;&#x0438;&#x0442;&#x044C;]</a><br/>
<?

}










?>



















MOPS(Mobile On-line paging system):<br/>
<input type="text" title="MOPS" format="*N" value="<?=$row->mops?>" maxlength="10" name="mops" emptyok="true"/><br/>
E-mail:<br/>
<input type="text" title="email" value="<?=$row->email?>" maxlength="30" name="email" emptyok="true"/><br/>
&#x041D;&#x043E;&#x043C;&#x0435;&#x0440; &#x0442;&#x0435;&#x043B;&#x0435;&#x0444;&#x043E;&#x043D;&#x0430;:<br/>
<input type="text" title="&#x041D;&#x043E;&#x043C;&#x0435;&#x0440; &#x0442;&#x0435;&#x043B;&#x0435;&#x0444;&#x043E;&#x043D;&#x0430;" maxlength="12" value="<?=$row->telnum?>" format="*N"  name="telnum" emptyok="true"/><br/>
<anchor title="Ok">Ok
<go method="post" href="profileadd.php?UIN=<?=$UIN?>&amp;pass=<?=$pass?>">
<postfield name="data3" value="$(about)"/>
<postfield name="data4" value="$(name)"/>
<postfield name="data5" value="$(from)"/>
<postfield name="data7" value="$(age)"/>
<postfield name="data8" value="$(email)"/>
<postfield name="data10" value="$(mops)"/>
<postfield name="data11" value="$(telnum)"/>
<postfield name="data12" value="$(chislo)"/>
<postfield name="data13" value="$(mes)"/>
<postfield name="data15" value="$(rost)"/>
<postfield name="data16" value="$(ves)"/>
<postfield name="data17" value="$(iye_color)"/>
<postfield name="data18" value="$(hair_color)"/>
<postfield name="data19" value="$(who)"/>
<postfield name="data20" value="$(sposob)"/>
<postfield name="data21" value="<?=$co?>"/>
<postfield name="data22" value="<?=$ct?>"/>


</go>
</anchor>
</p>
</card>
</wml>