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

Размер файла: 886B
<?php
include("service.php");
if($n==$admin and $pas==$pass) {
mysql_connect($DB_HOST,$DB_USER,$DB_PASS) or die (mysql_error());
mysql_select_db($DB_NAME) or die (mysql_error());
mysql_query("DELETE FROM `asq` WHERE `id`='$id'");
mysql_close;
header("Pragma: no-cache");
header("Cache-Control: no-cache");
header("Content-type: text/vnd.wap.wml");
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\"/>
<meta http-equiv=\"Pragma\" content=\"no-cache\"/>
</head>
<card id=\"ob\" title=\"Admin\" ontimer=\"".$url."adm.php?i=$ref&amp;n=$n&amp;pas=$pas\">
<timer value=\"10\"/>
<p align=\"center\">
<b>Delete</b>\n";
print "</p>
</card>
</wml>\n"; }
else {
header("Location: http://myxxx.ru");
}
 ?>