| ";
echo "";
echo $l_unsubscribe;
echo " | \n";
$errmsg="";
$errors=0;
if(!isset($email) || !$email)
{
$errmsg.="| ";
$errmsg.="";
$errmsg.=$l_missingemail." |
";
$errors=1;
}
if(!isset($id) || !$id)
{
$errmsg.="| ";
$errmsg.="";
$errmsg.=$l_missingid." |
";
$errors=1;
}
if($errors==1)
{
echo $errmsg;
echo "";
include_once("./includes/bottom.inc");
exit;
}
$sql = "delete from ".$tableprefix."_subscriptions where email='$email' and unsubscribeid=$id";
if(!$result = mysql_query($sql, $db))
die("Could not connect to the database.");
echo "";
echo "| ";
echo "";
echo str_replace("{progname}",$progname,$l_unsubscribed)." |
";
echo "";
echo "| ";
echo "";
echo "$l_back2faq |
";
echo "";
include_once("./includes/bottom.inc");
exit;
?>