mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-28 13:26:21 +02:00
Final RST modifications (12 May)
This commit is contained in:
parent
1c79be37a6
commit
cb372409d3
4 changed files with 48 additions and 0 deletions
|
@ -849,6 +849,14 @@ function processDomainCreate($conn, $db, $xml, $clid, $database_type, $trans, $m
|
|||
}
|
||||
}
|
||||
|
||||
$smdId = $xpath->evaluate('string(//smd:id)');
|
||||
$stmt = $db->prepare("SELECT 1 FROM tmch_revocation WHERE smd_id = ?");
|
||||
$stmt->execute([$smdId]);
|
||||
if ($stmt->fetchColumn()) {
|
||||
sendEppError($conn, $db, 2306, 'Error creating domain: SMD certificate has been revoked.', $clTRID, $trans);
|
||||
return;
|
||||
}
|
||||
|
||||
$notBefore = new \DateTime($xpath->evaluate('string(//smd:notBefore)'));
|
||||
$notafter = new \DateTime($xpath->evaluate('string(//smd:notAfter)'));
|
||||
$markName = $xpath->evaluate('string(//mark:markName)');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue