Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
whmcs-coza-epp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gunter Grodotzki
whmcs-coza-epp
Commits
8f08a8c0
Commit
8f08a8c0
authored
10 years ago
by
Charl Mert
Browse files
Options
Downloads
Patches
Plain Diff
performing check for code 2303, domain does not exist closes issue #10
parent
80498069
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/registrars/cozaepp/cozaepp.php
+11
-3
11 additions, 3 deletions
modules/registrars/cozaepp/cozaepp.php
with
11 additions
and
3 deletions
modules/registrars/cozaepp/cozaepp.php
+
11
−
3
View file @
8f08a8c0
...
@@ -1223,10 +1223,13 @@ function cozaepp_TransferSync($params) {
...
@@ -1223,10 +1223,13 @@ function cozaepp_TransferSync($params) {
$coderes
=
$doc
->
getElementsByTagName
(
'result'
)
->
item
(
0
)
->
getAttribute
(
'code'
);
$coderes
=
$doc
->
getElementsByTagName
(
'result'
)
->
item
(
0
)
->
getAttribute
(
'code'
);
$msg
=
$doc
->
getElementsByTagName
(
'msg'
)
->
item
(
0
)
->
nodeValue
;
$msg
=
$doc
->
getElementsByTagName
(
'msg'
)
->
item
(
0
)
->
nodeValue
;
# Check result
# Check result
if
(
$coderes
!=
'1000'
)
{
if
(
$coderes
==
'2303'
)
{
$values
[
'error'
]
=
"TransferSync/domain-info(
$domain
): Domain not found"
;
return
$values
;
}
else
if
(
$coderes
!=
'1000'
)
{
$values
[
'error'
]
=
"TransferSync/domain-info(
$domain
): Code("
.
_cozaepp_message
(
$coderes
)
.
")
$msg
"
;
$values
[
'error'
]
=
"TransferSync/domain-info(
$domain
): Code("
.
_cozaepp_message
(
$coderes
)
.
")
$msg
"
;
return
$values
;
return
$values
;
}
}
# Check if we can get a status back
# Check if we can get a status back
if
(
$doc
->
getElementsByTagName
(
'status'
)
->
item
(
0
))
{
if
(
$doc
->
getElementsByTagName
(
'status'
)
->
item
(
0
))
{
...
@@ -1302,7 +1305,12 @@ function cozaepp_Sync($params) {
...
@@ -1302,7 +1305,12 @@ function cozaepp_Sync($params) {
$coderes
=
$doc
->
getElementsByTagName
(
'result'
)
->
item
(
0
)
->
getAttribute
(
'code'
);
$coderes
=
$doc
->
getElementsByTagName
(
'result'
)
->
item
(
0
)
->
getAttribute
(
'code'
);
$msg
=
$doc
->
getElementsByTagName
(
'msg'
)
->
item
(
0
)
->
nodeValue
;
$msg
=
$doc
->
getElementsByTagName
(
'msg'
)
->
item
(
0
)
->
nodeValue
;
# Check result
# Check result
if
(
$coderes
==
'1000'
)
{
if
(
$coderes
==
'2303'
)
{
# code 2303, domain not found
$values
[
'error'
]
=
"TransferSync/domain-info(
$domain
): Domain not found"
;
return
$values
;
}
else
if
(
$coderes
==
'1000'
)
{
# code 1000, success
if
(
if
(
$doc
->
getElementsByTagName
(
'infData'
)
&&
$doc
->
getElementsByTagName
(
'infData'
)
&&
$doc
->
getElementsByTagName
(
'infData'
)
->
item
(
0
)
->
getElementsByTagName
(
'ns'
)
->
item
(
0
)
&&
$doc
->
getElementsByTagName
(
'infData'
)
->
item
(
0
)
->
getElementsByTagName
(
'ns'
)
->
item
(
0
)
&&
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment