tbrehm
2008-12-20 9ce725d5fad24e51d25ac111bc6a57946a264d5d
fixed a syntax error.
3 files modified
14 ■■■■■ changed files
install/dist/lib/fedora.lib.php 5 ●●●●● patch | view | raw | blame | history
install/dist/lib/opensuse.lib.php 6 ●●●●● patch | view | raw | blame | history
install/lib/installer_base.lib.php 3 ●●●● patch | view | raw | blame | history
install/dist/lib/fedora.lib.php
@@ -440,6 +440,11 @@
            $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
@@ -458,6 +458,12 @@
            $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/lib/installer_base.lib.php
@@ -728,7 +728,8 @@
            $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']));
        }