-
-if (!file_exists($wwwDir . '/index.html') && is_writable($wwwDir)) {
- log('no index.html found, copying default over', 1);
- copy($wwwDir . '/index.surrogator.html', $wwwDir . '/index.html');
+foreach (array('index.html', 'robots.txt', 'favicon.ico') as $resFile) {
+ if (!file_exists($wwwDir . '/' . $resFile) && is_writable($wwwDir)) {
+ log('no www/' . $resFile . ' found, copying default over', 1);
+ copy($resDir . '/www/' . $resFile, $wwwDir . '/' . $resFile);
+ }