1<?php
2  include_once dirname(__FILE__) . '/config/variables.php';
3  include_once dirname(__FILE__) . '/config/authpostmaster.php';
4  include_once dirname(__FILE__) . '/config/functions.php';
5  include_once dirname(__FILE__) . '/config/httpheaders.php';
6
7  $query = "DELETE FROM users
8    WHERE user_id=:user_id
9    AND domain_id=:domain_id AND type='fail'";
10  $sth = $dbh->prepare($query);
11  $success = $sth->execute(array(':user_id'=>$_GET['user_id'], ':domain_id'=>$_SESSION['domain_id']));
12  if ($success) {
13    header ("Location: adminfail.php?deleted={$_GET['localpart']}");
14  } else {
15    header ("Location: adminfail.php?faildeleted={$_GET['localpart']}");
16	die;
17  }
18?>
19<!-- Layout and CSS tricks obtained from http://www.bluerobot.com/web/layouts/ -->
20