function waitForResult($table, $certid, $id = 0, $show = 1)
{
$found = $trycount = 0;
while($trycount++ <= 30)
while($trycount++ <= 40)
{
if($table == "gpg")
$query = "select * from `$table` where `id`='".intval($certid)."' and `crt` != ''";
@ -719,20 +719,23 @@
$query = "select * from `$table` where `id`='".intval($certid)."' ";
$res = mysql_query($query);
$body="";
$subject="";
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."));
$subject="[CAcert.org] Certificate TIMEOUT";
$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), "<ahref='http://wiki.cacert.org/wiki/FAQ/CertificateRenewal'>", "</a>");
$body = "A certificate has failed!\n\n";
$subject="[CAcert.org] Certificate FAILURE";
$body = "A certificate has failed: $table $certid $id $show\n\n";