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:
Pinga 2023-08-23 12:13:01 +03:00
parent fc864aefff
commit d637d1a873
4 changed files with 404 additions and 65 deletions

View file

@ -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(),
];