| | |
| | | * -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); |
| | |
| | | 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()) { |
| | |
| | | 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()) { |
| | |
| | | if(@is_dir('/usr/local/ispconfig/interface/web/domain')) exec('rm -rf /usr/local/ispconfig/interface/web/domain'); |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | ?> |