fantu
2008-12-20 50b2c3e0c650c5fca297013003cd51be7a104f56
install/lib/installer_base.lib.php
@@ -728,9 +728,10 @@
          $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']));
      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);