mirror of
https://github.com/getnamingo/registry.git
synced 2025-08-05 17:18:04 +02:00
Added epp contact transfer; untested for now
Also small changes to the identica extension.
This commit is contained in:
parent
aa0298ff86
commit
30e353658e
4 changed files with 410 additions and 9 deletions
|
@ -10,6 +10,7 @@ require_once 'src/epp-info.php';
|
|||
require_once 'src/epp-create.php';
|
||||
require_once 'src/epp-renew.php';
|
||||
require_once 'src/epp-poll.php';
|
||||
require_once 'src/epp-transfer.php';
|
||||
require_once 'src/epp-delete.php';
|
||||
|
||||
use Swoole\Coroutine\Server;
|
||||
|
@ -190,6 +191,17 @@ $server->handle(function (Connection $conn) use ($table, $db, $c) {
|
|||
processContactDelete($conn, $db, $xml, $data['clid'], $c['db_type']);
|
||||
break;
|
||||
}
|
||||
|
||||
case isset($xml->command->transfer) && isset($xml->command->transfer->children('urn:ietf:params:xml:ns:contact-1.0')->transfer):
|
||||
{
|
||||
$data = $table->get($connId);
|
||||
if (!$data || $data['logged_in'] !== 1) {
|
||||
sendEppError($conn, 2202, 'Authorization error');
|
||||
$conn->close();
|
||||
}
|
||||
processContactTransfer($conn, $db, $xml, $data['clid'], $c['db_type']);
|
||||
break;
|
||||
}
|
||||
|
||||
case isset($xml->command->check) && isset($xml->command->check->children('urn:ietf:params:xml:ns:domain-1.0')->check):
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue