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

Размер файла: 1.11Kb
<?
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);
if ($adm==$password) { 
mysql_query("Delete from users where id='".$id."'");
print "<b>&#x420;&#x435;&#x433;&#x438;&#x441;&#x442;&#x440;&#x430;&#x446;&#x438;&#x44F; &#x443;&#x434;&#x430;&#x43B;&#x435;&#x43D;&#x430;</b><br/>";
print "<a href=\"top.php?adm=$password\">$topic</a>";
} else {
print "&#x414;&#x43E;&#x441;&#x442;&#x443;&#x43F; &#x437;&#x430;&#x43A;&#x440;&#x44B;&#x442;";
}

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