| | |
| | | $web_config = $app->getconf->get_server_config($conf["server_id"], 'web'); |
| | | |
| | | //* Check if this is a chrooted setup |
| | | if($web_config['website_basedir'] != '' && @is_file($web_config['/var/www'].'/etc/passwd')) { |
| | | if($web_config['website_basedir'] != '' && @is_file($web_config['website_basedir'].'/etc/passwd')) { |
| | | $apache_chrooted = true; |
| | | } else { |
| | | $apache_chrooted = false; |
| | |
| | | /* |
| | | * add all the webdav-dirs to the webdav-section |
| | | */ |
| | | $files = scandir($webdavRoot); |
| | | $files = @scandir($webdavRoot); |
| | | if(is_array($files)) { |
| | | foreach($files as $file) { |
| | | if (substr($file, strlen($file) - strlen('.htdigest')) == '.htdigest') { |
| | | /* |
| | |
| | | $output .= " </Location> \n"; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | /* |
| | | * is the "replace-comment-end" found... |