* @license https://files.froxlor.org/misc/COPYING.txt GPLv2 */ return [ 'mysqlserver_edit' => [ 'title' => lng('admin.mysqlserver.edit'), 'image' => 'fa-solid fa-pen', 'self_overview' => ['section' => 'mysqlserver', 'page' => 'mysqlserver'], 'sections' => [ 'section_a' => [ 'title' => lng('admin.mysqlserver.mysqlserver'), 'fields' => [ 'mysql_host' => [ 'label' => lng('admin.mysqlserver.host'), 'type' => empty($result['id']) ? 'label' : 'text', 'value' => $result['host'], 'mandatory' => true, ], 'mysql_port' => [ 'label' => lng('admin.mysqlserver.port'), 'type' => 'number', 'min' => 1, 'max' => 65535, 'value' => $result['port'], 'mandatory' => true ], 'description' => [ 'label' => lng('admin.mysqlserver.caption'), 'type' => 'text', 'value' => $result['caption'], ], 'privileged_user' => [ 'label' => lng('admin.mysqlserver.user'), 'type' => 'text', 'value' => $result['user'], 'mandatory' => true ], 'privileged_password' => [ 'label' => lng('admin.mysqlserver.password_emptynochange'), 'type' => 'password' ], 'allow_all_customers' => [ 'label' => lng('admin.mysqlserver.allowall'), 'type' => 'checkbox', 'value' => '1', 'checked' => false ], 'test_connection' => [ 'label' => lng('admin.mysqlserver.testconn'), 'type' => 'checkbox', 'value' => '1', 'checked' => true ] ] ], 'section_b' => [ 'title' => lng('admin.mysqlserver.ssl'), 'fields' => [ 'mysql_ca' => [ 'label' => lng('admin.mysqlserver.ssl_cert_file'), 'type' => 'text', 'value' => $result['ssl']['caFile'] ?? "", ], 'mysql_verifycert' => [ 'label' => lng('admin.mysqlserver.verify_ca'), 'type' => 'checkbox', 'value' => '1', 'checked' => $result['ssl']['verifyServerCertificate'] ?? false, ] ] ] ] ] ];