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

Размер файла: 887B
<?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">';

$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'];
if($_SESSION['pass']==$password) { 
print 'Удалить <b>'.$titles.'</b>?<br/>';
print "[<a href=\"del.php?id=$id\">Да</a>] [<a href=\"top.php\">Нет</a>]<br/>";

 } else { 

print 'Пошол нахуй!<br/>'; } 

 echo"</div>";

mysql_close($linkk);
include "foot.php";

?>