make unconfigured/unknown domain page a file-template

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2023-11-26 10:53:41 +01:00
parent 75cf44a6d2
commit 735ef85088
11 changed files with 95 additions and 44 deletions

View File

@@ -38,11 +38,20 @@ return [
'type' => 'select',
'select_var' => $free_templates
],
'file_extension' => [
'label' => lng('admin.templates.file_extension'),
'type' => 'text',
'string_regexp' => '/^[a-zA-Z0-9]{1,6}$/',
'default' => 'html',
'value' => 'html',
'mandatory' => true
],
'filecontent' => [
'label' => lng('admin.templates.filecontent'),
'type' => 'textarea',
'cols' => 60,
'rows' => 12
'rows' => 12,
'mandatory' => true
],
'filesend' => [
'type' => 'hidden',

View File

@@ -39,12 +39,21 @@ return [
'value' => lng('admin.templates.' . $row['varname']),
'display' => lng('admin.templates.' . $row['varname'])
],
'file_extension' => [
'label' => lng('admin.templates.file_extension'),
'type' => 'text',
'string_regexp' => '/^[a-zA-Z0-9]{1,6}$/',
'value' => $row['file_extension'],
'default' => 'html',
'mandatory' => true
],
'filecontent' => [
'label' => lng('admin.templates.filecontent'),
'type' => 'textarea',
'cols' => 60,
'rows' => 12,
'value' => $row['value']
'value' => $row['value'],
'mandatory' => true
],
'filesend' => [
'type' => 'hidden',