Commit 57299d7e authored by fantu's avatar fantu
Browse files

fix other parse error

parent 96cc3195
...@@ -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);
......
...@@ -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);
......
...@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment