| @@ 214-222 (lines=9) @@ | ||
| 211 | $this->createHTACCESSDenyAll($devDirectory); |
|
| 212 | } |
|
| 213 | ||
| 214 | private function createManifestExcludeFile($dir) |
|
| 215 | { |
|
| 216 | $myFile = $dir.'_manifest_exclude'; |
|
| 217 | if (!file_exists($myFile)) { |
|
| 218 | $handle = fopen($myFile, 'w') or user_error('Cannot open file: '.$myFile); |
|
| 219 | $data = ''; |
|
| 220 | fwrite($handle, $data); |
|
| 221 | } |
|
| 222 | } |
|
| 223 | ||
| 224 | private function createHTACCESSDenyAll($dir) |
|
| 225 | { |
|
| @@ 224-235 (lines=12) @@ | ||
| 221 | } |
|
| 222 | } |
|
| 223 | ||
| 224 | private function createHTACCESSDenyAll($dir) |
|
| 225 | { |
|
| 226 | $myFile = $dir.'.htaccess'; |
|
| 227 | if (!file_exists($myFile)) { |
|
| 228 | $handle = fopen($myFile, 'w') or user_error('Cannot open file: '.$myFile); |
|
| 229 | $data = ' |
|
| 230 | Order Deny,Allow |
|
| 231 | Deny from all |
|
| 232 | '; |
|
| 233 | fwrite($handle, $data); |
|
| 234 | } |
|
| 235 | } |
|
| 236 | ||
| 237 | public function validate() |
|
| 238 | { |
|