mirror of
https://github.com/getnamingo/registry.git
synced 2025-06-27 06:34:40 +02:00
Added host:create EPP command
This commit is contained in:
parent
1d31db8e6c
commit
2bcba151f4
4 changed files with 217 additions and 1 deletions
11
epp/epp.php
11
epp/epp.php
|
@ -212,6 +212,17 @@ $server->handle(function (Connection $conn) use ($table, $db, $c) {
|
|||
break;
|
||||
}
|
||||
|
||||
case isset($xml->command->create) && isset($xml->command->create->children('urn:ietf:params:xml:ns:host-1.0')->create):
|
||||
{
|
||||
$data = $table->get($connId);
|
||||
if (!$data || $data['logged_in'] !== 1) {
|
||||
sendEppError($conn, 2202, 'Authorization error');
|
||||
$conn->close();
|
||||
}
|
||||
processHostCreate($conn, $db, $xml, $data['clid'], $c['db_type']);
|
||||
break;
|
||||
}
|
||||
|
||||
case isset($xml->command->info) && isset($xml->command->info->children('urn:ietf:params:xml:ns:host-1.0')->info):
|
||||
{
|
||||
$data = $table->get($connId);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue