Skip to content

Commit 4e3feed

Browse files
committed
Add form element for jailkit_chroot_authorized_keys_template #4901
1 parent 5dbcd93 commit 4e3feed

27 files changed

+65
-0
lines changed

interface/web/admin/form/server_config.tform.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1814,6 +1814,18 @@
18141814
'width' => '40',
18151815
'maxlength' => '1000'
18161816
),
1817+
'jailkit_chroot_authorized_keys_template' => array(
1818+
'datatype' => 'VARCHAR',
1819+
'formtype' => 'TEXT',
1820+
'default' => '',
1821+
'validators' => array( 0 => array ( 'type' => 'REGEX',
1822+
'regex' => '/^[a-zA-Z0-9\.\-\_\/\ ]{1,}$/',
1823+
'errmsg'=> 'jailkit_chroot_authorized_keys_template_error_regex'),
1824+
),
1825+
'value' => '',
1826+
'width' => '40',
1827+
'maxlength' => '1000'
1828+
),
18171829
//#################################
18181830
// END Datatable fields
18191831
//#################################

interface/web/admin/lib/lang/ar_server_config.lng

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,4 +310,6 @@ $wb['rspamd_password_txt'] = 'Rspamd Password';
310310
$wb['vhost_proxy_protocol_enabled_txt'] = 'Enable PROXY Protocol';
311311
$wb['vhost_proxy_protocol_http_port_txt'] = 'PROXY Protocol HTTP Port';
312312
$wb['vhost_proxy_protocol_https_port_txt'] = 'PROXY Protocol HTTPS Port';
313+
$wb["jailkit_chroot_authorized_keys_template_txt"] = 'Jailkit authorized_keys template';
314+
$wb['jailkit_chroot_authorized_keys_template_error_regex'] = 'Invalid jaikit chroot authorized_keys template file.';
313315
?>

interface/web/admin/lib/lang/bg_server_config.lng

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,4 +310,6 @@ $wb['rspamd_password_txt'] = 'Rspamd Password';
310310
$wb['vhost_proxy_protocol_enabled_txt'] = 'Enable PROXY Protocol';
311311
$wb['vhost_proxy_protocol_http_port_txt'] = 'PROXY Protocol HTTP Port';
312312
$wb['vhost_proxy_protocol_https_port_txt'] = 'PROXY Protocol HTTPS Port';
313+
$wb["jailkit_chroot_authorized_keys_template_txt"] = 'Jailkit authorized_keys template';
314+
$wb['jailkit_chroot_authorized_keys_template_error_regex'] = 'Invalid jaikit chroot authorized_keys template file.';
313315
?>

interface/web/admin/lib/lang/br_server_config.lng

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,3 +311,5 @@ $wb['rspamd_password_txt'] = 'Senha do rspamd';
311311
$wb['vhost_proxy_protocol_enabled_txt'] = 'Enable PROXY Protocol';
312312
$wb['vhost_proxy_protocol_http_port_txt'] = 'PROXY Protocol HTTP Port';
313313
$wb['vhost_proxy_protocol_https_port_txt'] = 'PROXY Protocol HTTPS Port';
314+
$wb["jailkit_chroot_authorized_keys_template_txt"] = 'Jailkit authorized_keys template';
315+
$wb['jailkit_chroot_authorized_keys_template_error_regex'] = 'Invalid jaikit chroot authorized_keys template file.';

interface/web/admin/lib/lang/ca_server_config.lng

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,4 +310,6 @@ $wb['rspamd_password_txt'] = 'Rspamd Password';
310310
$wb['vhost_proxy_protocol_enabled_txt'] = 'Enable PROXY Protocol';
311311
$wb['vhost_proxy_protocol_http_port_txt'] = 'PROXY Protocol HTTP Port';
312312
$wb['vhost_proxy_protocol_https_port_txt'] = 'PROXY Protocol HTTPS Port';
313+
$wb["jailkit_chroot_authorized_keys_template_txt"] = 'Jailkit authorized_keys template';
314+
$wb['jailkit_chroot_authorized_keys_template_error_regex'] = 'Invalid jaikit chroot authorized_keys template file.';
313315
?>

