mirror of
https://github.com/getnamingo/registry.git
synced 2025-05-15 09:07:00 +02:00
Added host:update
- Fixes in host:create - Fixes in EPP error messages - Fixed #6 - Fixed #8 - Fixes in contact:update - Pgsql fixes
This commit is contained in:
parent
fc864aefff
commit
d637d1a873
4 changed files with 404 additions and 65 deletions
|
@ -48,12 +48,16 @@ function sendGreeting($conn) {
|
|||
sendEppResponse($conn, $xml);
|
||||
}
|
||||
|
||||
function sendEppError($conn, $code, $msg) {
|
||||
function sendEppError($conn, $code, $msg, $clTRID = "000") {
|
||||
if (!isset($clTRID)) {
|
||||
$clTRID = "000";
|
||||
}
|
||||
|
||||
$response = [
|
||||
'command' => 'error',
|
||||
'resultCode' => $code,
|
||||
'msg' => $msg,
|
||||
'clTRID' => '1',
|
||||
'human_readable_message' => $msg,
|
||||
'clTRID' => $clTRID,
|
||||
'svTRID' => generateSvTRID(),
|
||||
];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue