Added host:create EPP command

This commit is contained in:
Pinga 2023-08-19 21:48:31 +03:00
parent 1d31db8e6c
commit 2bcba151f4
4 changed files with 217 additions and 1 deletions

View file

@ -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);