printf(_("The email address '%s' has been added to the system, however before any certificates for this can be issued you need to open the link in a browser that has been sent to your email address."), $email);
printf(_("The email address '%s' has been added to the system, however before any certificates for this can be issued you need to open the link in a browser that has been sent to your email address."), $email);
printf(_("The domain '%s' has been added to the system, however before any certificates for this can be issued you need to open the link in a browser that has been sent to your email address."), $_SESSION['_config']['domain']);
printf(_("The domain '%s' has been added to the system, however before any certificates for this can be issued you need to open the link in a browser that has been sent to your email address."), $_SESSION['_config']['domain']);
@ -446,9 +461,13 @@
exit;
exit;
}
}
$query = "insert into `domaincerts` set `CN`='".$_SESSION['_config']["0.CN"]."',
$subject = "";
`domid`='".$_SESSION['_config']['row']['id']."',
foreach($_SESSION['_config']['rows'] as $row)
`created`=NOW()";
$subject .= "/CN=$row";
$query = "insert into `domaincerts` set `CN`='".$_SESSION['_config']['rows']['0']."',
`domid`='".$_SESSION['_config']['rowid']['0']."',
`created`=NOW(),`subject`='$subject'";
mysql_query($query);
mysql_query($query);
$CSRid = mysql_insert_id();
$CSRid = mysql_insert_id();
@ -631,7 +650,7 @@
mysql_query("insert into `emaillink` set `emailid`='".$r2['emailid']."',
mysql_query("insert into `emaillink` set `emailid`='".$r2['emailid']."',
`emailcertsid`='$newid'");
`emailcertsid`='$newid'");
}
}
$do = `../scripts/runclient`;
// $do = `../scripts/runclient`;
$query = "select * from `emailcerts` where `id`='$newid' and `crt_name` != ''";
$query = "select * from `emailcerts` where `id`='$newid' and `crt_name` != ''";
$res = mysql_query($query);
$res = mysql_query($query);
if(mysql_num_rows($res) <= 0)
if(mysql_num_rows($res) <= 0)
@ -673,7 +692,7 @@
continue;
continue;
}
}
mysql_query("update `emailcerts` set `revoked`='1970-01-01 10:00:01' where `id`='$id'");
mysql_query("update `emailcerts` set `revoked`='1970-01-01 10:00:01' where `id`='$id'");
$do = `../scripts/runclient`;
// $do = `../scripts/runclient`;
printf(_("Certificate for '%s' has been revoked.")."<br>\n", $row['CN']);
printf(_("Certificate for '%s' has been revoked.")."<br>\n", $row['CN']);
}
}
}
}
@ -980,7 +999,7 @@
fclose($fp);
fclose($fp);
mysql_query("update `orgemailcerts` set `csr_name`='$CSRname' where `id`='$emailid'");
mysql_query("update `orgemailcerts` set `csr_name`='$CSRname' where `id`='$emailid'");
}
}
$do = `../scripts/runclient`;
// $do = `../scripts/runclient`;
$query = "select * from `orgemailcerts` where `id`='$emailid' and `crt_name` != ''";
$query = "select * from `orgemailcerts` where `id`='$emailid' and `crt_name` != ''";
mail($user[email], "[CAcert.org] ".sprintf(_("Certificate for %s has been revoked"), $row['CN']), $body, "From: CAcert-Support <no-returns@cacert.org>");
sendmail($user[email], "[CAcert.org] ".sprintf(_("Certificate for %s has been revoked"), $row['CN']), $body, "support@cacert.org", "returns@cacert.org", "", "CAcert Support");
}
}
$query = "select * from `orgemailcerts` where `crt_name`='' and `keytype`='NS'";
$query = "select * from `orgemailcerts` where `crt_name`='' and `keytype`='NS'";
mail($user[email], "[CAcert.org] ".sprintf(_("Certificate for %s has been revoked"), $row['CN']), $body, "From: CAcert-Support <no-returns@cacert.org>");
sendmail($user[email], "[CAcert.org] ".sprintf(_("Certificate for %s has been revoked"), $row['CN']), $body, "support@cacert.org", "returns@cacert.org", "", "CAcert Support");
mail($user['email'], "[CAcert.org] ".sprintf(_("Certificate for %s has been revoked"), $row['CN']), $body, "From: CAcert-Support <no-returns@cacert.org>");
sendmail($user['email'], "[CAcert.org] ".sprintf(_("Certificate for %s has been revoked"), $row['CN']), $body, "support@cacert.org", "returns@cacert.org", "", "CAcert Support");
}
}
$query = "select * from `orgdomaincerts` where `crt_name`=''";
$query = "select * from `orgdomaincerts` where `crt_name`=''";
echo "<p>"._("Shortly you and the person you were assuring will receive an email confirmation. There is no action on your behalf required to complete this.")."</p>";
echo "<p>"._("Shortly you and the person you were assuring will receive an email confirmation. There is no action on your behalf required to complete this.")."</p>";