| | |
| | | /* |
| | | * 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') { |
| | | /* |
| | |
| | | */ |
| | | $fn = substr($file, 0, strlen($file) - strlen('.htdigest')); |
| | | $output .= "\n"; |
| | | $output .= " Alias /" . $fn . " " . $webdavRoot . "/" . $fn . "\n"; |
| | | $output .= " <Location /" . $fn . ">\n"; |
| | | //$output .= " Alias /" . $fn . " " . $webdavRoot . "/" . $fn . "\n"; |
| | | //$output .= " <Location /" . $fn . ">\n"; |
| | | $output .= " Alias /webdav/" . $fn . ' ' . $webdavRoot . '/' . $fn . "\n"; |
| | | $output .= " <Location /webdav/" . $fn . ">\n"; |
| | | $output .= " DAV On\n"; |
| | | $output .= " AuthType Digest\n"; |
| | | $output .= " AuthName \"" . $fn . "\"\n"; |
| | |
| | | $output .= " </Location> \n"; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | /* |
| | | * is the "replace-comment-end" found... |