mirror of
https://github.com/getnamingo/registry.git
synced 2025-08-01 15:24:32 +02:00
Added EPP domain update
This commit is contained in:
parent
07d46d9f12
commit
c74da6c030
2 changed files with 824 additions and 0 deletions
|
@ -246,6 +246,18 @@ $server->handle(function (Connection $conn) use ($table, $db, $c) {
|
|||
break;
|
||||
}
|
||||
|
||||
case isset($xml->command->update) && isset($xml->command->update->children('urn:ietf:params:xml:ns:domain-1.0')->update):
|
||||
{
|
||||
$data = $table->get($connId);
|
||||
$clTRID = (string) $xml->command->clTRID;
|
||||
if (!$data || $data['logged_in'] !== 1) {
|
||||
sendEppError($conn, 2202, 'Authorization error', $clTRID);
|
||||
$conn->close();
|
||||
}
|
||||
processDomainUpdate($conn, $db, $xml, $data['clid'], $c['db_type']);
|
||||
break;
|
||||
}
|
||||
|
||||
case isset($xml->command->create) && isset($xml->command->create->children('urn:ietf:params:xml:ns:domain-1.0')->create):
|
||||
{
|
||||
$data = $table->get($connId);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue