Update epp.php
This commit is contained in:
parent
ff7945987c
commit
86f070da21
1 changed files with 18 additions and 0 deletions
18
epp.php
18
epp.php
|
@ -357,12 +357,30 @@ class Registrar_Adapter_EPP extends Registrar_AdapterAbstract
|
|||
$exDate = (string)$r->exDate;
|
||||
$eppcode = (string)$r->authInfo->pw;
|
||||
|
||||
$status = array();
|
||||
$i = 0;
|
||||
foreach ($r->status as $e) {
|
||||
$i++;
|
||||
$status[$i] = (string)$e->attributes()->s;
|
||||
}
|
||||
$ns = array();
|
||||
$i = 0;
|
||||
foreach ($r->ns->hostObj as $hostObj) {
|
||||
$i++;
|
||||
$ns[$i] = (string)$hostObj;
|
||||
}
|
||||
|
||||
$crDate = strtotime($crDate);
|
||||
$exDate = strtotime($exDate);
|
||||
|
||||
$domain->setRegistrationTime($crDate);
|
||||
$domain->setExpirationTime($exDate);
|
||||
$domain->setEpp($eppcode);
|
||||
|
||||
$domain->setNs1(isset($ns[0]) ? $ns[0] : '');
|
||||
$domain->setNs2(isset($ns[1]) ? $ns[1] : '');
|
||||
$domain->setNs3(isset($ns[2]) ? $ns[2] : '');
|
||||
$domain->setNs4(isset($ns[3]) ? $ns[3] : '');
|
||||
}
|
||||
|
||||
catch(exception $e) {
|
||||
|
|
Loading…
Reference in a new issue