View file kat_starwapru/kat_starwapru/reg.php

File size: 1.4Kb
<?php
//ᮥ¤Ё­Ґ­ЁҐ б Ў §®© ¤ ­­ле
include "config.php";
///функция начала вывода wml кода 
function go()
{
print "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
print "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
\"http://www.wapforum.org/DTD/wml_1.1.xml\">";
print "<wml><head><meta http-equiv=\"Cache-Control\" content=\"no-cache\" forua=\"true\"/></head>
<card title=\"&#x420;&#x435;&#x433;&#x438;&#x441;&#x442;&#x440;&#x430;&#x446;&#x438;&#x44F;\">
<p align=\"left\">";
};
//функция окончания wml кода

function ending()
{
print "</p></card></wml>";
};
//начало вывода в браузер wml страницы
header ("Content-type:text/vnd.wap.wml; charset=utf-8");
go();
//ўлЎ®а Ё§ в Ў«Ёжл ¤ ­­ле ® Ї®«м§®ў вҐ«пе
$query_users = mysql_query("select * from `".$px.$utable."`;");
//ўлЎ®а ¤ ­­ле ¤ ­­®Ј® Ї®«м§®ў вҐ«п
$query_users_title = mysql_query("select * from `".$px.$utable."` where title='$title';");
if($act=="edit"){
		mysql_query("update `".$px.$utable."` set pass='$pass',link='$link',about='$about',category='$k' where title='$title';");
		print "&#x412;&#x430;&#x448;&#x438; &#x434;&#x430;&#x43D;&#x43D;&#x44B;&#x435; &#x443;&#x441;&#x43F;&#x435;&#x448;&#x43D;&#x43E; &#x438;&#x437;&#x43C;&#x435;&#x43D;&#x435;&#x43D;&#x44B;!<br/>";		}

else
{	//ўлў®¤Ё¬ ®иЁЎЄЁ
	print $error;
}
print '<br/>:::::::<br/><small><a href="http://starwap.ru">starwap.ru</a></small>';
//®Є®­з ­ЁҐ wml Є®¤ 
ending();
?>