View file del.php

File size: 0.99Kb
<?php

Error_Reporting(E_ALL & ~E_NOTICE);

Error_Reporting (ERROR | WARNING);


extract($HTTP_GET_VARS);

extract($HTTP_POST_VARS);

extract($HTTP_COOKIE_VARS);

extract($HTTP_SERVER_VARS);

extract($HTTP_SESSION_VARS);

session_name("SESID");
 
session_start();

include "start.php";

include "cfg.php";

header("Content-type:text/html;charset=utf-8");

include "head.php";

print '<div class="b">';

$id=@mysql_escape_string($id);
$pass=@mysql_escape_string($pass);
$login=@mysql_escape_string($login);
$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($_SESSION['pass']==$password) { 
mysql_query("Delete from users where id='".$id."'");
print '<b>Сайт успешно удалён из рейтинга!</b><br/>';
print "<a href=\"top.php\">Далее</a><br/>";


} else {
echo"Пошол нахуй!!!<br/>";

}

echo"</div>";

mysql_close($linkk);

include "foot.php";

?>