mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-22 18:45:59 +02:00
Added epp domain transfer
This commit is contained in:
parent
c74da6c030
commit
24d0fbb543
3 changed files with 641 additions and 4 deletions
|
@ -281,6 +281,18 @@ $server->handle(function (Connection $conn) use ($table, $db, $c) {
|
|||
processDomainDelete($conn, $db, $xml, $data['clid'], $c['db_type']);
|
||||
break;
|
||||
}
|
||||
|
||||
case isset($xml->command->transfer) && isset($xml->command->transfer->children('urn:ietf:params:xml:ns:domain-1.0')->transfer):
|
||||
{
|
||||
$data = $table->get($connId);
|
||||
$clTRID = (string) $xml->command->clTRID;
|
||||
if (!$data || $data['logged_in'] !== 1) {
|
||||
sendEppError($conn, 2202, 'Authorization error', $clTRID);
|
||||
$conn->close();
|
||||
}
|
||||
processDomainTransfer($conn, $db, $xml, $data['clid'], $c['db_type']);
|
||||
break;
|
||||
}
|
||||
|
||||
case isset($xml->command->check) && isset($xml->command->check->children('urn:ietf:params:xml:ns:host-1.0')->check):
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue