Newer
Older
Form Definition
Tabledefinition
Datatypes:
- INTEGER (Forces the input to Int)
- DOUBLE
- CURRENCY (Formats the values to currency notation)
- VARCHAR (no format check, maxlength: 255)
- TEXT (no format check)
- DATE (Dateformat, automatic conversion to timestamps)
Formtype:
- TEXT (Textfield)
- TEXTAREA (Textarea)
- PASSWORD (Password textfield, input is not shown when edited)
- SELECT (Select option field)
- RADIO
- CHECKBOX
- CHECKBOXARRAY
- FILE
VALUE:
- Wert oder Array
Hint:
The ID field of the database table is not part of the datafield definition.
The ID field must be always auto incement (int or bigint).
*/
$form["title"] = "server_config";
$form["description"] = "";
$form["name"] = "server_config";
$form["action"] = "server_config_edit.php";
$form["db_table"] = "server";
$form["db_table_idx"] = "server_id";
$form["db_history"] = "yes";
$form["tab_default"] = "server";
$form["list_default"] = "server_config_list.php";
$form["auth"] = 'yes'; // yes / no
$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user
$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user
$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete
$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete
$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete
$form["tabs"]['server'] = array(
'title' => "Server",
'width' => 70,
'template' => "templates/server_config_server_edit.htm",
'fields' => array(
//#################################
// Begin Datatable fields
//#################################
'auto_network_configuration' => array(
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'n',
'value' => array(0 => 'n', 1 => 'y')
),
'ip_address' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '192.168.0.105',
'validators' => array(0 => array('type' => 'ISIPV4',
'errmsg' => 'ip_address_error_wrong'),
),
'value' => '',
'width' => '15',
'maxlength' => '255'
),
'netmask' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '255.255.255.0',
'validators' => array(0 => array('type' => 'ISIPV4',
'errmsg' => 'netmask_error_wrong'),
),
'value' => '',
'width' => '15',
'maxlength' => '255'
),
'v6_prefix' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'validators' => array( 0 => array('type' => 'ISV6PREFIX',
'errmsg' => 'v6_prefix_wrong'),
1 => array('type' => 'V6PREFIXEND',
'errmsg' => 'v6_prefix_end'),
2 => array('type' => 'V6PREFIXLENGTH',
'errmsg' => 'v6_prefix_length')
),
'gateway' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '192.168.0.1',
'validators' => array(0 => array('type' => 'ISIPV4',
'errmsg' => 'gateway_error_wrong'),
),
'value' => '',
'width' => '15',
'maxlength' => '255'
),
tbrehm
committed
'firewall' => array(
'datatype' => 'VARCHAR',
'formtype' => 'SELECT',
'default' => 'bastille',
'value' => array('bastille' => 'bastille', 'ufw' => 'ufw'),
'width' => '40',
'maxlength' => '255'
),
'hostname' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => 'server1.domain.tld',
'filters' => array( 0 => array( 'event' => 'SAVE',
'type' => 'IDNTOASCII'),
1 => array( 'event' => 'SHOW',
'type' => 'IDNTOUTF8'),
2 => array( 'event' => 'SAVE',
'type' => 'TOLOWER')
),
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'hostname_error_empty'),
1 => array ('type' => 'REGEX',
'regex' => '/^[\w\.\-]{2,255}\.[a-zA-Z0-9\-]{2,30}$/',
'errmsg'=> 'hostname_error_regex'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'nameservers' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '192.168.0.1,192.168.0.2',
'validators' => array(0 => array('type' => 'NOTEMPTY',
'errmsg' => 'nameservers_error_empty'),
),
'filters' => array(
0 => array( 'event' => 'SAVE',
'type' => 'STRIPTAGS'),
1 => array( 'event' => 'SAVE',
'type' => 'STRIPNL')
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'loglevel' => array(
'datatype' => 'INTEGER',
'formtype' => 'SELECT',
'default' => '2',
'value' => array('0' => 'Debug', '1' => 'Warnings', '2' => 'Errors'),
'width' => '40',
'maxlength' => '255'
),
'admin_notify_events' => array(
'datatype' => 'INTEGER',
'formtype' => 'SELECT',
'default' => '1',
'value' => array('3' => 'no_notifications_txt', '0' => 'Debug', '1' => 'Warnings', '2' => 'Errors'),
'width' => '40',
'maxlength' => '255'
),
'backup_dir' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '/var/backup',
Florian Schaal
committed
'validators' => array( 0 => array ( 'type' => 'REGEX',
'errmsg'=> 'backup_dir_error_regex'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
Florian Schaal
committed
'backup_tmp' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '/tmp/',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'tmpdir_path_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => "/^\/[a-zA-Z0-9\.\-\_\/]{3,128}$/",
Florian Schaal
committed
'errmsg'=> 'tmpdir_path_error_regex'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'backup_dir_is_mount' => array(
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'value' => array(0 => 'n', 1 => 'y')
),
tbrehm
committed
'backup_mode' => array(
'datatype' => 'VARCHAR',
tbrehm
committed
'formtype' => 'SELECT',
'default' => 'userzip',
'value' => array('userzip' => 'backup_mode_userzip', 'rootgz' => 'backup_mode_rootgz'),
'width' => '40',
'maxlength' => '255'
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
'backup_time' => array(
'datatype' => 'VARCHAR',
'formtype' => 'SELECT',
'default' => '0:00',
'value' => array( '0:00' => '0:00h',
'0:15' => '0:15h',
'0:30' => '0:30h',
'0:45' => '0:45h',
'1:00' => '1:00h',
'1:15' => '1:15h',
'1:30' => '1:30h',
'1:45' => '1:45h',
'2:00' => '2:00h',
'2:15' => '2:15h',
'2:30' => '2:30h',
'2:45' => '2:45h',
'3:00' => '3:00h',
'3:15' => '3:15h',
'3:30' => '3:30h',
'3:45' => '3:45h',
'4:00' => '4:00h',
'4:15' => '4:15h',
'4:30' => '4:30h',
'4:45' => '4:45h',
'5:00' => '5:00h',
'5:15' => '5:15h',
'5:30' => '5:30h',
'5:45' => '5:45h',
'6:00' => '6:00h',
'6:15' => '6:15h',
'6:30' => '6:30h',
'6:45' => '6:45h',
'7:00' => '7:00h',
'7:15' => '7:15h',
'7:30' => '7:30h',
'7:45' => '7:45h',
'8:00' => '8:00h',
'8:15' => '8:15h',
'8:30' => '8:30h',
'8:45' => '8:45h',
'9:00' => '9:00h',
'9:15' => '9:15h',
'9:30' => '9:30h',
'9:45' => '9:45h',
'10:00' => '10:00h',
'10:15' => '10:15h',
'10:30' => '10:30h',
'10:45' => '10:45h',
'11:00' => '11:00h',
'11:15' => '11:15h',
'11:30' => '11:30h',
'11:45' => '11:45h',
'12:00' => '12:00h',
'12:15' => '12:15h',
'12:30' => '12:30h',
'12:45' => '12:45h',
'13:00' => '13:00h',
'13:15' => '13:15h',
'13:30' => '13:30h',
'13:45' => '13:45h',
'14:00' => '14:00h',
'14:15' => '14:15h',
'14:30' => '14:30h',
'14:45' => '14:45h',
'15:00' => '15:00h',
'15:15' => '15:15h',
'15:30' => '15:30h',
'15:45' => '15:45h',
'16:00' => '16:00h',
'16:15' => '16:15h',
'16:30' => '16:30h',
'16:45' => '16:45h',
'17:00' => '17:00h',
'17:15' => '17:15h',
'17:30' => '17:30h',
'17:45' => '17:45h',
'18:00' => '18:00h',
'18:15' => '18:15h',
'18:30' => '18:30h',
'18:45' => '18:45h',
'19:00' => '19:00h',
'19:15' => '19:15h',
'19:30' => '19:30h',
'19:45' => '19:45h',
'20:00' => '20:00h',
'20:15' => '20:15h',
'20:30' => '20:30h',
'20:45' => '20:45h',
'21:00' => '21:00h',
'21:15' => '21:15h',
'21:30' => '21:30h',
'21:45' => '21:45h',
'22:00' => '22:00h',
'22:15' => '22:15h',
'22:30' => '22:30h',
'22:45' => '22:45h',
'23:00' => '23:00h',
'23:15' => '23:15h',
'23:30' => '23:30h',
'23:45' => '23:45h',
),
'width' => '40',
'maxlength' => '255'
),
Florian Schaal
committed
'backup_delete' => array(
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'y',
'value' => array(0 => 'n', 1 => 'y')
),
'monit_url' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array ( 0 => array ( 'type' => 'REGEX',
'regex' => '/^[0-9a-zA-Z\:\/\-\.\[\]]{0,255}$/',
'errmsg'=> 'monit_url_error_regex'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'monit_user' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'filters' => array(
0 => array( 'event' => 'SAVE',
'type' => 'STRIPTAGS'),
1 => array( 'event' => 'SAVE',
'type' => 'STRIPNL')
),
'default' => '',
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'monit_password' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'munin_url' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array ( 0 => array ( 'type' => 'REGEX',
'regex' => '/^[0-9a-zA-Z\:\/\-\.\[\]]{0,255}$/',
'errmsg'=> 'munin_url_error_regex'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'munin_user' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'filters' => array(
0 => array( 'event' => 'SAVE',
'type' => 'STRIPTAGS'),
1 => array( 'event' => 'SAVE',
'type' => 'STRIPNL')
),
'default' => '',
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'munin_password' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'monitor_system_updates' => array(
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'y',
'value' => array(0 => 'n', 1 => 'y')
),
'log_retention' => array (
'datatype' => 'INTEGER',
'formtype' => 'TEXT',
'validators' => array ( 0 => array ( 'type' => 'ISPOSITIVE',
'errmsg'=> 'log_retention_error_ispositive'),
),
'default' => '30',
'value' => '',
'width' => '4',
'maxlength' => '4'
),
'migration_mode' => array(
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'n',
'value' => array(0 => 'n', 1 => 'y')
),
//#################################
//#################################
$form["tabs"]['mail'] = array(
'title' => "Mail",
'width' => 60,
'template' => "templates/server_config_mail_edit.htm",
'fields' => array(
//#################################
// Begin Datatable fields
//#################################
'module' => array(
'datatype' => 'VARCHAR',
'formtype' => 'SELECT',
'default' => '',
'value' => array('postfix_mysql' => 'postfix_mysql')
),
'maildir_path' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '/home/vmail/[domain]/[localpart]/',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'maildir_path_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^\/[a-zA-Z0-9\.\-\_\/\[\]]{5,128}$/',
'errmsg'=> 'maildir_path_error_regex'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'maildir_format' => array(
'datatype' => 'VARCHAR',
'formtype' => 'SELECT',
'default' => '20',
'value' => array('maildir' => 'Maildir', 'mdbox' => 'mdbox')
),
'homedir_path' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '/home/vmail/',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'homedir_path_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^\/[a-zA-Z0-9\.\-\_\/]{5,128}$/',
'errmsg'=> 'homedir_path_error_regex'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'content_filter' => array(
'datatype' => 'VARCHAR',
'formtype' => 'SELECT',
'default' => 'rspamd',
'value' => array('amavisd' => 'Amavisd', 'rspamd' => 'Rspamd')
),
'rspamd_password' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'value' => '',
'width' => '40',
'maxlength' => '255',
'filters' => array( 0 => array( 'event' => 'SAVE',
'type' => 'TRIM'),
),
),
'rspamd_available' => array(
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'n',
'value' => array(0 => 'n', 1 => 'y')
),
'dkim_path' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'filters' => array(
0 => array( 'event' => 'SAVE',
'type' => 'STRIPTAGS'),
1 => array( 'event' => 'SAVE',
'type' => 'STRIPNL')
),
'default' => '/var/lib/amavis/dkim',
'value' => '',
'width' => '40',
'maxlength' => '255'
),
Florian Schaal
committed
'dkim_strength' => array(
'datatype' => 'INTEGER',
'formtype' => 'SELECT',
'default' => '2048',
'value' => array('1024' => 'weak (1024)', '2048' => 'normal (2048)', '4096' => 'strong (4096)')
Florian Schaal
committed
),
Florian Schaal
committed
'relayhost_password' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'pop3_imap_daemon' => array(
'datatype' => 'VARCHAR',
'formtype' => 'SELECT',
'default' => '20',
'value' => array('courier' => 'Courier', 'dovecot' => 'Dovecot')
),
'mail_filter_syntax' => array(
'datatype' => 'VARCHAR',
'formtype' => 'SELECT',
'default' => '20',
'value' => array('maildrop' => 'Maildrop', 'sieve' => 'Sieve')
),
'mailuser_uid' => array(
'datatype' => 'INTEGER',
'formtype' => 'TEXT',
'default' => '5000',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'mailuser_uid_error_empty'),
1 => array('type' => 'RANGE',
'range' => '1999:',
'errmsg' => 'mailuser_uid_error_range'),
),
'value' => '',
'width' => '10',
'maxlength' => '255'
),
'mailuser_gid' => array(
'datatype' => 'INTEGER',
'formtype' => 'TEXT',
'default' => '5000',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'mailuser_gid_error_empty'),
1 => array('type' => 'RANGE',
'range' => '1999:',
'errmsg' => 'mailuser_gid_error_range'),
),
'value' => '',
'width' => '10',
'maxlength' => '255'
),
'mailuser_name' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => 'vmail',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'mailuser_name_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^(?!ispconfig|root)([a-zA-Z0-9]{1,20})$/',
'errmsg'=> 'mailuser_name_error_regex'),
),
'value' => '',
'width' => '10',
'maxlength' => '255'
),
'mailuser_group' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => 'vmail',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'mailuser_group_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^(?!ispconfig|root)([a-zA-Z0-9]{1,20})$/',
'errmsg'=> 'mailuser_group_name_error_regex'),
),
'value' => '',
'width' => '10',
'maxlength' => '255'
),
'mailbox_virtual_uidgid_maps' => array(
'validators' => array (0 => array ( 'type' => 'CUSTOM',
'class' => 'validate_server_mail_config',
'function' => 'mailbox_virtual_uidgid_maps'),
),
'relayhost' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'filters' => array(
0 => array( 'event' => 'SAVE',
'type' => 'STRIPTAGS'),
1 => array( 'event' => 'SAVE',
'type' => 'STRIPNL')
),
'default' => '',
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'relayhost_user' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'filters' => array(
0 => array( 'event' => 'SAVE',
'type' => 'STRIPTAGS'),
1 => array( 'event' => 'SAVE',
'type' => 'STRIPNL')
),
'default' => '',
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'relayhost_password' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'reject_sender_login_mismatch' => array (
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'n',
'value' => array(0 => 'n', 1 => 'y')
),
'mailbox_size_limit' => array(
'datatype' => 'INTEGER',
'formtype' => 'TEXT',
'default' => '0',
'value' => '',
'width' => '10',
'maxlength' => '15'
),
'message_size_limit' => array(
'datatype' => 'INTEGER',
'formtype' => 'TEXT',
'default' => '0',
'value' => '',
'width' => '10',
'maxlength' => '15'
'mailbox_quota_stats' => array (
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'y',
'value' => array(0 => 'n', 1 => 'y')
'realtime_blackhole_list' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array ( 0 => array ( 'type' => 'REGEX',
'regex' => '/^((([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])(,\s*(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9]))*)?$/',
'errmsg'=> 'rbl_error_regex'),
),
'width' => '40',
'maxlength' => '255'
),
'overquota_notify_admin' => array(
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'y',
'value' => array(0 => 'n', 1 => 'y')
),
'overquota_notify_client' => array(
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'y',
'value' => array(0 => 'n', 1 => 'y')
),
'overquota_notify_freq' => array(
'datatype' => 'INTEGER',
'formtype' => 'TEXT',
'value' => '',
'width' => '20',
'maxlength' => '255'
),
'overquota_notify_onok' => array(
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'n',
'value' => array(0 => 'n', 1 => 'y')
//#################################
//#################################
$form["tabs"]['getmail'] = array(
'title' => "Getmail",
'width' => 80,
'template' => "templates/server_config_getmail_edit.htm",
'fields' => array(
//#################################
// Begin Datatable fields
//#################################
'getmail_config_dir' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'getmail_config_dir_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^\/[a-zA-Z0-9\.\-\_\/]{5,128}$/',
'errmsg'=> 'getmail_config_dir_error_regex'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
//#################################
//#################################
$form["tabs"]['web'] = array(
'title' => "Web",
'width' => 60,
'template' => "templates/server_config_web_edit.htm",
'fields' => array(
//#################################
// Begin Datatable fields
//#################################
'server_type' => array(
'datatype' => 'VARCHAR',
'formtype' => 'SELECT',
'default' => 'apache',
'value' => array('apache' => 'Apache', 'nginx' => 'Nginx')
'website_basedir' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'website_basedir_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^\/[a-zA-Z0-9\.\-\_\/]{5,128}$/',
'errmsg'=> 'website_basedir_error_regex'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'website_path' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array( 0 => array( 'type' => 'NOTEMPTY',
'errmsg' => 'website_path_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^\/[a-zA-Z0-9\.\-\_\/\[\]]{5,128}$/',
'errmsg'=> 'website_path_error_regex'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'website_symlinks' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'website_symlinks_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^\/[a-zA-Z0-9\.\-\_\/\[\]\:]{5,128}$/',
'errmsg'=> 'website_symlinks_error_regex'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'website_symlinks_rel' => array (
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'n',
'value' => array(0 => 'n', 1 => 'y')
'network_filesystem' => array (
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'n',
'value' => array(0 => 'n', 1 => 'y')
),
'website_autoalias' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'filters' => array(
0 => array( 'event' => 'SAVE',
'type' => 'STRIPTAGS'),
1 => array( 'event' => 'SAVE',
'type' => 'STRIPNL')
),
'default' => '',
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'vhost_rewrite_v6' => array (
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'n',
'value' => array(0 => 'n',1 => 'y')
),
'vhost_proxy_protocol_enabled' => array (
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'n',
'value' => array(0 => 'n',1 => 'y')
),
'vhost_proxy_protocol_http_port' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '880',
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'vhost_proxy_protocol_https_port' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '8443',
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'vhost_conf_dir' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'vhost_conf_dir_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^\/[a-zA-Z0-9\.\-\_\/]{5,128}$/',
'errmsg'=> 'vhost_conf_dir_error_regex'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'vhost_conf_enabled_dir' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'vhost_conf_enabled_dir_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^\/[a-zA-Z0-9\.\-\_\/]{5,128}$/',
'errmsg'=> 'vhost_conf_enabled_dir_error_regex'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'apache_init_script' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array( 0 => array('type' => 'REGEX',
'regex' => '/^(|[a-zA-Z0-9\.\-\_]{1,128})$/',
'errmsg' => 'apache_init_script_error_regex'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
Florian Schaal
committed
'nginx_enable_pagespeed' => array (
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'n',
'value' => array(0 => 'n',1 => 'y')
),
'nginx_vhost_conf_dir' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'nginx_vhost_conf_dir_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^\/[a-zA-Z0-9\.\-\_\/]{5,128}$/',
'errmsg'=> 'nginx_vhost_conf_dir_error_regex'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'nginx_vhost_conf_enabled_dir' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'nginx_vhost_conf_enabled_dir_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^\/[a-zA-Z0-9\.\-\_\/]{5,128}$/',
'errmsg'=> 'nginx_vhost_conf_enabled_dir_error_regex'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'CA_path' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'validators' => array( 0 => array ( 'type' => 'REGEX',
'regex' => '/^[a-zA-Z0-9\.\-\_\/]{0,128}$/',
'errmsg'=> 'ca_path_error_regex'),
),
'default' => '',
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'CA_pass' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'security_level' => array(
'datatype' => 'VARCHAR',
'formtype' => 'SELECT',
'default' => '20',
'value' => array('10' => 'Medium', '20' => 'High')
),
'set_folder_permissions_on_update' => array(
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'n',
'value' => array(0 => 'n', 1 => 'y')
),
'web_folder_protection' => array(
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'y',
'value' => array(0 => 'n', 1 => 'y')
),
'add_web_users_to_sshusers_group' => array(
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'y',
'value' => array(0 => 'n', 1 => 'y')
),
'check_apache_config' => array(
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'y',
'value' => array(0 => 'n', 1 => 'y')
),
'enable_sni' => array(
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'y',
'value' => array(0 => 'n', 1 => 'y')
),
'enable_ip_wildcard' => array(
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'y',
'value' => array(0 => 'n', 1 => 'y')
),
'logging' => array(
'datatype' => 'VARCHAR',
'formtype' => 'SELECT',
'default' => 'yes',
'value' => array('yes' => 'Yes', 'anon' => 'Anonymize IP', 'no' => 'No')
),
'overtraffic_notify_admin' => array(
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'y',
'value' => array(0 => 'n', 1 => 'y')
),
'overtraffic_notify_client' => array(
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'y',
'value' => array(0 => 'n', 1 => 'y')
),
'overquota_notify_admin' => array(
'datatype' => 'VARCHAR',