Skip to content
web_vhost_domain.tform.php 32 KiB
Newer Older
							'errmsg' => 'nginx_directive_blocked_error'
				'default' => '',
				'value'  => '',
				'width'  => '30',
				'maxlength' => '255'
			),
			'proxy_directives' => array (
				'datatype' => 'TEXT',
				'formtype' => 'TEXT',
				'default' => '',
				'value'  => '',
				'width'  => '30',
				'maxlength' => '255'
			),
			'added_date' => array (
				'datatype'	=> 'DATE',
				'formtype'	=> 'TEXT',
				'default'	=> date($app->lng('conf_format_dateshort')),
				'value'		=> '',
				'separator'	=> '',
				'width'		=> '15',
				'maxlength'	=> '15',
				'rows'		=> '',
				'cols'		=> ''
			),
			'added_by' => array (
				'datatype' => 'VARCHAR',
				'formtype' => 'TEXT',
				'default' => $_SESSION['s']['user']['username'],
				'value'  => '',
				'separator' => '',
				'width'  => '30',
				'maxlength' => '255',
				'rows'  => '',
				'cols'  => ''
			),
			'http_port' => array (
				'datatype' => 'INTEGER',
				'formtype' => 'TEXT',
				'validators' => array (  0 => array ( 'type' => 'REGEX',
						'regex' => '/^([0-9]{1,5})$/',
						'errmsg'=> 'http_port_error_regex'),
				),
				'default' => '0',
				'value'  => '',
				'width'  => '3',
				'maxlength' => '6'
			),
			'https_port' => array (
				'datatype' => 'INTEGER',
				'formtype' => 'TEXT',
				'validators' => array (  0 => array ( 'type' => 'REGEX',
						'regex' => '/^([0-9]{1,5})$/',
						'errmsg'=> 'https_port_error_regex'),
				),
				'default' => '0',
				'value'  => '',
				'width'  => '3',
				'maxlength' => '6'
			'log_retention' => array (
				'datatype' => 'INTEGER',
				'formtype' => 'TEXT',
				'validators' => array (  0 => array ( 'type' => 'REGEX',
					'regex' => '/^([0-9]{1,4})$/',
					'errmsg'=> 'log_retention_error_regex'),
				),
				'default' => '30',
				'value' => '',
				'width' => '4',
				'maxlength' => '4'
			),
			'jailkit_chroot_app_sections' => array(
				'datatype' => 'TEXT',
				'formtype' => 'TEXT',
				'default' => '',
				'validators' => array(  0 => array ('type' => 'REGEX',
Jesse Norell's avatar
Jesse Norell committed
								'regex' => '/^[a-zA-Z0-9\-\_\ ]*$/',
								'errmsg'=> 'jailkit_chroot_app_sections_error_regex'),
				),
				'value' => '',
				'width' => '40',
				'maxlength' => '1000'
			),
			'jailkit_chroot_app_programs' => array(
				'datatype' => 'TEXT',
				'formtype' => 'TEXT',
				'default' => '',
				'validators' => array(  0 => array('type' => 'REGEX',
Jesse Norell's avatar
Jesse Norell committed
								'regex' => '/^[a-zA-Z0-9\.\-\_\/\ ]*$/',
								'errmsg'=> 'jailkit_chroot_app_programs_error_regex'),
				),
				'value' => '',
				'width' => '40',
				'maxlength' => '1000'
			),
			'delete_unused_jailkit' => array (
				'datatype' => 'VARCHAR',
				'formtype' => 'CHECKBOX',
				'default' => 'n',
				'value' => array(0 => 'n', 1 => 'y')
			),
			//#################################
			// END Datatable fields
			//#################################
		)
	);