* @license https://files.froxlor.org/misc/COPYING.txt GPLv2 */ return [ 'domain_ssleditor' => [ 'title' => lng('panel.ssleditor'), 'image' => 'fa-solid fa-lock', 'sections' => [ 'section_a' => [ 'title' => 'SSL certificates', 'image' => 'icons/ssl.png', 'fields' => [ 'domainname' => [ 'label' => lng('domains.domainname'), 'type' => 'label', 'value' => $result_domain['domain'] ], 'ssl_cert_file' => [ 'label' => lng('admin.ipsandports.ssl_cert_file_content'), 'desc' => lng('admin.ipsandports.ssl_paste_description'), 'type' => 'textarea', 'cols' => 100, 'rows' => 15, 'value' => $result['ssl_cert_file'] ], 'ssl_key_file' => [ 'label' => lng('admin.ipsandports.ssl_key_file_content'), 'desc' => lng('admin.ipsandports.ssl_paste_description'), 'type' => 'textarea', 'cols' => 100, 'rows' => 15, 'value' => $result['ssl_key_file'] ], 'ssl_cert_chainfile' => [ 'label' => lng('admin.ipsandports.ssl_cert_chainfile_content'), 'desc' => lng('admin.ipsandports.ssl_paste_description') . lng('admin.ipsandports.ssl_cert_chainfile_content_desc'), 'type' => 'textarea', 'cols' => 100, 'rows' => 15, 'value' => $result['ssl_cert_chainfile'] ], 'ssl_ca_file' => [ 'label' => lng('admin.ipsandports.ssl_ca_file_content'), 'desc' => lng('admin.ipsandports.ssl_paste_description') . lng('admin.ipsandports.ssl_ca_file_content_desc'), 'type' => 'textarea', 'cols' => 100, 'rows' => 15, 'value' => $result['ssl_ca_file'] ], 'do_insert' => [ 'type' => 'hidden', 'value' => '1', 'visible' => empty($result['ssl_cert_file']) ] ] ] ] ] ];