tbrehm
2010-10-22 fb3a98c0f06fb14a188e5a020936768fa04cb205
install/dist/lib/opensuse.lib.php
@@ -541,7 +541,7 @@
      //copy('tpl/apache_ispconfig.conf.master',$vhost_conf_dir.'/ispconfig.conf');
      $content = rf("tpl/apache_ispconfig.conf.master");
      $records = $this->db->queryAllRecords("SELECT * FROM server_ip WHERE server_id = ".$conf["server_id"]." AND virtualhost = 'y'");
      if(count($records) > 0) {
      if(is_array($records) && count($records) > 0) {
         foreach($records as $rec) {
            $content .= "NameVirtualHost ".$rec["ip_address"].":80\n";
            $content .= "NameVirtualHost ".$rec["ip_address"].":443\n";
@@ -591,7 +591,7 @@
        $tcp_public_services = '';
        $udp_public_services = '';
      
      $row = $this->db->queryOneRecord("SELECT * FROM firewall WHERE server_id = ".intval($conf['server_id']));
      $row = $this->db->queryOneRecord('SELECT * FROM '.$conf["mysql"]["database"].'.firewall WHERE server_id = '.intval($conf['server_id']));
      
        if(trim($row["tcp_port"]) != '' || trim($row["udp_port"]) != ''){
          $tcp_public_services = trim(str_replace(',',' ',$row["tcp_port"]));
@@ -710,6 +710,12 @@
      
      wf("$install_dir/server/lib/$configfile", $content);
      
      //* Create the config file for remote-actions (but only, if it does not exist, because
      //  the value is a autoinc-value and so changed by the remoteaction_core_module
      if (!file_exists($install_dir.'/server/lib/remote_action.inc.php')) {
         $content = '<?php' . "\n" . '$maxid_remote_action = 0;' . "\n" . '?>';
         wf($install_dir.'/server/lib/remote_action.inc.php', $content);
      }
      
      //* Enable the server modules and plugins.
      // TODO: Implement a selector which modules and plugins shall be enabled.