make unconfigured/unknown domain page a file-template
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user