Marius Cramer
2013-11-14 b1a6a5a3991cec5cd08873b01376e45d0b247f18
install/dist/lib/gentoo.lib.php
@@ -380,6 +380,8 @@
       * -D displaydotfiles 
       * -H dontresolve
       */
      $content = preg_replace('/MISC_OTHER="[^"]+"/', 'MISC_OTHER="-b -A -E -Z -D -H -O clf:'.$logdir.'/transfer.log"', $content);
      
      $this->write_config_file($conf['pureftpd']['config_file'], $content);
@@ -759,7 +761,7 @@
         if ($dh = opendir($dir)) {
            while (($file = readdir($dh)) !== false) {
               if($file != '.' && $file != '..' && substr($file,-8,8) == '.inc.php') {
                  include_once($install_dir.'/server/mods-available/'.$file);
                  include_once $install_dir.'/server/mods-available/'.$file;
                  $module_name = substr($file,0,-8);
                  $tmp = new $module_name;
                  if($tmp->onInstall()) {
@@ -788,7 +790,7 @@
               if($conf['apache']['installed'] == true && $file == 'nginx_plugin.inc.php') continue;
               if($conf['nginx']['installed'] == true && $file == 'apache2_plugin.inc.php') continue;
               if($file != '.' && $file != '..' && substr($file,-8,8) == '.inc.php') {
                  include_once($install_dir.'/server/plugins-available/'.$file);
                  include_once $install_dir.'/server/plugins-available/'.$file;
                  $plugin_name = substr($file,0,-8);
                  $tmp = new $plugin_name;
                  if(method_exists($tmp,'onInstall') && $tmp->onInstall()) {
@@ -1060,6 +1062,7 @@
      if(@is_dir('/usr/local/ispconfig/interface/web/domain')) exec('rm -rf /usr/local/ispconfig/interface/web/domain');
      
    }
}
?>