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