Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
57299d7e
Commit
57299d7e
authored
Dec 20, 2008
by
fantu
Browse files
fix other parse error
parent
96cc3195
Changes
3
Hide whitespace changes
Inline
Side-by-side
install/dist/lib/fedora.lib.php
View file @
57299d7e
...
@@ -442,7 +442,7 @@ class installer_dist extends installer_base {
...
@@ -442,7 +442,7 @@ class installer_dist extends installer_base {
}
}
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'
]);
$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'
]));
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
(
"
{
TCP_PUBLIC_SERVICES
}
"
,
$tcp_public_services
,
$content
);
...
...
install/dist/lib/opensuse.lib.php
View file @
57299d7e
...
@@ -461,7 +461,7 @@ class installer_dist extends installer_base {
...
@@ -461,7 +461,7 @@ class installer_dist extends installer_base {
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'
]);
$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'
]));
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
(
"
{
TCP_PUBLIC_SERVICES
}
"
,
$tcp_public_services
,
$content
);
...
...
install/lib/installer_base.lib.php
View file @
57299d7e
...
@@ -731,7 +731,7 @@ class installer_base {
...
@@ -731,7 +731,7 @@ class installer_base {
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'
]);
$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'
]));
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
(
"
{
TCP_PUBLIC_SERVICES
}
"
,
$tcp_public_services
,
$content
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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