Some long overdue updates

This commit is contained in:
Pinga 2023-07-13 10:29:33 +03:00 committed by GitHub
parent 8623c23763
commit 002d0cfa54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

27
epp.php
View file

@ -11,6 +11,8 @@
class Registrar_Adapter_EPP extends Registrar_AdapterAbstract
{
public $config = array();
public $socket;
public $isLogined;
public function __construct($options)
{
@ -29,6 +31,15 @@ class Registrar_Adapter_EPP extends Registrar_AdapterAbstract
if(isset($options['registrarprefix'])) {
$this->config['registrarprefix'] = $options['registrarprefix'];
}
if(isset($options['ssl_cert'])) {
$this->config['ssl_cert'] = $options['ssl_cert'];
}
if(isset($options['ssl_key'])) {
$this->config['ssl_key'] = $options['ssl_key'];
}
if(isset($options['ssl_ca'])) {
$this->config['ssl_ca'] = $options['ssl_ca'];
}
}
public function getTlds()
@ -49,6 +60,7 @@ class Registrar_Adapter_EPP extends Registrar_AdapterAbstract
'password' => array('password', array(
'label' => 'EPP Server Password',
'required' => true,
'renderPassword' => true,
),
),
'host' => array('text', array(
@ -66,6 +78,21 @@ class Registrar_Adapter_EPP extends Registrar_AdapterAbstract
'required' => true,
),
),
'ssl_cert' => array('textarea', array(
'label' => 'SSL Certificate',
'required' => true,
),
),
'ssl_key' => array('textarea', array(
'label' => 'SSL Key',
'required' => true,
),
),
'ssl_ca' => array('textarea', array(
'label' => 'SSL CA',
'required' => false,
),
),
),
);
}