Differentiated between timeout and failure

pull/1/head
root 16 years ago
parent 8aa25fa26a
commit d9be1aadb2

@ -715,12 +715,18 @@
if($show) showheader(_("My CAcert.org Account!"));
$query = "select * from `$table` where `id`='".intval($certid)."' ";
$res = mysql_query($query);
$body="";
if(mysql_num_rows($res) > 0)
{
printf(_("Your certificate request is still queued and hasn't been processed yet. Please wait, and go to Certificates -> View to see it's status."));
$body = "A certificate has timed out!\n\n";
}
else
{
printf(_("Your certificate request has failed to be processed correctly, see %sthe WIKI page%s for reasons and solutions.")." certid:$table:".intval($certid), "<a href='http://wiki.cacert.org/wiki/FAQ/CertificateRenewal'>", "</a>");
$body = "A certificate has failed!\n\n";
}
$body = "A certificate has timed out!\n\n";
$body .= _("Best regards")."\n"._("CAcert.org Support!");
sendmail("philipp@cacert.org", "[CAcert.org] Certificate TIMEOUT", $body, "philipp@cacert.org", "", "", "CAcert Support");

Loading…
Cancel
Save