Skip to content

Commit 634d3a7

Browse files
author
Till Brehm
committed
Added missing http_port and https_port fields.
1 parent 5882e86 commit 634d3a7

File tree

7 files changed

+43
-0
lines changed

7 files changed

+43
-0
lines changed

install/sql/incremental/upd_dev_collection.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,5 +248,6 @@ UPDATE `sys_session` SET `date_created` = NULL WHERE `date_created` = '0000-00-0
248248
UPDATE `sys_session` SET `last_updated` = NULL WHERE `last_updated` = '0000-00-00 00:00:00';
249249
UPDATE `web_domain` SET `added_date` = NULL WHERE `added_date` = '0000-00-00';
250250
UPDATE `web_traffic` SET `traffic_date` = NULL WHERE `traffic_date` = '0000-00-00';
251+
ALTER TABLE `web_domain` ADD `http_port` INT NOT NULL DEFAULT '80' , ADD `https_port` INT NOT NULL DEFAULT '443' ;
251252

252253

install/sql/ispconfig3.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1979,6 +1979,8 @@ CREATE TABLE `web_domain` (
19791979
`http_port` int(11) unsigned NOT NULL DEFAULT '80',
19801980
`https_port` int(11) unsigned NOT NULL DEFAULT '443',
19811981
`folder_directive_snippets` text NOT NULL,
1982+
`http_port` INT NOT NULL DEFAULT '80',
1983+
`https_port` INT NOT NULL DEFAULT '443',
19821984
PRIMARY KEY (`domain_id`),
19831985
UNIQUE KEY `serverdomain` ( `server_id` , `ip_address`, `domain` )
19841986
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

interface/web/sites/form/web_vhost_domain.tform.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -894,6 +894,30 @@
894894
'rows' => '',
895895
'cols' => ''
896896
),
897+
'http_port' => array (
898+
'datatype' => 'INTEGER',
899+
'formtype' => 'TEXT',
900+
'validators' => array ( 0 => array ( 'type' => 'REGEX',
901+
'regex' => '/^([0-9]{1,5})$/',
902+
'errmsg'=> 'http_port_error_regex'),
903+
),
904+
'default' => '0',
905+
'value' => '',
906+
'width' => '3',
907+
'maxlength' => '6'
908+
),
909+
'https_port' => array (
910+
'datatype' => 'INTEGER',
911+
'formtype' => 'TEXT',
912+
'validators' => array ( 0 => array ( 'type' => 'REGEX',
913+
'regex' => '/^([0-9]{1,5})$/',
914+
'errmsg'=> 'https_port_error_regex'),
915+
),
916+
'default' => '0',
917+
'value' => '',
918+
'width' => '3',
919+
'maxlength' => '6'
920+
)
897921
//#################################
898922
// ENDE Datatable fields
899923
//#################################

interface/web/sites/lib/lang/en_web_domain.lng

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,8 @@ $wb['backup_excludes_error_regex'] = 'The excluded directories contain invalid c
129129
$wb['invalid_custom_php_ini_settings_txt'] = 'Invalid php.ini settings';
130130
$wb['invalid_system_user_or_group_txt'] = 'Invalid system user or group';
131131
$wb['apache_directive_blocked_error'] = 'Apache directive blocked by security settings:';
132+
$wb['http_port_txt'] = 'HTTP Port';
133+
$wb['https_port_txt'] = 'HTTPS Port';
134+
$wb['http_port_error_regex'] = 'HTTP Port invalid.';
135+
$wb['https_port_error_regex'] = 'HTTPS Port invalid.';
132136
?>

interface/web/sites/lib/lang/en_web_subdomain.lng

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,8 @@ $wb['no_flag_txt'] = 'No flag';
4343
$wb['proxy_directives_txt'] = 'Proxy Directives';
4444
$wb['available_proxy_directive_snippets_txt'] = 'Available Proxy Directive Snippets:';
4545
$wb['error_proxy_requires_url'] = 'Redirect Type "proxy" requires a URL as the redirect path.';
46+
$wb['http_port_txt'] = 'HTTP Port';
47+
$wb['https_port_txt'] = 'HTTPS Port';
48+
$wb['http_port_error_regex'] = 'HTTP Port invalid.';
49+
$wb['https_port_error_regex'] = 'HTTPS Port invalid.';
4650
?>

interface/web/sites/lib/lang/en_web_vhost_domain.lng

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,4 +148,8 @@ $wb['ssl_letsencrypt_txt'] = 'Let\'s Encrypt SSL';
148148
$wb['rewrite_to_https_txt'] = 'Rewrite HTTP to HTTPS';
149149
$wb['password_strength_txt'] = 'Password strength';
150150
$wb['directive_snippets_id_txt'] = 'Web server config';
151+
$wb['http_port_txt'] = 'HTTP Port';
152+
$wb['https_port_txt'] = 'HTTPS Port';
153+
$wb['http_port_error_regex'] = 'HTTP Port invalid.';
154+
$wb['https_port_error_regex'] = 'HTTPS Port invalid.';
151155
?>

interface/web/sites/lib/lang/en_web_vhost_subdomain.lng

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,4 +125,8 @@ $wb['backup_excludes_txt'] = 'Excluded Directories';
125125
$wb['backup_excludes_note_txt'] = '(Separate multiple directories with commas. Example: web/cache/*,web/backup)';
126126
$wb['backup_excludes_error_regex'] = 'The excluded directories contain invalid characters.';
127127
$wb['subdomain_error_empty'] = 'The subdommain field is empty or contains invalid characters.';
128+
$wb['http_port_txt'] = 'HTTP Port';
129+
$wb['https_port_txt'] = 'HTTPS Port';
130+
$wb['http_port_error_regex'] = 'HTTP Port invalid.';
131+
$wb['https_port_error_regex'] = 'HTTPS Port invalid.';
128132
?>

0 commit comments

Comments
 (0)