Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
9ce725d5
Commit
9ce725d5
authored
Dec 20, 2008
by
tbrehm
Browse files
fixed a syntax error.
parent
87fb6509
Changes
3
Hide whitespace changes
Inline
Side-by-side
install/dist/lib/fedora.lib.php
View file @
9ce725d5
...
...
@@ -440,6 +440,11 @@ class installer_dist extends installer_base {
$tcp_public_services
=
'21 22 25 53 80 110 443 3306 8080 10000'
;
$udp_public_services
=
'53'
;
}
if
(
!
stristr
(
$tcp_public_services
,
$conf
[
'apache'
][
'vhost_port'
]))
{
$tcp_public_services
.
=
' '
.
intval
(
$conf
[
'apache'
][
'vhost_port'
]));
if
(
$row
[
"tcp_port"
])
!=
''
)
$this
->
db
->
query
(
"UPDATE firewall SET tcp_port = tcp_port + ',"
.
intval
(
$conf
[
'apache'
][
'vhost_port'
])
.
"' WHERE server_id = "
.
intval
(
$conf
[
'server_id'
]));
}
$content
=
str_replace
(
"
{
TCP_PUBLIC_SERVICES
}
"
,
$tcp_public_services
,
$content
);
$content
=
str_replace
(
"
{
UDP_PUBLIC_SERVICES
}
"
,
$udp_public_services
,
$content
);
...
...
install/dist/lib/opensuse.lib.php
View file @
9ce725d5
...
...
@@ -458,9 +458,15 @@ class installer_dist extends installer_base {
$tcp_public_services
=
'21 22 25 53 80 110 443 3306 8080 10000'
;
$udp_public_services
=
'53'
;
}
if
(
!
stristr
(
$tcp_public_services
,
$conf
[
'apache'
][
'vhost_port'
]))
{
$tcp_public_services
.
=
' '
.
intval
(
$conf
[
'apache'
][
'vhost_port'
]));
if
(
$row
[
"tcp_port"
])
!=
''
)
$this
->
db
->
query
(
"UPDATE firewall SET tcp_port = tcp_port + ',"
.
intval
(
$conf
[
'apache'
][
'vhost_port'
])
.
"' WHERE server_id = "
.
intval
(
$conf
[
'server_id'
]));
}
$content
=
str_replace
(
"
{
TCP_PUBLIC_SERVICES
}
"
,
$tcp_public_services
,
$content
);
$content
=
str_replace
(
"
{
UDP_PUBLIC_SERVICES
}
"
,
$udp_public_services
,
$content
);
wf
(
"/etc/Bastille/bastille-firewall.cfg"
,
$content
);
if
(
is_file
(
$dist_init_scripts
.
"/bastille-firewall"
))
caselog
(
"mv -f
$dist_init_scripts
/bastille-firewall
$dist_init_scripts
/bastille-firewall.backup"
,
__FILE__
,
__LINE__
);
...
...
install/lib/installer_base.lib.php
View file @
9ce725d5
...
...
@@ -728,7 +728,8 @@ class installer_base {
$tcp_public_services
=
'21 22 25 53 80 110 443 3306 8080 10000'
;
$udp_public_services
=
'53'
;
}
if
(
!
stristr
(
$tcp_public_services
,
$conf
[
'apache'
][
'vhost_port'
])
{
if
(
!
stristr
(
$tcp_public_services
,
$conf
[
'apache'
][
'vhost_port'
]))
{
$tcp_public_services
.
=
' '
.
intval
(
$conf
[
'apache'
][
'vhost_port'
]));
if
(
$row
[
"tcp_port"
])
!=
''
)
$this
->
db
->
query
(
"UPDATE firewall SET tcp_port = tcp_port + ',"
.
intval
(
$conf
[
'apache'
][
'vhost_port'
])
.
"' WHERE server_id = "
.
intval
(
$conf
[
'server_id'
]));
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment