Просмотр файла top/delete.php

Размер файла: 1.44Kb
<?
header ("Content-type:text/vnd.wap.wml; charset=utf-8");
print "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
$id=@mysql_escape_string($id);
$pass=@mysql_escape_string($pass);
$login=@mysql_escape_string($login);
?>
<!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">
<?
include "config2.php";
include "config3.php";

$linkk=mysql_pconnect ($DB_HOST, $DB_USER, $DB_PASS);
mysql_select_db($DB_NAME);

$q_u=mysql_query("select * from users where id='".$id."';");
$data=mysql_fetch_array($q_u);
$titles = $data['title'];
$pass = $data['pass'];
if ($adm==$password) { 
print "&#x415;&#x433;&#x43E; &#x43F;&#x430;&#x440;&#x43E;&#x43B;&#x44C; : $pass<br/>";
print "&#x442;&#x44B; &#x443;&#x432;&#x435;&#x440;&#x435;&#x43D; &#x447;&#x442;&#x43E; &#x43D;&#x430;&#x434;&#x43E; &#x443;&#x434;&#x430;&#x43B;&#x438;&#x442;&#x44C;<br/>
<b>$titles</b><br/>";
print "<a href=\"del.php?adm=$password&amp;id=$id\">&#x410;&#x431;&#x441;&#x43E;&#x43B;&#x44E;&#x442;&#x43D;&#x43E;</a><br/>";
print "<a href=\"top.php?adm=$password\">&#x421;&#x43E;&#x440;&#x440;&#x438;, &#x43F;&#x43E;&#x43F;&#x443;&#x442;&#x430;&#x43B;</a>";
} else {
print "&#x414;&#x43E;&#x441;&#x442;&#x443;&#x43F; &#x437;&#x430;&#x43A;&#x440;&#x44B;&#x442;";
}

?>
</p>
</card>
</wml>
<?
mysql_close($linkk);
?>