interface/web/admin/lib/lang/cz_server_config.lng

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,4 +310,6 @@ $wb['rspamd_password_txt'] = 'Rspamd Password';
310310
$wb['vhost_proxy_protocol_enabled_txt'] = 'Enable PROXY Protocol';
311311
$wb['vhost_proxy_protocol_http_port_txt'] = 'PROXY Protocol HTTP Port';
312312
$wb['vhost_proxy_protocol_https_port_txt'] = 'PROXY Protocol HTTPS Port';
313+
$wb["jailkit_chroot_authorized_keys_template_txt"] = 'Jailkit authorized_keys template';
314+
$wb['jailkit_chroot_authorized_keys_template_error_regex'] = 'Invalid jaikit chroot authorized_keys template file.';
313315
?>

interface/web/admin/lib/lang/de_server_config.lng

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,4 +310,6 @@ $wb['rspamd_password_txt'] = 'Rspamd-Passwort';
310310
$wb['vhost_proxy_protocol_enabled_txt'] = 'Enable PROXY Protocol';
311311
$wb['vhost_proxy_protocol_http_port_txt'] = 'PROXY Protocol HTTP Port';
312312
$wb['vhost_proxy_protocol_https_port_txt'] = 'PROXY Protocol HTTPS Port';
313+
$wb["jailkit_chroot_authorized_keys_template_txt"] = 'Jailkit authorized_keys template';
314+
$wb['jailkit_chroot_authorized_keys_template_error_regex'] = 'Invalid jaikit chroot authorized_keys template file.';
313315
?>

interface/web/admin/lib/lang/dk_server_config.lng

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,4 +310,6 @@ $wb['rspamd_password_txt'] = 'Rspamd Password';
310310
$wb['vhost_proxy_protocol_enabled_txt'] = 'Enable PROXY Protocol';
311311
$wb['vhost_proxy_protocol_http_port_txt'] = 'PROXY Protocol HTTP Port';
312312
$wb['vhost_proxy_protocol_https_port_txt'] = 'PROXY Protocol HTTPS Port';
313+
$wb["jailkit_chroot_authorized_keys_template_txt"] = 'Jailkit authorized_keys template';
314+
$wb['jailkit_chroot_authorized_keys_template_error_regex'] = 'Invalid jaikit chroot authorized_keys template file.';
313315
?>

interface/web/admin/lib/lang/el_server_config.lng

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,4 +310,6 @@ $wb['rspamd_password_txt'] = 'Rspamd Password';
310310
$wb['vhost_proxy_protocol_enabled_txt'] = 'Enable PROXY Protocol';
311311
$wb['vhost_proxy_protocol_http_port_txt'] = 'PROXY Protocol HTTP Port';
312312
$wb['vhost_proxy_protocol_https_port_txt'] = 'PROXY Protocol HTTPS Port';
313+
$wb["jailkit_chroot_authorized_keys_template_txt"] = 'Jailkit authorized_keys template';
314+
$wb['jailkit_chroot_authorized_keys_template_error_regex'] = 'Invalid jaikit chroot authorized_keys template file.';
313315
?>

interface/web/admin/lib/lang/en_server_config.lng

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ $wb["jailkit_chroot_home_txt"] = 'Jailkit chroot home';
1414
$wb["jailkit_chroot_app_sections_txt"] = 'Jailkit chroot app sections';
1515
$wb["jailkit_chroot_app_programs_txt"] = 'Jailkit chrooted applications';
1616
$wb["jailkit_chroot_cron_programs_txt"] = 'Jailkit cron chrooted applications';
17+
$wb["jailkit_chroot_authorized_keys_template_txt"] = 'Jailkit authorized_keys template';
1718
$wb["website_path_txt"] = 'Website path';
1819
$wb["website_symlinks_txt"] = 'Website symlinks';
1920
$wb['website_symlinks_rel_txt'] = 'Make relative symlinks';
@@ -269,6 +270,7 @@ $wb['jailkit_chroot_home_error_regex'] = 'Invalid jaikit chroot home.';
269270
$wb['jailkit_chroot_app_sections_error_regex'] = 'Invalid jaikit chroot sections.';
270271
$wb['jailkit_chroot_app_programs_error_regex'] = 'Invalid jaikit chroot app programs.';
271272
$wb['jailkit_chroot_cron_programs_error_regex'] = 'Invalid jaikit chroot cron programs.';
273+
$wb['jailkit_chroot_authorized_keys_template_error_regex'] = 'Invalid jaikit chroot authorized_keys template file.';
272274
$wb['vlogger_config_dir_error_regex'] = 'Invalid vlogger config dir.';
273275
$wb['cron_init_script_error_regex'] = 'Invalid cron init script.';
274276
$wb['crontab_dir_error_regex'] = 'Invalid crontab directory.';

0 commit comments

Comments
 (0)