mysql_query("update `disputeemail` set hash='',action='reject' where `id`='$emailid'");
mysql_query("update `disputeemail` set hash='',action='reject' where `id`='".intval($emailid)."'");
showheader(_("Email Dispute"));
showheader(_("Email Dispute"));
echo _("You have opted to reject this dispute and the request will be removed from the database");
echo _("You have opted to reject this dispute and the request will be removed from the database");
showfooter();
showfooter();
@ -51,7 +51,7 @@
showheader(_("Email Dispute"));
showheader(_("Email Dispute"));
echo "<p>"._("You have opted to accept this dispute and the request will now remove this email address from the existing account, and revoke any current certificates.")."</p>";
echo "<p>"._("You have opted to accept this dispute and the request will now remove this email address from the existing account, and revoke any current certificates.")."</p>";
echo "<p>"._("The following accounts have been removed:")."<br>\n";
echo "<p>"._("The following accounts have been removed:")."<br>\n";
$query = "select * from `email` where `id`='$emailid' and deleted=0";
$query = "select * from `email` where `id`='".intval($emailid)."' and deleted=0";
$res = mysql_query($query);
$res = mysql_query($query);
if(mysql_num_rows($res) > 0)
if(mysql_num_rows($res) > 0)
{
{
@ -64,10 +64,10 @@
group by `emailcerts`.`id`";
group by `emailcerts`.`id`";
$dres = mysql_query($query);
$dres = mysql_query($query);
while($drow = mysql_fetch_assoc($dres))
while($drow = mysql_fetch_assoc($dres))
mysql_query("update `emailcerts` set `revoked`='1970-01-01 10:00:01' where `id`='".$drow['id']."'");
mysql_query("update `emailcerts` set `revoked`='1970-01-01 10:00:01' where `id`='".intval($drow['id'])."'");
$do = `../scripts/runclient`;
$do = `../scripts/runclient`;
$query = "update `email` set `deleted`=NOW() where `id`='$emailid'";
$query = "update `email` set `deleted`=NOW() where `id`='".intval($emailid)."'";
mysql_query($query);
mysql_query($query);
}
}
mysql_query("update `disputeemail` set hash='',action='accept' where `id`='$emailid'");
mysql_query("update `disputeemail` set hash='',action='accept' where `id`='$emailid'");