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
Jay McConnell
whmcs-coza-epp
Commits
cdc5d0ec
Commit
cdc5d0ec
authored
12 years ago
by
Nigel Kukard
Browse files
Options
Downloads
Patches
Plain Diff
Added basic function to ack a poll message
parent
5196079f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/registrars/cozaepp/cozaepp.php
+28
-1
28 additions, 1 deletion
modules/registrars/cozaepp/cozaepp.php
with
28 additions
and
1 deletion
modules/registrars/cozaepp/cozaepp.php
+
28
−
1
View file @
cdc5d0ec
...
...
@@ -790,6 +790,34 @@ function _cozaepp_message($code) {
}
# Ack a POLL message
function
_cozaepp_ackpoll
(
$client
,
$msgid
)
{
# Ack poll message
$output
=
$client
->
request
(
'
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command>
<poll op="ack" msgID="'
.
$id
.
'"/>
</command>
</epp>
'
);
# Check for error
if
(
PEAR
::
isError
(
$output
))
{
return
$output
;
}
# Decipher XML
$doc
=
new
DOMDocument
();
$doc
->
loadXML
(
$output
);
$coderes
=
$doc
->
getElementsByTagName
(
'result'
)
->
item
(
0
)
->
getAttribute
(
'code'
);
# Check result
if
(
$coderes
!=
'1301'
)
{
return
new
PEAR_Error
(
"Failed to ACK message
$msgid
"
);
}
}
# Function to create internal COZA EPP request
function
_cozaepp_Client
()
{
# Setup include dir
...
...
@@ -840,7 +868,6 @@ function _cozaepp_Client() {
<objURI>urn:ietf:params:xml:ns:contact-1.0</objURI>
</svcs>
</login>
<clTRID>RAR-LOGIN-0000001</clTRID>
</command>
</epp>
'
);
...
...
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